Documentation
¶
Index ¶
- func ApplyContentExamples(mediaType *openapi.MediaType, cu *openapi.ContentUnit)
- func ComponentsEmpty(components *openapi.Components) bool
- func ContentType(cu *openapi.ContentUnit) string
- func MergeResponses(responses []*openapi.ContentUnit) []*openapi.ContentUnit
- func OneOf(values ...any) any
- func ResponseDescription(cu *openapi.ContentUnit) string
- func SecurityRequirement(name string, scopes []string) openapi.SecurityRequirement
- func SetOperation(item *openapi.PathItem, method string, op *openapi.Operation, version string) error
- type Builder
- func (b *Builder) AddOperation(method, path string, opts []option.OperationOption) error
- func (b *Builder) AddOperationTo(method, target string, opts []option.OperationOption, ...) error
- func (b *Builder) AddRequest(op *openapi.Operation, cu *openapi.ContentUnit)
- func (b *Builder) AddResponse(op *openapi.Operation, cu *openapi.ContentUnit) error
- func (b *Builder) AddWebhookOperation(method, name string, opts []option.OperationOption) error
- func (b *Builder) Finish()
- type ResponseKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyContentExamples ¶
func ApplyContentExamples(mediaType *openapi.MediaType, cu *openapi.ContentUnit)
func ComponentsEmpty ¶
func ComponentsEmpty(components *openapi.Components) bool
func ContentType ¶
func ContentType(cu *openapi.ContentUnit) string
func MergeResponses ¶
func MergeResponses(responses []*openapi.ContentUnit) []*openapi.ContentUnit
func ResponseDescription ¶
func ResponseDescription(cu *openapi.ContentUnit) string
func SecurityRequirement ¶
func SecurityRequirement(name string, scopes []string) openapi.SecurityRequirement
Types ¶
type Builder ¶
func (*Builder) AddOperation ¶
func (b *Builder) AddOperation(method, path string, opts []option.OperationOption) error
func (*Builder) AddOperationTo ¶
func (*Builder) AddRequest ¶
func (b *Builder) AddRequest(op *openapi.Operation, cu *openapi.ContentUnit)
func (*Builder) AddResponse ¶
func (*Builder) AddWebhookOperation ¶
func (b *Builder) AddWebhookOperation(method, name string, opts []option.OperationOption) error
type ResponseKey ¶
Click to show internal directories.
Click to hide internal directories.