Documentation
¶
Index ¶
- func New[T any](store *store.Store, opts ...Option) *v3.Response
- type Option
- func ContentType[T any](contentType string, opts ...mediatype.Option) Option
- func Description(s string) Option
- func Header[T any](name string, opts ...header.Option) Option
- func Link(name string, opts ...link.Option) Option
- func Options(opts ...Option) Option
- func Reference(name string) Option
- func Summary(s string) Option
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option configures an OpenAPI response. May be returned from a type implementing the Response interface:
func (T) Response() Option
func ContentType ¶
ContentType adds a typed content entry to the response. Use this to add content types beyond the default application/json set by op.Response[T].
func Description ¶
Description overrides the response description.
Click to show internal directories.
Click to hide internal directories.