{"id":20802967,"url":"https://github.com/sv-tools/openapi","last_synced_at":"2025-04-05T18:09:04.770Z","repository":{"id":37266478,"uuid":"439764250","full_name":"sv-tools/openapi","owner":"sv-tools","description":"OpenAPI v3.1 Spec implementation in Go with generics","archived":false,"fork":false,"pushed_at":"2025-03-25T00:13:31.000Z","size":274,"stargazers_count":50,"open_issues_count":5,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T17:11:07.720Z","etag":null,"topics":["generics-in-golang","golang","openapi","openapi-validation","openapi3","openapi31","swagger"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sv-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-requirement.go","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-19T03:11:04.000Z","updated_at":"2025-02-19T10:27:50.000Z","dependencies_parsed_at":"2024-06-18T19:44:49.030Z","dependency_job_id":"98caf2d8-ecb7-4948-b05a-f7ef1d57d7db","html_url":"https://github.com/sv-tools/openapi","commit_stats":{"total_commits":62,"total_committers":5,"mean_commits":12.4,"dds":0.467741935483871,"last_synced_commit":"b958b45fb607d8801232d08601d9ec2f403c910e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"sv-tools/go-repo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv-tools%2Fopenapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv-tools%2Fopenapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv-tools%2Fopenapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sv-tools%2Fopenapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sv-tools","download_url":"https://codeload.github.com/sv-tools/openapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378149,"owners_count":20929297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generics-in-golang","golang","openapi","openapi-validation","openapi3","openapi31","swagger"],"created_at":"2024-11-17T18:39:25.634Z","updated_at":"2025-04-05T18:09:04.746Z","avatar_url":"https://github.com/sv-tools.png","language":"Go","readme":"# OpenAPI v3.1 Specification\n\n[![Code Analysis](https://github.com/sv-tools/openapi/actions/workflows/checks.yaml/badge.svg)](https://github.com/sv-tools/openapi/actions/workflows/code.yaml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/sv-tools/openapi.svg)](https://pkg.go.dev/github.com/sv-tools/openapi)\n[![codecov](https://codecov.io/gh/sv-tools/openapi/branch/main/graph/badge.svg?token=0XVOTDR1CW)](https://codecov.io/gh/sv-tools/openapi)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/sv-tools/openapi?style=flat)](https://github.com/sv-tools/openapi/releases)\n\nThe implementation of OpenAPI v3.1 Specification for Go using generics.\n\n## Supported Go versions:\n\n* v1.23\n* v1.22\n* v1.21\n\n## Versions:\n\n* v0 - **Deprecated**. The initial version with the full implementation of the v3.1 Specification using generics. See `v0` branch.\n* v1 - The current version with the in-place validation of the specification. \n  * The minimal version of Go is `v1.21`.\n  * Everything have been moved to root folder. So, the import path is `github.com/sv-tools/openapi`.\n  * Added `Validator` struct for validation of the specification and the data.\n    * `Validator.ValidateSpec()` method validates the specification.\n    * `Validator.ValidateData()` method validates the data.\n    * `Validator.ValidateDataAsJSON()` method validates the data by converting it into `map[string]any` type first using `json.Marshal` and `json.Unmarshal`. \n      **WARNING**: the function is slow due to double conversion.\n  * Use OpenAPI `v3.1.1` by default.\n\n## Features\n\n* The official v3.0 and v3.1 [examples](https://github.com/OAI/OpenAPI-Specification/tree/main/examples) are tested.\n  In most cases v3.0 specification can be converted to v3.1 by changing the version's parameter only.\n  ```diff\n  @@ -1,4 +1,4 @@\n  -openapi: \"3.0.0\"\n  +openapi: \"3.1.0\"\n  ```\n\n**NOTE**: The descriptions of most structures and their fields are taken from the official documentations.\n\n## Links\n\n* OpenAPI Specification: \u003chttps://github.com/OAI/OpenAPI-Specification\u003e and \u003chttps://spec.openapis.org/oas/v3.1.0\u003e\n* JSON Schema: \u003chttps://json-schema.org/understanding-json-schema/index.html\u003e and \u003chttps://json-schema.org/draft/2020-12/json-schema-core.html\u003e\n* The list of most popular alternatives: \u003chttps://tools.openapis.org\u003e\n\n## License\n\nMIT licensed. See the bundled [LICENSE](LICENSE) file for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv-tools%2Fopenapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsv-tools%2Fopenapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsv-tools%2Fopenapi/lists"}