Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type Client
- func (c *Client) NullableStrings(ctx context.Context, request string) (res NullableStringsOK, err error)
- func (c *Client) ObjectsWithConflictingArrayProperty(ctx context.Context, request ObjectsWithConflictingArrayPropertyReq) (res ObjectsWithConflictingArrayPropertyOK, err error)
- func (c *Client) ObjectsWithConflictingProperties(ctx context.Context, request ObjectsWithConflictingPropertiesReq) (res ObjectsWithConflictingPropertiesOK, err error)
- func (c *Client) ReferencedAllof(ctx context.Context, request ReferencedAllofReq) (res ReferencedAllofOK, err error)
- func (c *Client) ReferencedAllofOptional(ctx context.Context, request ReferencedAllofOptionalReq) (res ReferencedAllofOptionalOK, err error)
- func (c *Client) SimpleInteger(ctx context.Context, request int) (res SimpleIntegerOK, err error)
- func (c *Client) SimpleObjects(ctx context.Context, request SimpleObjectsReq) (res SimpleObjectsOK, err error)
- type ErrorHandler
- type Handler
- type Location
- func (s *Location) Decode(d *jx.Decoder) error
- func (s *Location) DecodeURI(d uri.Decoder) error
- func (s Location) Encode(e *jx.Encoder)
- func (s Location) EncodeURI(e uri.Encoder) error
- func (s Location) MarshalJSON() ([]byte, error)
- func (s *Location) SetFake()
- func (s *Location) UnmarshalJSON(data []byte) error
- func (s Location) Validate() error
- type NullableStringsOK
- type ObjectsWithConflictingArrayPropertyOK
- type ObjectsWithConflictingArrayPropertyReq
- func (s *ObjectsWithConflictingArrayPropertyReq) Decode(d *jx.Decoder) error
- func (s ObjectsWithConflictingArrayPropertyReq) Encode(e *jx.Encoder)
- func (s ObjectsWithConflictingArrayPropertyReq) MarshalJSON() ([]byte, error)
- func (s *ObjectsWithConflictingArrayPropertyReq) SetFake()
- func (s *ObjectsWithConflictingArrayPropertyReq) UnmarshalJSON(data []byte) error
- func (s ObjectsWithConflictingArrayPropertyReq) Validate() error
- type ObjectsWithConflictingPropertiesOK
- type ObjectsWithConflictingPropertiesReq
- func (s *ObjectsWithConflictingPropertiesReq) Decode(d *jx.Decoder) error
- func (s ObjectsWithConflictingPropertiesReq) Encode(e *jx.Encoder)
- func (s ObjectsWithConflictingPropertiesReq) MarshalJSON() ([]byte, error)
- func (s *ObjectsWithConflictingPropertiesReq) SetFake()
- func (s *ObjectsWithConflictingPropertiesReq) UnmarshalJSON(data []byte) error
- func (s ObjectsWithConflictingPropertiesReq) Validate() error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (s *OptBool) SetFake()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (s *OptInt) SetFake()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptRobot
- func (o *OptRobot) Decode(d *jx.Decoder) error
- func (o OptRobot) Encode(e *jx.Encoder)
- func (o OptRobot) Get() (v Robot, ok bool)
- func (o OptRobot) IsSet() bool
- func (s OptRobot) MarshalJSON() ([]byte, error)
- func (o OptRobot) Or(d Robot) Robot
- func (o *OptRobot) Reset()
- func (s *OptRobot) SetFake()
- func (o *OptRobot) SetTo(v Robot)
- func (s *OptRobot) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (s *OptString) SetFake()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- func WithClient(client ht.Client) Option
- func WithErrorHandler(h ErrorHandler) Option
- func WithMaxMultipartMemory(max int64) Option
- func WithMeterProvider(provider metric.MeterProvider) Option
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
- func WithNotFound(notFound http.HandlerFunc) Option
- func WithTracerProvider(provider trace.TracerProvider) Option
- type ReferencedAllofApplicationJSON
- func (s *ReferencedAllofApplicationJSON) Decode(d *jx.Decoder) error
- func (s ReferencedAllofApplicationJSON) Encode(e *jx.Encoder)
- func (s ReferencedAllofApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ReferencedAllofApplicationJSON) SetFake()
- func (s *ReferencedAllofApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ReferencedAllofApplicationJSON) Validate() error
- type ReferencedAllofMultipartFormData
- func (s *ReferencedAllofMultipartFormData) Decode(d *jx.Decoder) error
- func (s ReferencedAllofMultipartFormData) Encode(e *jx.Encoder)
- func (s ReferencedAllofMultipartFormData) MarshalJSON() ([]byte, error)
- func (s *ReferencedAllofMultipartFormData) SetFake()
- func (s *ReferencedAllofMultipartFormData) UnmarshalJSON(data []byte) error
- func (s ReferencedAllofMultipartFormData) Validate() error
- type ReferencedAllofOK
- type ReferencedAllofOptionalApplicationJSON
- func (s *ReferencedAllofOptionalApplicationJSON) Decode(d *jx.Decoder) error
- func (s ReferencedAllofOptionalApplicationJSON) Encode(e *jx.Encoder)
- func (s ReferencedAllofOptionalApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ReferencedAllofOptionalApplicationJSON) SetFake()
- func (s *ReferencedAllofOptionalApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ReferencedAllofOptionalApplicationJSON) Validate() error
- type ReferencedAllofOptionalMultipartFormData
- func (s *ReferencedAllofOptionalMultipartFormData) Decode(d *jx.Decoder) error
- func (s ReferencedAllofOptionalMultipartFormData) Encode(e *jx.Encoder)
- func (s ReferencedAllofOptionalMultipartFormData) MarshalJSON() ([]byte, error)
- func (s *ReferencedAllofOptionalMultipartFormData) SetFake()
- func (s *ReferencedAllofOptionalMultipartFormData) UnmarshalJSON(data []byte) error
- func (s ReferencedAllofOptionalMultipartFormData) Validate() error
- type ReferencedAllofOptionalOK
- type ReferencedAllofOptionalReq
- type ReferencedAllofReq
- type Robot
- type RobotState
- type Route
- type Server
- type SimpleIntegerOK
- type SimpleObjectsOK
- type SimpleObjectsReq
- type UnimplementedHandler
- func (UnimplementedHandler) NullableStrings(ctx context.Context, req string) (r NullableStringsOK, _ error)
- func (UnimplementedHandler) ObjectsWithConflictingArrayProperty(ctx context.Context, req ObjectsWithConflictingArrayPropertyReq) (r ObjectsWithConflictingArrayPropertyOK, _ error)
- func (UnimplementedHandler) ObjectsWithConflictingProperties(ctx context.Context, req ObjectsWithConflictingPropertiesReq) (r ObjectsWithConflictingPropertiesOK, _ error)
- func (UnimplementedHandler) ReferencedAllof(ctx context.Context, req ReferencedAllofReq) (r ReferencedAllofOK, _ error)
- func (UnimplementedHandler) ReferencedAllofOptional(ctx context.Context, req ReferencedAllofOptionalReq) (r ReferencedAllofOptionalOK, _ error)
- func (UnimplementedHandler) SimpleInteger(ctx context.Context, req int) (r SimpleIntegerOK, _ error)
- func (UnimplementedHandler) SimpleObjects(ctx context.Context, req SimpleObjectsReq) (r SimpleObjectsOK, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func (*Client) NullableStrings ¶
func (c *Client) NullableStrings(ctx context.Context, request string) (res NullableStringsOK, err error)
NullableStrings invokes nullableStrings operation.
Nullable strings.
POST /nullableStrings
func (*Client) ObjectsWithConflictingArrayProperty ¶
func (c *Client) ObjectsWithConflictingArrayProperty(ctx context.Context, request ObjectsWithConflictingArrayPropertyReq) (res ObjectsWithConflictingArrayPropertyOK, err error)
ObjectsWithConflictingArrayProperty invokes objectsWithConflictingArrayProperty operation.
Objects with conflicting array property.
POST /objectsWithConflictingArrayProperty
func (*Client) ObjectsWithConflictingProperties ¶
func (c *Client) ObjectsWithConflictingProperties(ctx context.Context, request ObjectsWithConflictingPropertiesReq) (res ObjectsWithConflictingPropertiesOK, err error)
ObjectsWithConflictingProperties invokes objectsWithConflictingProperties operation.
Objects with conflicting properties.
POST /objectsWithConflictingProperties
func (*Client) ReferencedAllof ¶
func (c *Client) ReferencedAllof(ctx context.Context, request ReferencedAllofReq) (res ReferencedAllofOK, err error)
ReferencedAllof invokes referencedAllof operation.
Referenced allOf.
POST /referencedAllof
func (*Client) ReferencedAllofOptional ¶
func (c *Client) ReferencedAllofOptional(ctx context.Context, request ReferencedAllofOptionalReq) (res ReferencedAllofOptionalOK, err error)
ReferencedAllofOptional invokes referencedAllofOptional operation.
Referenced allOf, but requestBody is not required.
POST /referencedAllofOptional
func (*Client) SimpleInteger ¶
SimpleInteger invokes simpleInteger operation.
Simple integers with validation.
POST /simpleInteger
func (*Client) SimpleObjects ¶
func (c *Client) SimpleObjects(ctx context.Context, request SimpleObjectsReq) (res SimpleObjectsOK, err error)
SimpleObjects invokes simpleObjects operation.
Simple objects.
POST /simpleObjects
type Handler ¶
type Handler interface { // NullableStrings implements nullableStrings operation. // // Nullable strings. // // POST /nullableStrings NullableStrings(ctx context.Context, req string) (NullableStringsOK, error) // ObjectsWithConflictingArrayProperty implements objectsWithConflictingArrayProperty operation. // // Objects with conflicting array property. // // POST /objectsWithConflictingArrayProperty ObjectsWithConflictingArrayProperty(ctx context.Context, req ObjectsWithConflictingArrayPropertyReq) (ObjectsWithConflictingArrayPropertyOK, error) // ObjectsWithConflictingProperties implements objectsWithConflictingProperties operation. // // Objects with conflicting properties. // // POST /objectsWithConflictingProperties ObjectsWithConflictingProperties(ctx context.Context, req ObjectsWithConflictingPropertiesReq) (ObjectsWithConflictingPropertiesOK, error) // ReferencedAllof implements referencedAllof operation. // // Referenced allOf. // // POST /referencedAllof ReferencedAllof(ctx context.Context, req ReferencedAllofReq) (ReferencedAllofOK, error) // ReferencedAllofOptional implements referencedAllofOptional operation. // // Referenced allOf, but requestBody is not required. // // POST /referencedAllofOptional ReferencedAllofOptional(ctx context.Context, req ReferencedAllofOptionalReq) (ReferencedAllofOptionalOK, error) // SimpleInteger implements simpleInteger operation. // // Simple integers with validation. // // POST /simpleInteger SimpleInteger(ctx context.Context, req int) (SimpleIntegerOK, error) // SimpleObjects implements simpleObjects operation. // // Simple objects. // // POST /simpleObjects SimpleObjects(ctx context.Context, req SimpleObjectsReq) (SimpleObjectsOK, error) }
Handler handles operations described by OpenAPI v3 specification.
type Location ¶
Ref: #/components/schemas/Location
func (Location) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Location) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type NullableStringsOK ¶
type NullableStringsOK struct{}
NullableStringsOK is response for NullableStrings operation.
type ObjectsWithConflictingArrayPropertyOK ¶
type ObjectsWithConflictingArrayPropertyOK struct{}
ObjectsWithConflictingArrayPropertyOK is response for ObjectsWithConflictingArrayProperty operation.
type ObjectsWithConflictingArrayPropertyReq ¶
type ObjectsWithConflictingArrayPropertyReq struct { // Merged property. Foo []int "json:\"foo\"" Bar int "json:\"bar\"" }
Merged schema.
func (*ObjectsWithConflictingArrayPropertyReq) Decode ¶
func (s *ObjectsWithConflictingArrayPropertyReq) Decode(d *jx.Decoder) error
Decode decodes ObjectsWithConflictingArrayPropertyReq from json.
func (ObjectsWithConflictingArrayPropertyReq) Encode ¶
func (s ObjectsWithConflictingArrayPropertyReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ObjectsWithConflictingArrayPropertyReq) MarshalJSON ¶
func (s ObjectsWithConflictingArrayPropertyReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ObjectsWithConflictingArrayPropertyReq) SetFake ¶
func (s *ObjectsWithConflictingArrayPropertyReq) SetFake()
SetFake set fake values.
func (*ObjectsWithConflictingArrayPropertyReq) UnmarshalJSON ¶
func (s *ObjectsWithConflictingArrayPropertyReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ObjectsWithConflictingArrayPropertyReq) Validate ¶
func (s ObjectsWithConflictingArrayPropertyReq) Validate() error
type ObjectsWithConflictingPropertiesOK ¶
type ObjectsWithConflictingPropertiesOK struct{}
ObjectsWithConflictingPropertiesOK is response for ObjectsWithConflictingProperties operation.
type ObjectsWithConflictingPropertiesReq ¶
type ObjectsWithConflictingPropertiesReq struct { // Merged property. Foo string "json:\"foo\"" Bar OptInt "json:\"bar\"" }
Merged schema.
func (*ObjectsWithConflictingPropertiesReq) Decode ¶
func (s *ObjectsWithConflictingPropertiesReq) Decode(d *jx.Decoder) error
Decode decodes ObjectsWithConflictingPropertiesReq from json.
func (ObjectsWithConflictingPropertiesReq) Encode ¶
func (s ObjectsWithConflictingPropertiesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ObjectsWithConflictingPropertiesReq) MarshalJSON ¶
func (s ObjectsWithConflictingPropertiesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ObjectsWithConflictingPropertiesReq) SetFake ¶
func (s *ObjectsWithConflictingPropertiesReq) SetFake()
SetFake set fake values.
func (*ObjectsWithConflictingPropertiesReq) UnmarshalJSON ¶
func (s *ObjectsWithConflictingPropertiesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ObjectsWithConflictingPropertiesReq) Validate ¶
func (s ObjectsWithConflictingPropertiesReq) Validate() error
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRobot ¶
OptRobot is optional Robot.
func NewOptRobot ¶
NewOptRobot returns new OptRobot with value set to v.
func (OptRobot) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptRobot) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) Option
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the metric.NewNoopMeterProvider is used.
func WithMethodNotAllowed ¶ added in v0.46.0
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) Option
WithNotFound specifies Not Found handler to use.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type ReferencedAllofApplicationJSON ¶
type ReferencedAllofApplicationJSON Robot
func (*ReferencedAllofApplicationJSON) Decode ¶
func (s *ReferencedAllofApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ReferencedAllofApplicationJSON from json.
func (ReferencedAllofApplicationJSON) Encode ¶
func (s ReferencedAllofApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ReferencedAllofApplicationJSON as json.
func (ReferencedAllofApplicationJSON) MarshalJSON ¶
func (s ReferencedAllofApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReferencedAllofApplicationJSON) SetFake ¶
func (s *ReferencedAllofApplicationJSON) SetFake()
SetFake set fake values.
func (*ReferencedAllofApplicationJSON) UnmarshalJSON ¶
func (s *ReferencedAllofApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ReferencedAllofApplicationJSON) Validate ¶
func (s ReferencedAllofApplicationJSON) Validate() error
type ReferencedAllofMultipartFormData ¶
type ReferencedAllofMultipartFormData Robot
func (*ReferencedAllofMultipartFormData) Decode ¶
func (s *ReferencedAllofMultipartFormData) Decode(d *jx.Decoder) error
Decode decodes ReferencedAllofMultipartFormData from json.
func (ReferencedAllofMultipartFormData) Encode ¶
func (s ReferencedAllofMultipartFormData) Encode(e *jx.Encoder)
Encode encodes ReferencedAllofMultipartFormData as json.
func (ReferencedAllofMultipartFormData) MarshalJSON ¶
func (s ReferencedAllofMultipartFormData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReferencedAllofMultipartFormData) SetFake ¶
func (s *ReferencedAllofMultipartFormData) SetFake()
SetFake set fake values.
func (*ReferencedAllofMultipartFormData) UnmarshalJSON ¶
func (s *ReferencedAllofMultipartFormData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ReferencedAllofMultipartFormData) Validate ¶
func (s ReferencedAllofMultipartFormData) Validate() error
type ReferencedAllofOK ¶
type ReferencedAllofOK struct{}
ReferencedAllofOK is response for ReferencedAllof operation.
type ReferencedAllofOptionalApplicationJSON ¶
type ReferencedAllofOptionalApplicationJSON OptRobot
func (*ReferencedAllofOptionalApplicationJSON) Decode ¶
func (s *ReferencedAllofOptionalApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ReferencedAllofOptionalApplicationJSON from json.
func (ReferencedAllofOptionalApplicationJSON) Encode ¶
func (s ReferencedAllofOptionalApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ReferencedAllofOptionalApplicationJSON as json.
func (ReferencedAllofOptionalApplicationJSON) MarshalJSON ¶
func (s ReferencedAllofOptionalApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReferencedAllofOptionalApplicationJSON) SetFake ¶
func (s *ReferencedAllofOptionalApplicationJSON) SetFake()
SetFake set fake values.
func (*ReferencedAllofOptionalApplicationJSON) UnmarshalJSON ¶
func (s *ReferencedAllofOptionalApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ReferencedAllofOptionalApplicationJSON) Validate ¶
func (s ReferencedAllofOptionalApplicationJSON) Validate() error
type ReferencedAllofOptionalMultipartFormData ¶
type ReferencedAllofOptionalMultipartFormData OptRobot
func (*ReferencedAllofOptionalMultipartFormData) Decode ¶
func (s *ReferencedAllofOptionalMultipartFormData) Decode(d *jx.Decoder) error
Decode decodes ReferencedAllofOptionalMultipartFormData from json.
func (ReferencedAllofOptionalMultipartFormData) Encode ¶
func (s ReferencedAllofOptionalMultipartFormData) Encode(e *jx.Encoder)
Encode encodes ReferencedAllofOptionalMultipartFormData as json.
func (ReferencedAllofOptionalMultipartFormData) MarshalJSON ¶
func (s ReferencedAllofOptionalMultipartFormData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReferencedAllofOptionalMultipartFormData) SetFake ¶
func (s *ReferencedAllofOptionalMultipartFormData) SetFake()
SetFake set fake values.
func (*ReferencedAllofOptionalMultipartFormData) UnmarshalJSON ¶
func (s *ReferencedAllofOptionalMultipartFormData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ReferencedAllofOptionalMultipartFormData) Validate ¶
func (s ReferencedAllofOptionalMultipartFormData) Validate() error
type ReferencedAllofOptionalOK ¶
type ReferencedAllofOptionalOK struct{}
ReferencedAllofOptionalOK is response for ReferencedAllofOptional operation.
type ReferencedAllofOptionalReq ¶
type ReferencedAllofOptionalReq interface {
// contains filtered or unexported methods
}
type ReferencedAllofReq ¶
type ReferencedAllofReq interface {
// contains filtered or unexported methods
}
type Robot ¶
type Robot struct { State RobotState "json:\"state\"" ID uuid.UUID "json:\"id\"" Location Location "json:\"location\"" }
Merged schema. Ref: #/components/schemas/Robot
func (Robot) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Robot) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type RobotState ¶
type RobotState string
const ( RobotStateOn RobotState = "on" RobotStateOff RobotState = "off" )
func (*RobotState) Decode ¶
func (s *RobotState) Decode(d *jx.Decoder) error
Decode decodes RobotState from json.
func (RobotState) Encode ¶
func (s RobotState) Encode(e *jx.Encoder)
Encode encodes RobotState as json.
func (RobotState) MarshalJSON ¶
func (s RobotState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RobotState) UnmarshalJSON ¶
func (s *RobotState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (RobotState) Validate ¶
func (s RobotState) Validate() error
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) Name ¶ added in v0.46.0
Name returns ogen operation name.
It is guaranteed to be unique and not empty.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
type SimpleIntegerOK ¶
type SimpleIntegerOK struct{}
SimpleIntegerOK is response for SimpleInteger operation.
type SimpleObjectsOK ¶
type SimpleObjectsOK struct{}
SimpleObjectsOK is response for SimpleObjects operation.
type SimpleObjectsReq ¶
Merged schema.
func (*SimpleObjectsReq) Decode ¶
func (s *SimpleObjectsReq) Decode(d *jx.Decoder) error
Decode decodes SimpleObjectsReq from json.
func (SimpleObjectsReq) Encode ¶
func (s SimpleObjectsReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SimpleObjectsReq) MarshalJSON ¶
func (s SimpleObjectsReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SimpleObjectsReq) UnmarshalJSON ¶
func (s *SimpleObjectsReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) NullableStrings ¶
func (UnimplementedHandler) NullableStrings(ctx context.Context, req string) (r NullableStringsOK, _ error)
NullableStrings implements nullableStrings operation.
Nullable strings.
POST /nullableStrings
func (UnimplementedHandler) ObjectsWithConflictingArrayProperty ¶
func (UnimplementedHandler) ObjectsWithConflictingArrayProperty(ctx context.Context, req ObjectsWithConflictingArrayPropertyReq) (r ObjectsWithConflictingArrayPropertyOK, _ error)
ObjectsWithConflictingArrayProperty implements objectsWithConflictingArrayProperty operation.
Objects with conflicting array property.
POST /objectsWithConflictingArrayProperty
func (UnimplementedHandler) ObjectsWithConflictingProperties ¶
func (UnimplementedHandler) ObjectsWithConflictingProperties(ctx context.Context, req ObjectsWithConflictingPropertiesReq) (r ObjectsWithConflictingPropertiesOK, _ error)
ObjectsWithConflictingProperties implements objectsWithConflictingProperties operation.
Objects with conflicting properties.
POST /objectsWithConflictingProperties
func (UnimplementedHandler) ReferencedAllof ¶
func (UnimplementedHandler) ReferencedAllof(ctx context.Context, req ReferencedAllofReq) (r ReferencedAllofOK, _ error)
ReferencedAllof implements referencedAllof operation.
Referenced allOf.
POST /referencedAllof
func (UnimplementedHandler) ReferencedAllofOptional ¶
func (UnimplementedHandler) ReferencedAllofOptional(ctx context.Context, req ReferencedAllofOptionalReq) (r ReferencedAllofOptionalOK, _ error)
ReferencedAllofOptional implements referencedAllofOptional operation.
Referenced allOf, but requestBody is not required.
POST /referencedAllofOptional
func (UnimplementedHandler) SimpleInteger ¶
func (UnimplementedHandler) SimpleInteger(ctx context.Context, req int) (r SimpleIntegerOK, _ error)
SimpleInteger implements simpleInteger operation.
Simple integers with validation.
POST /simpleInteger
func (UnimplementedHandler) SimpleObjects ¶
func (UnimplementedHandler) SimpleObjects(ctx context.Context, req SimpleObjectsReq) (r SimpleObjectsOK, _ error)
SimpleObjects implements simpleObjects operation.
Simple objects.
POST /simpleObjects
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_faker_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_uri_gen.go
- oas_validators_gen.go