containerized-data-importer/vendor/github.com/emicklei/go-restful-openapi
Abdul Hameed 61d71d2e1c added CRD open API schema validation and unit tests (#927)
Signed-off-by: Abdul Hameed <ahameed@redhat.com>
2019-10-15 11:18:50 -04:00
..
.gitignore swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
.travis.yml swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
build_definitions.go Move dependency management to go modules instead of glide. (#989) 2019-10-09 15:02:17 -04:00
build_path.go added CRD open API schema validation and unit tests (#927) 2019-10-15 11:18:50 -04:00
CHANGES.md fix vendoring (#864) 2019-06-25 08:46:19 -04:00
config.go fix vendoring (#864) 2019-06-25 08:46:19 -04:00
definition_builder.go added CRD open API schema validation and unit tests (#927) 2019-10-15 11:18:50 -04:00
go.mod fix vendoring (#864) 2019-06-25 08:46:19 -04:00
go.sum fix vendoring (#864) 2019-06-25 08:46:19 -04:00
LICENSE swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
lookup.go swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
property_ext.go swagger/apidoc/python client generation 2018-12-03 08:31:28 -05:00
README.md fix vendoring (#864) 2019-06-25 08:46:19 -04:00
spec_resource.go Move dependency management to go modules instead of glide. (#989) 2019-10-09 15:02:17 -04: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

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