Git with a cup of tea, painless self-hosted git service Mirror for internal git.with.parts use https://git.with.parts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
gitea/vendor/github.com/go-openapi/spec
techknowlogick 47f6a4ec3f
go1.16 (#14783)
4 years ago
..
.editorconfig Use vendored go-swagger (#8087) 5 years ago
.gitignore Use vendored go-swagger (#8087) 5 years ago
.golangci.yml go1.16 (#14783) 4 years ago
.travis.yml Vendor Update (#14496) 4 years ago
CODE_OF_CONDUCT.md Use vendored go-swagger (#8087) 5 years ago
LICENSE Use vendored go-swagger (#8087) 5 years ago
README.md go1.16 (#14783) 4 years ago
appveyor.yml go1.16 (#14783) 4 years ago
bindata.go Vendor Update (#14496) 4 years ago
cache.go Vendor Update (#14496) 4 years ago
contact_info.go Vendor Update (#14496) 4 years ago
debug.go go1.16 (#14783) 4 years ago
errors.go go1.16 (#14783) 4 years ago
expander.go go1.16 (#14783) 4 years ago
external_docs.go Use vendored go-swagger (#8087) 5 years ago
go.mod go1.16 (#14783) 4 years ago
go.sum go1.16 (#14783) 4 years ago
header.go Vendor Update (#14496) 4 years ago
info.go Use vendored go-swagger (#8087) 5 years ago
items.go Vendor Update (#14496) 4 years ago
license.go Vendor Update (#14496) 4 years ago
normalizer.go go1.16 (#14783) 4 years ago
normalizer_nonwindows.go go1.16 (#14783) 4 years ago
normalizer_windows.go go1.16 (#14783) 4 years ago
operation.go Vendor Update (#14496) 4 years ago
parameter.go Vendor Update (#14496) 4 years ago
path_item.go Use vendored go-swagger (#8087) 5 years ago
paths.go Use vendored go-swagger (#8087) 5 years ago
properties.go Vendor Update (#14496) 4 years ago
ref.go Vendor Update (#14496) 4 years ago
resolver.go go1.16 (#14783) 4 years ago
response.go Vendor Update (#14496) 4 years ago
responses.go Use vendored go-swagger (#8087) 5 years ago
schema.go Vendor Update (#14496) 4 years ago
schema_loader.go go1.16 (#14783) 4 years ago
security_scheme.go go1.16 (#14783) 4 years ago
spec.go Vendor Update (#14496) 4 years ago
swagger.go Use vendored go-swagger (#8087) 5 years ago
tag.go Use vendored go-swagger (#8087) 5 years ago
validations.go Vendor Update (#14496) 4 years ago
xml_object.go Use vendored go-swagger (#8087) 5 years ago

README.md

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