github.com/mprencipe/openapi-spec


License
MIT
Install
go get github.com/mprencipe/openapi-spec

Documentation

openapi-spec

OpenAPI 3 and Swagger 2 types. Can be used directly or parser can be used to unmarshal JSON bytes to structs. No external dependencies are used. As of now, the specification has not yet been fully implemented, see TODO below.

OpenAPI 3.0.x vs 3.1.0

A generic OpenAPI 3 definition is available for both OpenAPI versions since 3.1.0 is a superset of 3.0.x.

TODO

  • Discriminator object
  • OAuth flows object