Skip to content

use-go/go-restful-openapi

 
 

Repository files navigation

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

See TestThatExtraTagsAreReadIntoModel for examples.

dependencies

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

About

OpenAPI extension in Go for the go-restful package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%