up9inc / openapi

Go types and validation for OpenAPI Specification 3.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openapi

Package openapi is a set of Go types for OpenAPI Specification 3.1. The primary purpose of the package is to assist in generation of OpenAPI documentation or to offer building blocks for code-generation.

Documentation

Documentation can be found on pkg.go.dev.

Validation

Currently, specifications are validated with JSON Schema. Per OpenAPI's documentation, this may not be enough to properly encapsulate all the nuances of a specification. However, JSON Schema is able to properly validate the current OpenAPI 3.1 Specification test suite.

Please open an issue if you run into an edge case that is not validated adequately.

Contributions

Please feel free to open up an issue or create a pull request if there are features you'd like to contribute or issues.

Dependencies

License

MIT

About

Go types and validation for OpenAPI Specification 3.1

License:MIT License


Languages

Language:Go 100.0%