Skip to content

vine-io/go-restful-openapi

Repository files navigation

go-restful-openapi

Build Status GoDoc

openapi extension to the go-restful package, targeting version 3.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

Go modules

import (
    restfulspec "github.com/vine-io/go-restful-openapi"
    restful "github.com/emicklei/go-restful/v3"
)

© 2024, MIT License. Contributions welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published