forgejo/vendor/github.com/go-openapi/spec
2021-02-28 18:08:33 -05:00
..
.editorconfig Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
.gitignore Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
.golangci.yml go1.16 (#14783) 2021-02-28 18:08:33 -05:00
.travis.yml Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
appveyor.yml go1.16 (#14783) 2021-02-28 18:08:33 -05:00
bindata.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
cache.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
CODE_OF_CONDUCT.md Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
contact_info.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
debug.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
errors.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
expander.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
external_docs.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
go.mod go1.16 (#14783) 2021-02-28 18:08:33 -05:00
go.sum go1.16 (#14783) 2021-02-28 18:08:33 -05:00
header.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
info.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
items.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
LICENSE Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
license.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
normalizer.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
normalizer_nonwindows.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
normalizer_windows.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
operation.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
parameter.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
path_item.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
paths.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
properties.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
README.md go1.16 (#14783) 2021-02-28 18:08:33 -05:00
ref.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
resolver.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
response.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
responses.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
schema.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
schema_loader.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
security_scheme.go go1.16 (#14783) 2021-02-28 18:08:33 -05:00
spec.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
swagger.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
tag.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00
validations.go Vendor Update (#14496) 2021-01-28 17:56:38 +01:00
xml_object.go Use vendored go-swagger (#8087) 2019-09-04 22:53:54 +03:00

OAI object model

Build Status

codecov Slack Status license Go Reference Go Report Card

The object model for OpenAPI specification documents.

FAQ

  • What does this do?
  1. This package knows how to marshal and unmarshal Swagger API specifications into a golang object model
  2. It knows how to resolve $ref and expand them to make a single root document
  • How does it play with the rest of the go-openapi packages ?
  1. This package is at the core of the go-openapi suite of packages and code generator
  2. There is a spec loading package to fetch specs as JSON or YAML from local or remote locations
  3. There is a spec validation package built on top of it
  4. There is a spec analysis package built on top of it, to analyze, flatten, fix and merge spec documents
  • Does this library support OpenAPI 3?

No. This package currently only supports OpenAPI 2.0 (aka Swagger 2.0). There is no plan to make it evolve toward supporting OpenAPI 3.x. This discussion thread relates the full story.

An early attempt to support Swagger 3 may be found at: https://github.com/go-openapi/spec3