Documentation
¶
Index ¶
- type Option
- func Contact(name, url, email string) Option
- func Description(description string) Option
- func ExternalDocs(url, description string) Option
- func License(name, url, identifier string) Option
- func Security(name string, scopes ...string) Option
- func SecurityScheme(name string, opts ...securityscheme.Option) Option
- func Server(url, description string, opts ...server.Option) Option
- func Summary(summary string) Option
- func Tag(name, description string, opts ...tag.Option) Option
- func TermsOfService(url string) Option
- func Version(version string) Option
- func Webhook(name string, pathItem func(*store.Store) *v3.PathItem) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option configures an OpenAPI document.
func Description ¶
Description sets the API description.
func ExternalDocs ¶
ExternalDocs sets the external documentation for the API.
func License ¶
License sets the license for the API. Provide url for a link to the full license text, or identifier for an SPDX identifier (OpenAPI 3.1). Only one of url or identifier should be set; if both are provided, url takes precedence per the spec.
func Security ¶
Security appends a global security requirement. Pass an empty name to add an empty requirement (makes security optional globally).
func SecurityScheme ¶
func SecurityScheme(name string, opts ...securityscheme.Option) Option
SecurityScheme registers a named security scheme in components/securitySchemes.
func TermsOfService ¶
TermsOfService sets the URL to the terms of service.