Categorygithub.com/dmarket/go-restful-openapi
repositorypackage
1.1.1
Repository: https://github.com/dmarket/go-restful-openapi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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.