Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*v3.RequestBody, *store.Store)
Option configures an OpenAPI request body. May be returned from a type implementing the RequestBody interface:
func (T) RequestBody() Option
func ContentType ¶
ContentType adds a typed content entry to the request body. Use this to add content types beyond the default application/json set by op.RequestBody[T].
type RequestBody ¶
type RequestBody interface {
RequestBody() Option
}
RequestBody may be implemented to set default request body options on a type.
func (T) RequestBody() body.Option
Click to show internal directories.
Click to hide internal directories.