local-server/vendor/github.com/emicklei/go-restful-openapi
2019-02-04 13:56:43 +11:00
..
.gitignore refactor to go-restful 2019-02-04 13:56:43 +11:00
.travis.yml refactor to go-restful 2019-02-04 13:56:43 +11:00
build_definitions.go refactor to go-restful 2019-02-04 13:56:43 +11:00
build_path.go refactor to go-restful 2019-02-04 13:56:43 +11:00
CHANGES.md refactor to go-restful 2019-02-04 13:56:43 +11:00
config.go refactor to go-restful 2019-02-04 13:56:43 +11:00
definition_builder.go refactor to go-restful 2019-02-04 13:56:43 +11:00
LICENSE refactor to go-restful 2019-02-04 13:56:43 +11:00
lookup.go refactor to go-restful 2019-02-04 13:56:43 +11:00
property_ext.go refactor to go-restful 2019-02-04 13:56:43 +11:00
README.md refactor to go-restful 2019-02-04 13:56:43 +11:00
spec_resource.go refactor to go-restful 2019-02-04 13:56:43 +11:00

go-restful-openapi

Build Status GoDoc

openapi extension to the go-restful package, targeting version 2.0

The following Go field tags are translated to OpenAPI equivalents

  • description
  • minimum
  • maximum
  • optional ( if set to "true" then it is not listed in required)
  • unique
  • modelDescription
  • type (overrides the Go type String())
  • enum
  • readOnly

See TestThatExtraTagsAreReadIntoModel for examples.

dependencies

© 2018, ernestmicklei.com. MIT License. Contributions welcome.