Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type ArrayTest
- type Client
- func (c *Client) DataGetFormat(ctx context.Context, params DataGetFormatParams) (res string, err error)
- func (c *Client) ErrorGet(ctx context.Context) (res ErrorStatusCode, err error)
- func (c *Client) FoobarGet(ctx context.Context, params FoobarGetParams) (res FoobarGetRes, err error)
- func (c *Client) FoobarPost(ctx context.Context, request OptPet) (res FoobarPostRes, err error)
- func (c *Client) FoobarPut(ctx context.Context) (res FoobarPutDefStatusCode, err error)
- func (c *Client) GetHeader(ctx context.Context, params GetHeaderParams) (res Hash, err error)
- func (c *Client) OneofBug(ctx context.Context, request OneOfBugs) (res OneofBugOK, err error)
- func (c *Client) PetCreate(ctx context.Context, request OptPet) (res Pet, err error)
- func (c *Client) PetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) (res []string, err error)
- func (c *Client) PetGet(ctx context.Context, params PetGetParams) (res PetGetRes, err error)
- func (c *Client) PetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDParams) (res PetGetAvatarByIDRes, err error)
- func (c *Client) PetGetByName(ctx context.Context, params PetGetByNameParams) (res Pet, err error)
- func (c *Client) PetNameByID(ctx context.Context, params PetNameByIDParams) (res string, err error)
- func (c *Client) PetUpdateNameAliasPost(ctx context.Context, request OptPetName) (res PetUpdateNameAliasPostDefStatusCode, err error)
- func (c *Client) PetUpdateNamePost(ctx context.Context, request OptString) (res PetUpdateNamePostDefStatusCode, err error)
- func (c *Client) PetUploadAvatarByID(ctx context.Context, request PetUploadAvatarByIDReq, ...) (res PetUploadAvatarByIDRes, err error)
- func (c *Client) TestObjectQueryParameter(ctx context.Context, params TestObjectQueryParameterParams) (res TestObjectQueryParameterOK, err error)
- type Data
- type DataDescription
- func (s *DataDescription) Decode(d *jx.Decoder) error
- func (s DataDescription) Encode(e *jx.Writer)
- func (s DataDescription) GetDescriptionDetailed() (v DescriptionDetailed, ok bool)
- func (s DataDescription) GetDescriptionSimple() (v DescriptionSimple, ok bool)
- func (s DataDescription) IsDescriptionDetailed() bool
- func (s DataDescription) IsDescriptionSimple() bool
- func (s *DataDescription) SetDescriptionDetailed(v DescriptionDetailed)
- func (s *DataDescription) SetDescriptionSimple(v DescriptionSimple)
- type DataDescriptionType
- type DataGetFormatParams
- type DescriptionDetailed
- type DescriptionSimple
- type Error
- type ErrorStatusCode
- type FoobarGetParams
- type FoobarGetRes
- type FoobarPostRes
- type FoobarPutDef
- type FoobarPutDefStatusCode
- type GetHeaderParams
- type Handler
- type Hash
- type ID
- type IDType
- type Issue143
- func (s *Issue143) Decode(d *jx.Decoder) error
- func (s Issue143) Encode(e *jx.Writer)
- func (s Issue143) GetIssue1430() (v Issue1430, ok bool)
- func (s Issue143) GetIssue1431() (v Issue1431, ok bool)
- func (s Issue143) GetIssue1432() (v Issue1432, ok bool)
- func (s Issue143) GetIssue1433() (v Issue1433, ok bool)
- func (s Issue143) IsIssue1430() bool
- func (s Issue143) IsIssue1431() bool
- func (s Issue143) IsIssue1432() bool
- func (s Issue143) IsIssue1433() bool
- func (s *Issue143) SetIssue1430(v Issue1430)
- func (s *Issue143) SetIssue1431(v Issue1431)
- func (s *Issue143) SetIssue1432(v Issue1432)
- func (s *Issue143) SetIssue1433(v Issue1433)
- type Issue1430
- type Issue1431
- type Issue1432
- type Issue1433
- type Issue143Type
- type MapWithProperties
- type MapWithPropertiesInlinedSubMap
- type NilNullableEnumsBoth
- func (o *NilNullableEnumsBoth) Decode(d *jx.Decoder) error
- func (o NilNullableEnumsBoth) Encode(e *jx.Writer)
- func (o NilNullableEnumsBoth) Get() (v NullableEnumsBoth, ok bool)
- func (o NilNullableEnumsBoth) IsNull() bool
- func (o NilNullableEnumsBoth) Or(d NullableEnumsBoth) NullableEnumsBoth
- func (o *NilNullableEnumsBoth) SetTo(v NullableEnumsBoth)
- type NilNullableEnumsOnlyNullValue
- func (o *NilNullableEnumsOnlyNullValue) Decode(d *jx.Decoder) error
- func (o NilNullableEnumsOnlyNullValue) Encode(e *jx.Writer)
- func (o NilNullableEnumsOnlyNullValue) Get() (v NullableEnumsOnlyNullValue, ok bool)
- func (o NilNullableEnumsOnlyNullValue) IsNull() bool
- func (o NilNullableEnumsOnlyNullValue) Or(d NullableEnumsOnlyNullValue) NullableEnumsOnlyNullValue
- func (o *NilNullableEnumsOnlyNullValue) SetTo(v NullableEnumsOnlyNullValue)
- type NilString
- type NotFound
- type NullableEnums
- type NullableEnumsBoth
- type NullableEnumsOnlyNullValue
- type NullableEnumsOnlyNullable
- type OneOfBugs
- type OneVariantHasNoUniqueFields
- func (s *OneVariantHasNoUniqueFields) Decode(d *jx.Decoder) error
- func (s OneVariantHasNoUniqueFields) Encode(e *jx.Writer)
- func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields0() (v OneVariantHasNoUniqueFields0, ok bool)
- func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields1() (v OneVariantHasNoUniqueFields1, ok bool)
- func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields0() bool
- func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields1() bool
- func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields0(v OneVariantHasNoUniqueFields0)
- func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields1(v OneVariantHasNoUniqueFields1)
- type OneVariantHasNoUniqueFields0
- type OneVariantHasNoUniqueFields1
- type OneVariantHasNoUniqueFieldsType
- type OneofBugOK
- type OptArrayTest
- func (o *OptArrayTest) Decode(d *jx.Decoder) error
- func (o OptArrayTest) Encode(e *jx.Writer)
- func (o OptArrayTest) Get() (v ArrayTest, ok bool)
- func (o OptArrayTest) IsSet() bool
- func (o OptArrayTest) Or(d ArrayTest) ArrayTest
- func (o *OptArrayTest) Reset()
- func (o *OptArrayTest) SetTo(v ArrayTest)
- type OptData
- type OptDuration
- func (o *OptDuration) Decode(d *jx.Decoder) error
- func (o OptDuration) Encode(e *jx.Writer)
- func (o OptDuration) Get() (v time.Duration, ok bool)
- func (o OptDuration) IsSet() bool
- func (o OptDuration) Or(d time.Duration) time.Duration
- func (o *OptDuration) Reset()
- func (o *OptDuration) SetTo(v time.Duration)
- type OptFloat64
- type OptID
- type OptInt
- type OptMapWithProperties
- func (o *OptMapWithProperties) Decode(d *jx.Decoder) error
- func (o OptMapWithProperties) Encode(e *jx.Writer)
- func (o OptMapWithProperties) Get() (v MapWithProperties, ok bool)
- func (o OptMapWithProperties) IsSet() bool
- func (o OptMapWithProperties) Or(d MapWithProperties) MapWithProperties
- func (o *OptMapWithProperties) Reset()
- func (o *OptMapWithProperties) SetTo(v MapWithProperties)
- type OptMapWithPropertiesInlinedSubMap
- func (o *OptMapWithPropertiesInlinedSubMap) Decode(d *jx.Decoder) error
- func (o OptMapWithPropertiesInlinedSubMap) Encode(e *jx.Writer)
- func (o OptMapWithPropertiesInlinedSubMap) Get() (v MapWithPropertiesInlinedSubMap, ok bool)
- func (o OptMapWithPropertiesInlinedSubMap) IsSet() bool
- func (o OptMapWithPropertiesInlinedSubMap) Or(d MapWithPropertiesInlinedSubMap) MapWithPropertiesInlinedSubMap
- func (o *OptMapWithPropertiesInlinedSubMap) Reset()
- func (o *OptMapWithPropertiesInlinedSubMap) SetTo(v MapWithPropertiesInlinedSubMap)
- type OptNilString
- func (o *OptNilString) Decode(d *jx.Decoder) error
- func (o OptNilString) Encode(e *jx.Writer)
- func (o OptNilString) Get() (v string, ok bool)
- func (o OptNilString) IsNull() bool
- func (o OptNilString) IsSet() bool
- func (o OptNilString) Or(d string) string
- func (o *OptNilString) Reset()
- func (o *OptNilString) SetTo(v string)
- type OptNilStringArray
- func (o *OptNilStringArray) Decode(d *jx.Decoder) error
- func (o OptNilStringArray) Encode(e *jx.Writer)
- func (o OptNilStringArray) Get() (v []string, ok bool)
- func (o OptNilStringArray) IsNull() bool
- func (o OptNilStringArray) IsSet() bool
- func (o OptNilStringArray) Or(d []string) []string
- func (o *OptNilStringArray) Reset()
- func (o *OptNilStringArray) SetTo(v []string)
- type OptNullableEnums
- func (o *OptNullableEnums) Decode(d *jx.Decoder) error
- func (o OptNullableEnums) Encode(e *jx.Writer)
- func (o OptNullableEnums) Get() (v NullableEnums, ok bool)
- func (o OptNullableEnums) IsSet() bool
- func (o OptNullableEnums) Or(d NullableEnums) NullableEnums
- func (o *OptNullableEnums) Reset()
- func (o *OptNullableEnums) SetTo(v NullableEnums)
- type OptPet
- type OptPetName
- type OptPetType
- type OptString
- type OptStringMap
- func (o *OptStringMap) Decode(d *jx.Decoder) error
- func (o OptStringMap) Encode(e *jx.Writer)
- func (o OptStringMap) Get() (v StringMap, ok bool)
- func (o OptStringMap) IsSet() bool
- func (o OptStringMap) Or(d StringMap) StringMap
- func (o *OptStringMap) Reset()
- func (o *OptStringMap) SetTo(v StringMap)
- type OptStringStringMap
- func (o *OptStringStringMap) Decode(d *jx.Decoder) error
- func (o OptStringStringMap) Encode(e *jx.Writer)
- func (o OptStringStringMap) Get() (v StringStringMap, ok bool)
- func (o OptStringStringMap) IsSet() bool
- func (o OptStringStringMap) Or(d StringStringMap) StringStringMap
- func (o *OptStringStringMap) Reset()
- func (o *OptStringStringMap) SetTo(v StringStringMap)
- type OptTestObjectQueryParameterDeepObject
- func (o OptTestObjectQueryParameterDeepObject) Get() (v TestObjectQueryParameterDeepObject, ok bool)
- func (o OptTestObjectQueryParameterDeepObject) IsSet() bool
- func (o OptTestObjectQueryParameterDeepObject) Or(d TestObjectQueryParameterDeepObject) TestObjectQueryParameterDeepObject
- func (o *OptTestObjectQueryParameterDeepObject) Reset()
- func (o *OptTestObjectQueryParameterDeepObject) SetTo(v TestObjectQueryParameterDeepObject)
- type OptTestObjectQueryParameterFormObject
- func (o OptTestObjectQueryParameterFormObject) Get() (v TestObjectQueryParameterFormObject, ok bool)
- func (o OptTestObjectQueryParameterFormObject) IsSet() bool
- func (o OptTestObjectQueryParameterFormObject) Or(d TestObjectQueryParameterFormObject) TestObjectQueryParameterFormObject
- func (o *OptTestObjectQueryParameterFormObject) Reset()
- func (o *OptTestObjectQueryParameterFormObject) SetTo(v TestObjectQueryParameterFormObject)
- type OptTime
- func (o *OptTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptTime) Encode(e *jx.Writer, format func(*jx.Writer, time.Time))
- func (o OptTime) Get() (v time.Time, ok bool)
- func (o OptTime) IsSet() bool
- func (o OptTime) Or(d time.Time) time.Time
- func (o *OptTime) Reset()
- func (o *OptTime) SetTo(v time.Time)
- type OptUUID
- type Option
- type Pet
- type PetFriendsNamesByIDParams
- type PetGetAvatarByIDOK
- type PetGetAvatarByIDParams
- type PetGetAvatarByIDRes
- type PetGetByNameParams
- type PetGetDef
- type PetGetDefStatusCode
- type PetGetParams
- type PetGetRes
- type PetKind
- type PetName
- type PetNameByIDParams
- type PetType
- type PetUpdateNameAliasPostDef
- type PetUpdateNameAliasPostDefStatusCode
- type PetUpdateNamePostDef
- type PetUpdateNamePostDefStatusCode
- type PetUploadAvatarByIDOK
- type PetUploadAvatarByIDParams
- type PetUploadAvatarByIDReq
- type PetUploadAvatarByIDRes
- type Route
- type Server
- type StringMap
- type StringStringMap
- type TestObjectQueryParameterDeepObject
- type TestObjectQueryParameterFormObject
- type TestObjectQueryParameterOK
- type TestObjectQueryParameterParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayTest ¶ added in v0.9.0
type ArrayTest struct { Required []string `json:"required"` Optional []string `json:"optional"` NullableRequired []string `json:"nullable_required"` NullableOptional OptNilStringArray `json:"nullable_optional"` }
Test array encoder/decoder generation. Ref: #/components/schemas/ArrayTest
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func (*Client) DataGetFormat ¶ added in v0.7.0
func (c *Client) DataGetFormat(ctx context.Context, params DataGetFormatParams) (res string, err error)
DataGetFormat invokes dataGetFormat operation.
Retrieve data.
GET /name/{id}/{foo}1234{bar}-{baz}!{kek}
func (*Client) ErrorGet ¶
func (c *Client) ErrorGet(ctx context.Context) (res ErrorStatusCode, err error)
ErrorGet invokes errorGet operation.
Returns error.
GET /error
func (*Client) FoobarGet ¶
func (c *Client) FoobarGet(ctx context.Context, params FoobarGetParams) (res FoobarGetRes, err error)
FoobarGet invokes foobarGet operation.
Dumb endpoint for testing things.
GET /foobar
func (*Client) FoobarPost ¶
FoobarPost invokes foobarPost operation.
Dumb endpoint for testing things.
POST /foobar
func (*Client) FoobarPut ¶
func (c *Client) FoobarPut(ctx context.Context) (res FoobarPutDefStatusCode, err error)
FoobarPut invokes operation.
PUT /foobar
func (*Client) GetHeader ¶
GetHeader invokes getHeader operation.
Test for header param.
GET /test/header
func (*Client) PetFriendsNamesByID ¶
func (c *Client) PetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) (res []string, err error)
PetFriendsNamesByID invokes petFriendsNamesByID operation.
Returns names of all friends of pet.
GET /pet/friendNames/{id}
func (*Client) PetGet ¶
PetGet invokes petGet operation.
Returns pet from the system that the user has access to.
GET /pet
func (*Client) PetGetAvatarByID ¶
func (c *Client) PetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDParams) (res PetGetAvatarByIDRes, err error)
PetGetAvatarByID invokes petGetAvatarByID operation.
Returns pet avatar by id.
GET /pet/avatar
func (*Client) PetGetByName ¶
PetGetByName invokes petGetByName operation.
Returns pet by name from the system that the user has access to.
GET /pet/{name}
func (*Client) PetNameByID ¶
PetNameByID invokes petNameByID operation.
Returns pet name by pet id.
GET /pet/name/{id}
func (*Client) PetUpdateNameAliasPost ¶
func (c *Client) PetUpdateNameAliasPost(ctx context.Context, request OptPetName) (res PetUpdateNameAliasPostDefStatusCode, err error)
PetUpdateNameAliasPost invokes operation.
POST /pet/updateNameAlias
func (*Client) PetUpdateNamePost ¶
func (c *Client) PetUpdateNamePost(ctx context.Context, request OptString) (res PetUpdateNamePostDefStatusCode, err error)
PetUpdateNamePost invokes operation.
POST /pet/updateName
func (*Client) PetUploadAvatarByID ¶
func (c *Client) PetUploadAvatarByID(ctx context.Context, request PetUploadAvatarByIDReq, params PetUploadAvatarByIDParams) (res PetUploadAvatarByIDRes, err error)
PetUploadAvatarByID invokes petUploadAvatarByID operation.
Uploads pet avatar by id.
POST /pet/avatar
func (*Client) TestObjectQueryParameter ¶ added in v0.10.0
func (c *Client) TestObjectQueryParameter(ctx context.Context, params TestObjectQueryParameterParams) (res TestObjectQueryParameterOK, err error)
TestObjectQueryParameter invokes testObjectQueryParameter operation.
GET /testObjectQueryParameter
type Data ¶
type Data struct { ID ID `json:"id"` Description DataDescription `json:"description"` Email string `json:"email"` Hostname string `json:"hostname"` Format string `json:"format"` Base64 []byte `json:"base64"` NullableEnum OptNullableEnums `json:"nullable_enum"` }
Ref: #/components/schemas/Data
type DataDescription ¶
type DataDescription struct { Type DataDescriptionType // switch on this field DescriptionDetailed DescriptionDetailed DescriptionSimple DescriptionSimple }
DataDescription represents sum type.
func NewDescriptionDetailedDataDescription ¶
func NewDescriptionDetailedDataDescription(v DescriptionDetailed) DataDescription
NewDescriptionDetailedDataDescription returns new DataDescription from DescriptionDetailed.
func NewDescriptionSimpleDataDescription ¶
func NewDescriptionSimpleDataDescription(v DescriptionSimple) DataDescription
NewDescriptionSimpleDataDescription returns new DataDescription from DescriptionSimple.
func (*DataDescription) Decode ¶
func (s *DataDescription) Decode(d *jx.Decoder) error
Decode decodes DataDescription from json.
func (DataDescription) Encode ¶
func (s DataDescription) Encode(e *jx.Writer)
Encode encodes DataDescription as json.
func (DataDescription) GetDescriptionDetailed ¶
func (s DataDescription) GetDescriptionDetailed() (v DescriptionDetailed, ok bool)
GetDescriptionDetailed returns DescriptionDetailed and true boolean if DataDescription is DescriptionDetailed.
func (DataDescription) GetDescriptionSimple ¶
func (s DataDescription) GetDescriptionSimple() (v DescriptionSimple, ok bool)
GetDescriptionSimple returns DescriptionSimple and true boolean if DataDescription is DescriptionSimple.
func (DataDescription) IsDescriptionDetailed ¶
func (s DataDescription) IsDescriptionDetailed() bool
IsDescriptionDetailed reports whether DataDescription is DescriptionDetailed.
func (DataDescription) IsDescriptionSimple ¶
func (s DataDescription) IsDescriptionSimple() bool
IsDescriptionSimple reports whether DataDescription is DescriptionSimple.
func (*DataDescription) SetDescriptionDetailed ¶
func (s *DataDescription) SetDescriptionDetailed(v DescriptionDetailed)
SetDescriptionDetailed sets DataDescription to DescriptionDetailed.
func (*DataDescription) SetDescriptionSimple ¶
func (s *DataDescription) SetDescriptionSimple(v DescriptionSimple)
SetDescriptionSimple sets DataDescription to DescriptionSimple.
type DataDescriptionType ¶
type DataDescriptionType string
DataDescriptionType is oneOf type of DataDescription.
const ( DescriptionDetailedDataDescription DataDescriptionType = "DescriptionDetailed" DescriptionSimpleDataDescription DataDescriptionType = "DescriptionSimple" )
Possible values for DataDescriptionType.
type DataGetFormatParams ¶ added in v0.7.0
type DescriptionDetailed ¶
type DescriptionDetailed struct { Name string `json:"name"` Count int `json:"count"` ID OptID `json:"id"` }
Ref: #/components/schemas/DescriptionDetailed
func (*DescriptionDetailed) Decode ¶
func (s *DescriptionDetailed) Decode(d *jx.Decoder) error
Decode decodes DescriptionDetailed from json.
func (DescriptionDetailed) Encode ¶
func (s DescriptionDetailed) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type DescriptionSimple ¶
type DescriptionSimple struct {
Description string `json:"description"`
}
Ref: #/components/schemas/DescriptionSimple
func (*DescriptionSimple) Decode ¶
func (s *DescriptionSimple) Decode(d *jx.Decoder) error
Decode decodes DescriptionSimple from json.
func (DescriptionSimple) Encode ¶
func (s DescriptionSimple) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
type FoobarGetParams ¶
type FoobarGetRes ¶
type FoobarGetRes interface {
// contains filtered or unexported methods
}
type FoobarPostRes ¶
type FoobarPostRes interface {
// contains filtered or unexported methods
}
type FoobarPutDef ¶
type FoobarPutDef struct{}
FoobarPutDef is default response for FoobarPut operation.
type FoobarPutDefStatusCode ¶
type FoobarPutDefStatusCode struct { StatusCode int Response FoobarPutDef }
FoobarPutDefStatusCode wraps FoobarPutDef with StatusCode.
type GetHeaderParams ¶
type GetHeaderParams struct {
XAuthToken string
}
type Handler ¶
type Handler interface { // DataGetFormat implements dataGetFormat operation. // // Retrieve data. // // GET /name/{id}/{foo}1234{bar}-{baz}!{kek} DataGetFormat(ctx context.Context, params DataGetFormatParams) (string, error) // ErrorGet implements errorGet operation. // // Returns error. // // GET /error ErrorGet(ctx context.Context) (ErrorStatusCode, error) // FoobarGet implements foobarGet operation. // // Dumb endpoint for testing things. // // GET /foobar FoobarGet(ctx context.Context, params FoobarGetParams) (FoobarGetRes, error) // FoobarPost implements foobarPost operation. // // Dumb endpoint for testing things. // // POST /foobar FoobarPost(ctx context.Context, req OptPet) (FoobarPostRes, error) // FoobarPut implements operation. // // PUT /foobar FoobarPut(ctx context.Context) (FoobarPutDefStatusCode, error) // GetHeader implements getHeader operation. // // Test for header param. // // GET /test/header GetHeader(ctx context.Context, params GetHeaderParams) (Hash, error) // OneofBug implements oneofBug operation. // // POST /oneofBug OneofBug(ctx context.Context, req OneOfBugs) (OneofBugOK, error) // PetCreate implements petCreate operation. // // Creates pet. // // POST /pet PetCreate(ctx context.Context, req OptPet) (Pet, error) // PetFriendsNamesByID implements petFriendsNamesByID operation. // // Returns names of all friends of pet. // // GET /pet/friendNames/{id} PetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) ([]string, error) // PetGet implements petGet operation. // // Returns pet from the system that the user has access to. // // GET /pet PetGet(ctx context.Context, params PetGetParams) (PetGetRes, error) // PetGetAvatarByID implements petGetAvatarByID operation. // // Returns pet avatar by id. // // GET /pet/avatar PetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDParams) (PetGetAvatarByIDRes, error) // PetGetByName implements petGetByName operation. // // Returns pet by name from the system that the user has access to. // // GET /pet/{name} PetGetByName(ctx context.Context, params PetGetByNameParams) (Pet, error) // PetNameByID implements petNameByID operation. // // Returns pet name by pet id. // // GET /pet/name/{id} PetNameByID(ctx context.Context, params PetNameByIDParams) (string, error) // PetUpdateNameAliasPost implements operation. // // POST /pet/updateNameAlias PetUpdateNameAliasPost(ctx context.Context, req OptPetName) (PetUpdateNameAliasPostDefStatusCode, error) // PetUpdateNamePost implements operation. // // POST /pet/updateName PetUpdateNamePost(ctx context.Context, req OptString) (PetUpdateNamePostDefStatusCode, error) // PetUploadAvatarByID implements petUploadAvatarByID operation. // // Uploads pet avatar by id. // // POST /pet/avatar PetUploadAvatarByID(ctx context.Context, req PetUploadAvatarByIDReq, params PetUploadAvatarByIDParams) (PetUploadAvatarByIDRes, error) // TestObjectQueryParameter implements testObjectQueryParameter operation. // // GET /testObjectQueryParameter TestObjectQueryParameter(ctx context.Context, params TestObjectQueryParameterParams) (TestObjectQueryParameterOK, error) }
Handler handles operations described by OpenAPI v3 specification.
type ID ¶
Ref: #/components/schemas/ID ID represents sum type.
type Issue143 ¶ added in v0.10.0
type Issue143 struct { Type Issue143Type // switch on this field Issue1430 Issue1430 Issue1431 Issue1431 Issue1432 Issue1432 Issue1433 Issue1433 }
Ref: #/components/schemas/Issue143 Issue143 represents sum type.
func NewIssue1430Issue143 ¶ added in v0.10.0
NewIssue1430Issue143 returns new Issue143 from Issue1430.
func NewIssue1431Issue143 ¶ added in v0.10.0
NewIssue1431Issue143 returns new Issue143 from Issue1431.
func NewIssue1432Issue143 ¶ added in v0.10.0
NewIssue1432Issue143 returns new Issue143 from Issue1432.
func NewIssue1433Issue143 ¶ added in v0.10.0
NewIssue1433Issue143 returns new Issue143 from Issue1433.
func (Issue143) GetIssue1430 ¶ added in v0.10.0
GetIssue1430 returns Issue1430 and true boolean if Issue143 is Issue1430.
func (Issue143) GetIssue1431 ¶ added in v0.10.0
GetIssue1431 returns Issue1431 and true boolean if Issue143 is Issue1431.
func (Issue143) GetIssue1432 ¶ added in v0.10.0
GetIssue1432 returns Issue1432 and true boolean if Issue143 is Issue1432.
func (Issue143) GetIssue1433 ¶ added in v0.10.0
GetIssue1433 returns Issue1433 and true boolean if Issue143 is Issue1433.
func (Issue143) IsIssue1430 ¶ added in v0.10.0
IsIssue1430 reports whether Issue143 is Issue1430.
func (Issue143) IsIssue1431 ¶ added in v0.10.0
IsIssue1431 reports whether Issue143 is Issue1431.
func (Issue143) IsIssue1432 ¶ added in v0.10.0
IsIssue1432 reports whether Issue143 is Issue1432.
func (Issue143) IsIssue1433 ¶ added in v0.10.0
IsIssue1433 reports whether Issue143 is Issue1433.
func (*Issue143) SetIssue1430 ¶ added in v0.10.0
SetIssue1430 sets Issue143 to Issue1430.
func (*Issue143) SetIssue1431 ¶ added in v0.10.0
SetIssue1431 sets Issue143 to Issue1431.
func (*Issue143) SetIssue1432 ¶ added in v0.10.0
SetIssue1432 sets Issue143 to Issue1432.
func (*Issue143) SetIssue1433 ¶ added in v0.10.0
SetIssue1433 sets Issue143 to Issue1433.
type Issue1430 ¶ added in v0.10.0
type Issue1430 struct { CommonMinus1 string `json:"common-1"` CommonMinus2 int `json:"common-2"` UniqueMinus1 string `json:"unique-1"` }
type Issue1431 ¶ added in v0.10.0
type Issue1431 struct { CommonMinus1 string `json:"common-1"` CommonMinus2 int `json:"common-2"` UniqueMinus2 string `json:"unique-2"` }
type Issue1432 ¶ added in v0.10.0
type Issue1432 struct { CommonMinus1 string `json:"common-1"` CommonMinus2 int `json:"common-2"` CommonMinus3 OptInt `json:"common-3"` UniqueMinus3 string `json:"unique-3"` }
type Issue1433 ¶ added in v0.10.0
type Issue1433 struct { CommonMinus3 OptInt `json:"common-3"` UniqueMinus4 string `json:"unique-4"` }
type Issue143Type ¶ added in v0.10.0
type Issue143Type string
Issue143Type is oneOf type of Issue143.
const ( Issue1430Issue143 Issue143Type = "Issue1430" Issue1431Issue143 Issue143Type = "Issue1431" Issue1432Issue143 Issue143Type = "Issue1432" Issue1433Issue143 Issue143Type = "Issue1433" )
Possible values for Issue143Type.
type MapWithProperties ¶ added in v0.9.0
type MapWithProperties struct { Required int `json:"required"` Optional OptInt `json:"optional"` SubMap OptStringMap `json:"sub_map"` InlinedSubMap OptMapWithPropertiesInlinedSubMap `json:"inlined_sub_map"` AdditionalProps map[string]string }
Ref: #/components/schemas/MapWithProperties
func (*MapWithProperties) Decode ¶ added in v0.9.0
func (s *MapWithProperties) Decode(d *jx.Decoder) error
Decode decodes MapWithProperties from json.
func (MapWithProperties) Encode ¶ added in v0.9.0
func (s MapWithProperties) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type MapWithPropertiesInlinedSubMap ¶ added in v0.9.0
func (MapWithPropertiesInlinedSubMap) Decode ¶ added in v0.9.0
func (s MapWithPropertiesInlinedSubMap) Decode(d *jx.Decoder) error
Decode decodes MapWithPropertiesInlinedSubMap from json.
func (MapWithPropertiesInlinedSubMap) Encode ¶ added in v0.9.0
func (s MapWithPropertiesInlinedSubMap) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type NilNullableEnumsBoth ¶ added in v0.8.0
type NilNullableEnumsBoth struct { Value NullableEnumsBoth Null bool }
NilNullableEnumsBoth is nullable NullableEnumsBoth.
func NewNilNullableEnumsBoth ¶ added in v0.8.0
func NewNilNullableEnumsBoth(v NullableEnumsBoth) NilNullableEnumsBoth
NewNilNullableEnumsBoth returns new NilNullableEnumsBoth with value set to v.
func (*NilNullableEnumsBoth) Decode ¶ added in v0.8.0
func (o *NilNullableEnumsBoth) Decode(d *jx.Decoder) error
Decode decodes NullableEnumsBoth from json.
func (NilNullableEnumsBoth) Encode ¶ added in v0.8.0
func (o NilNullableEnumsBoth) Encode(e *jx.Writer)
Encode encodes NullableEnumsBoth as json.
func (NilNullableEnumsBoth) Get ¶ added in v0.8.0
func (o NilNullableEnumsBoth) Get() (v NullableEnumsBoth, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilNullableEnumsBoth) IsNull ¶ added in v0.8.0
func (o NilNullableEnumsBoth) IsNull() bool
IsSet returns true if value is Null.
func (NilNullableEnumsBoth) Or ¶ added in v0.8.0
func (o NilNullableEnumsBoth) Or(d NullableEnumsBoth) NullableEnumsBoth
Or returns value if set, or given parameter if does not.
func (*NilNullableEnumsBoth) SetTo ¶ added in v0.8.0
func (o *NilNullableEnumsBoth) SetTo(v NullableEnumsBoth)
SetTo sets value to v.
type NilNullableEnumsOnlyNullValue ¶ added in v0.8.0
type NilNullableEnumsOnlyNullValue struct { Value NullableEnumsOnlyNullValue Null bool }
NilNullableEnumsOnlyNullValue is nullable NullableEnumsOnlyNullValue.
func NewNilNullableEnumsOnlyNullValue ¶ added in v0.8.0
func NewNilNullableEnumsOnlyNullValue(v NullableEnumsOnlyNullValue) NilNullableEnumsOnlyNullValue
NewNilNullableEnumsOnlyNullValue returns new NilNullableEnumsOnlyNullValue with value set to v.
func (*NilNullableEnumsOnlyNullValue) Decode ¶ added in v0.8.0
func (o *NilNullableEnumsOnlyNullValue) Decode(d *jx.Decoder) error
Decode decodes NullableEnumsOnlyNullValue from json.
func (NilNullableEnumsOnlyNullValue) Encode ¶ added in v0.8.0
func (o NilNullableEnumsOnlyNullValue) Encode(e *jx.Writer)
Encode encodes NullableEnumsOnlyNullValue as json.
func (NilNullableEnumsOnlyNullValue) Get ¶ added in v0.8.0
func (o NilNullableEnumsOnlyNullValue) Get() (v NullableEnumsOnlyNullValue, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilNullableEnumsOnlyNullValue) IsNull ¶ added in v0.8.0
func (o NilNullableEnumsOnlyNullValue) IsNull() bool
IsSet returns true if value is Null.
func (NilNullableEnumsOnlyNullValue) Or ¶ added in v0.8.0
Or returns value if set, or given parameter if does not.
func (*NilNullableEnumsOnlyNullValue) SetTo ¶ added in v0.8.0
func (o *NilNullableEnumsOnlyNullValue) SetTo(v NullableEnumsOnlyNullValue)
SetTo sets value to v.
type NilString ¶
NilString is nullable string.
func NewNilString ¶
NewNilString returns new NilString with value set to v.
type NullableEnums ¶ added in v0.8.0
type NullableEnums struct { // Must not be nullable. OnlyNullable NullableEnumsOnlyNullable `json:"only_nullable"` // Must be nullable. OnlyNullValue NilNullableEnumsOnlyNullValue `json:"only_null_value"` // Must be nullable. Both NilNullableEnumsBoth `json:"both"` }
Ref: #/components/schemas/NullableEnums
func (*NullableEnums) Decode ¶ added in v0.8.0
func (s *NullableEnums) Decode(d *jx.Decoder) error
Decode decodes NullableEnums from json.
func (NullableEnums) Encode ¶ added in v0.8.0
func (s NullableEnums) Encode(e *jx.Writer)
Encode implements json.Marshaler.
func (NullableEnums) Validate ¶ added in v0.8.0
func (s NullableEnums) Validate() error
type NullableEnumsBoth ¶ added in v0.8.0
type NullableEnumsBoth string
Must be nullable.
const ( NullableEnumsBothAsc NullableEnumsBoth = "asc" NullableEnumsBothDesc NullableEnumsBoth = "desc" )
func (*NullableEnumsBoth) Decode ¶ added in v0.8.0
func (s *NullableEnumsBoth) Decode(d *jx.Decoder) error
Decode decodes NullableEnumsBoth from json.
func (NullableEnumsBoth) Encode ¶ added in v0.8.0
func (s NullableEnumsBoth) Encode(e *jx.Writer)
Encode encodes NullableEnumsBoth as json.
func (NullableEnumsBoth) Validate ¶ added in v0.8.0
func (s NullableEnumsBoth) Validate() error
type NullableEnumsOnlyNullValue ¶ added in v0.8.0
type NullableEnumsOnlyNullValue string
Must be nullable.
const ( NullableEnumsOnlyNullValueAsc NullableEnumsOnlyNullValue = "asc" NullableEnumsOnlyNullValueDesc NullableEnumsOnlyNullValue = "desc" )
func (*NullableEnumsOnlyNullValue) Decode ¶ added in v0.8.0
func (s *NullableEnumsOnlyNullValue) Decode(d *jx.Decoder) error
Decode decodes NullableEnumsOnlyNullValue from json.
func (NullableEnumsOnlyNullValue) Encode ¶ added in v0.8.0
func (s NullableEnumsOnlyNullValue) Encode(e *jx.Writer)
Encode encodes NullableEnumsOnlyNullValue as json.
func (NullableEnumsOnlyNullValue) Validate ¶ added in v0.8.0
func (s NullableEnumsOnlyNullValue) Validate() error
type NullableEnumsOnlyNullable ¶ added in v0.8.0
type NullableEnumsOnlyNullable string
Must not be nullable.
const ( NullableEnumsOnlyNullableAsc NullableEnumsOnlyNullable = "asc" NullableEnumsOnlyNullableDesc NullableEnumsOnlyNullable = "desc" )
func (*NullableEnumsOnlyNullable) Decode ¶ added in v0.8.0
func (s *NullableEnumsOnlyNullable) Decode(d *jx.Decoder) error
Decode decodes NullableEnumsOnlyNullable from json.
func (NullableEnumsOnlyNullable) Encode ¶ added in v0.8.0
func (s NullableEnumsOnlyNullable) Encode(e *jx.Writer)
Encode encodes NullableEnumsOnlyNullable as json.
func (NullableEnumsOnlyNullable) Validate ¶ added in v0.8.0
func (s NullableEnumsOnlyNullable) Validate() error
type OneOfBugs ¶ added in v0.10.0
type OneOfBugs struct { Issue143 Issue143 `json:"issue143"` AdditionalMinusFields OneVariantHasNoUniqueFields `json:"additional-fields"` }
Ref: #/components/schemas/OneOfBugs
type OneVariantHasNoUniqueFields ¶ added in v0.10.0
type OneVariantHasNoUniqueFields struct { Type OneVariantHasNoUniqueFieldsType // switch on this field OneVariantHasNoUniqueFields0 OneVariantHasNoUniqueFields0 OneVariantHasNoUniqueFields1 OneVariantHasNoUniqueFields1 }
Ref: #/components/schemas/OneVariantHasNoUniqueFields OneVariantHasNoUniqueFields represents sum type.
func NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields ¶ added in v0.10.0
func NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields(v OneVariantHasNoUniqueFields0) OneVariantHasNoUniqueFields
NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields returns new OneVariantHasNoUniqueFields from OneVariantHasNoUniqueFields0.
func NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields ¶ added in v0.10.0
func NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields(v OneVariantHasNoUniqueFields1) OneVariantHasNoUniqueFields
NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields returns new OneVariantHasNoUniqueFields from OneVariantHasNoUniqueFields1.
func (*OneVariantHasNoUniqueFields) Decode ¶ added in v0.10.0
func (s *OneVariantHasNoUniqueFields) Decode(d *jx.Decoder) error
Decode decodes OneVariantHasNoUniqueFields from json.
func (OneVariantHasNoUniqueFields) Encode ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields) Encode(e *jx.Writer)
Encode encodes OneVariantHasNoUniqueFields as json.
func (OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields0 ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields0() (v OneVariantHasNoUniqueFields0, ok bool)
GetOneVariantHasNoUniqueFields0 returns OneVariantHasNoUniqueFields0 and true boolean if OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields0.
func (OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields1 ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields1() (v OneVariantHasNoUniqueFields1, ok bool)
GetOneVariantHasNoUniqueFields1 returns OneVariantHasNoUniqueFields1 and true boolean if OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields1.
func (OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields0 ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields0() bool
IsOneVariantHasNoUniqueFields0 reports whether OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields0.
func (OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields1 ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields1() bool
IsOneVariantHasNoUniqueFields1 reports whether OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields1.
func (*OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields0 ¶ added in v0.10.0
func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields0(v OneVariantHasNoUniqueFields0)
SetOneVariantHasNoUniqueFields0 sets OneVariantHasNoUniqueFields to OneVariantHasNoUniqueFields0.
func (*OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields1 ¶ added in v0.10.0
func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields1(v OneVariantHasNoUniqueFields1)
SetOneVariantHasNoUniqueFields1 sets OneVariantHasNoUniqueFields to OneVariantHasNoUniqueFields1.
type OneVariantHasNoUniqueFields0 ¶ added in v0.10.0
type OneVariantHasNoUniqueFields0 struct { A string `json:"a"` B OptInt `json:"b"` C string `json:"c"` }
func (*OneVariantHasNoUniqueFields0) Decode ¶ added in v0.10.0
func (s *OneVariantHasNoUniqueFields0) Decode(d *jx.Decoder) error
Decode decodes OneVariantHasNoUniqueFields0 from json.
func (OneVariantHasNoUniqueFields0) Encode ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields0) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type OneVariantHasNoUniqueFields1 ¶ added in v0.10.0
type OneVariantHasNoUniqueFields1 struct { A string `json:"a"` B OptInt `json:"b"` C string `json:"c"` D OptInt `json:"d"` }
func (*OneVariantHasNoUniqueFields1) Decode ¶ added in v0.10.0
func (s *OneVariantHasNoUniqueFields1) Decode(d *jx.Decoder) error
Decode decodes OneVariantHasNoUniqueFields1 from json.
func (OneVariantHasNoUniqueFields1) Encode ¶ added in v0.10.0
func (s OneVariantHasNoUniqueFields1) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type OneVariantHasNoUniqueFieldsType ¶ added in v0.10.0
type OneVariantHasNoUniqueFieldsType string
OneVariantHasNoUniqueFieldsType is oneOf type of OneVariantHasNoUniqueFields.
const ( OneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields OneVariantHasNoUniqueFieldsType = "OneVariantHasNoUniqueFields0" OneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields OneVariantHasNoUniqueFieldsType = "OneVariantHasNoUniqueFields1" )
Possible values for OneVariantHasNoUniqueFieldsType.
type OneofBugOK ¶ added in v0.10.0
type OneofBugOK struct{}
OneofBugOK is response for OneofBug operation.
type OptArrayTest ¶ added in v0.9.0
OptArrayTest is optional ArrayTest.
func NewOptArrayTest ¶ added in v0.9.0
func NewOptArrayTest(v ArrayTest) OptArrayTest
NewOptArrayTest returns new OptArrayTest with value set to v.
func (*OptArrayTest) Decode ¶ added in v0.9.0
func (o *OptArrayTest) Decode(d *jx.Decoder) error
Decode decodes ArrayTest from json.
func (OptArrayTest) Encode ¶ added in v0.9.0
func (o OptArrayTest) Encode(e *jx.Writer)
Encode encodes ArrayTest as json.
func (OptArrayTest) Get ¶ added in v0.9.0
func (o OptArrayTest) Get() (v ArrayTest, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptArrayTest) IsSet ¶ added in v0.9.0
func (o OptArrayTest) IsSet() bool
IsSet returns true if OptArrayTest was set.
func (OptArrayTest) Or ¶ added in v0.9.0
func (o OptArrayTest) Or(d ArrayTest) ArrayTest
Or returns value if set, or given parameter if does not.
func (*OptArrayTest) SetTo ¶ added in v0.9.0
func (o *OptArrayTest) SetTo(v ArrayTest)
SetTo sets value to v.
type OptData ¶
OptData is optional Data.
func NewOptData ¶
NewOptData returns new OptData with value set to v.
type OptDuration ¶
OptDuration is optional time.Duration.
func NewOptDuration ¶
func NewOptDuration(v time.Duration) OptDuration
NewOptDuration returns new OptDuration with value set to v.
func (*OptDuration) Decode ¶
func (o *OptDuration) Decode(d *jx.Decoder) error
Decode decodes time.Duration from json.
func (OptDuration) Encode ¶
func (o OptDuration) Encode(e *jx.Writer)
Encode encodes time.Duration as json.
func (OptDuration) Get ¶
func (o OptDuration) Get() (v time.Duration, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDuration) IsSet ¶
func (o OptDuration) IsSet() bool
IsSet returns true if OptDuration was set.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) Or ¶ added in v0.4.0
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
type OptID ¶ added in v0.7.0
OptID is optional ID.
func (OptID) Get ¶ added in v0.7.0
Get returns value and boolean that denotes whether value was set.
type OptInt ¶
OptInt is optional int.
type OptMapWithProperties ¶ added in v0.9.0
type OptMapWithProperties struct { Value MapWithProperties Set bool }
OptMapWithProperties is optional MapWithProperties.
func NewOptMapWithProperties ¶ added in v0.9.0
func NewOptMapWithProperties(v MapWithProperties) OptMapWithProperties
NewOptMapWithProperties returns new OptMapWithProperties with value set to v.
func (*OptMapWithProperties) Decode ¶ added in v0.9.0
func (o *OptMapWithProperties) Decode(d *jx.Decoder) error
Decode decodes MapWithProperties from json.
func (OptMapWithProperties) Encode ¶ added in v0.9.0
func (o OptMapWithProperties) Encode(e *jx.Writer)
Encode encodes MapWithProperties as json.
func (OptMapWithProperties) Get ¶ added in v0.9.0
func (o OptMapWithProperties) Get() (v MapWithProperties, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMapWithProperties) IsSet ¶ added in v0.9.0
func (o OptMapWithProperties) IsSet() bool
IsSet returns true if OptMapWithProperties was set.
func (OptMapWithProperties) Or ¶ added in v0.9.0
func (o OptMapWithProperties) Or(d MapWithProperties) MapWithProperties
Or returns value if set, or given parameter if does not.
func (*OptMapWithProperties) Reset ¶ added in v0.9.0
func (o *OptMapWithProperties) Reset()
Reset unsets value.
func (*OptMapWithProperties) SetTo ¶ added in v0.9.0
func (o *OptMapWithProperties) SetTo(v MapWithProperties)
SetTo sets value to v.
type OptMapWithPropertiesInlinedSubMap ¶ added in v0.9.0
type OptMapWithPropertiesInlinedSubMap struct { Value MapWithPropertiesInlinedSubMap Set bool }
OptMapWithPropertiesInlinedSubMap is optional MapWithPropertiesInlinedSubMap.
func NewOptMapWithPropertiesInlinedSubMap ¶ added in v0.9.0
func NewOptMapWithPropertiesInlinedSubMap(v MapWithPropertiesInlinedSubMap) OptMapWithPropertiesInlinedSubMap
NewOptMapWithPropertiesInlinedSubMap returns new OptMapWithPropertiesInlinedSubMap with value set to v.
func (*OptMapWithPropertiesInlinedSubMap) Decode ¶ added in v0.9.0
func (o *OptMapWithPropertiesInlinedSubMap) Decode(d *jx.Decoder) error
Decode decodes MapWithPropertiesInlinedSubMap from json.
func (OptMapWithPropertiesInlinedSubMap) Encode ¶ added in v0.9.0
func (o OptMapWithPropertiesInlinedSubMap) Encode(e *jx.Writer)
Encode encodes MapWithPropertiesInlinedSubMap as json.
func (OptMapWithPropertiesInlinedSubMap) Get ¶ added in v0.9.0
func (o OptMapWithPropertiesInlinedSubMap) Get() (v MapWithPropertiesInlinedSubMap, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMapWithPropertiesInlinedSubMap) IsSet ¶ added in v0.9.0
func (o OptMapWithPropertiesInlinedSubMap) IsSet() bool
IsSet returns true if OptMapWithPropertiesInlinedSubMap was set.
func (OptMapWithPropertiesInlinedSubMap) Or ¶ added in v0.9.0
func (o OptMapWithPropertiesInlinedSubMap) Or(d MapWithPropertiesInlinedSubMap) MapWithPropertiesInlinedSubMap
Or returns value if set, or given parameter if does not.
func (*OptMapWithPropertiesInlinedSubMap) Reset ¶ added in v0.9.0
func (o *OptMapWithPropertiesInlinedSubMap) Reset()
Reset unsets value.
func (*OptMapWithPropertiesInlinedSubMap) SetTo ¶ added in v0.9.0
func (o *OptMapWithPropertiesInlinedSubMap) SetTo(v MapWithPropertiesInlinedSubMap)
SetTo sets value to v.
type OptNilString ¶
OptNilString is optional nullable string.
func NewOptNilString ¶
func NewOptNilString(v string) OptNilString
NewOptNilString returns new OptNilString with value set to v.
func (*OptNilString) Decode ¶
func (o *OptNilString) Decode(d *jx.Decoder) error
Decode decodes string from json.
func (OptNilString) Encode ¶
func (o OptNilString) Encode(e *jx.Writer)
Encode encodes string as json.
func (OptNilString) Get ¶
func (o OptNilString) Get() (v string, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilString) IsNull ¶
func (o OptNilString) IsNull() bool
IsSet returns true if value is Null.
func (OptNilString) IsSet ¶
func (o OptNilString) IsSet() bool
IsSet returns true if OptNilString was set.
func (OptNilString) Or ¶ added in v0.4.0
func (o OptNilString) Or(d string) string
Or returns value if set, or given parameter if does not.
type OptNilStringArray ¶ added in v0.9.0
OptNilStringArray is optional nullable []string.
func NewOptNilStringArray ¶ added in v0.9.0
func NewOptNilStringArray(v []string) OptNilStringArray
NewOptNilStringArray returns new OptNilStringArray with value set to v.
func (*OptNilStringArray) Decode ¶ added in v0.9.0
func (o *OptNilStringArray) Decode(d *jx.Decoder) error
Decode decodes []string from json.
func (OptNilStringArray) Encode ¶ added in v0.9.0
func (o OptNilStringArray) Encode(e *jx.Writer)
Encode encodes []string as json.
func (OptNilStringArray) Get ¶ added in v0.9.0
func (o OptNilStringArray) Get() (v []string, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilStringArray) IsNull ¶ added in v0.9.0
func (o OptNilStringArray) IsNull() bool
IsSet returns true if value is Null.
func (OptNilStringArray) IsSet ¶ added in v0.9.0
func (o OptNilStringArray) IsSet() bool
IsSet returns true if OptNilStringArray was set.
func (OptNilStringArray) Or ¶ added in v0.9.0
func (o OptNilStringArray) Or(d []string) []string
Or returns value if set, or given parameter if does not.
func (*OptNilStringArray) Reset ¶ added in v0.9.0
func (o *OptNilStringArray) Reset()
Reset unsets value.
func (*OptNilStringArray) SetTo ¶ added in v0.9.0
func (o *OptNilStringArray) SetTo(v []string)
SetTo sets value to v.
type OptNullableEnums ¶ added in v0.8.0
type OptNullableEnums struct { Value NullableEnums Set bool }
OptNullableEnums is optional NullableEnums.
func NewOptNullableEnums ¶ added in v0.8.0
func NewOptNullableEnums(v NullableEnums) OptNullableEnums
NewOptNullableEnums returns new OptNullableEnums with value set to v.
func (*OptNullableEnums) Decode ¶ added in v0.8.0
func (o *OptNullableEnums) Decode(d *jx.Decoder) error
Decode decodes NullableEnums from json.
func (OptNullableEnums) Encode ¶ added in v0.8.0
func (o OptNullableEnums) Encode(e *jx.Writer)
Encode encodes NullableEnums as json.
func (OptNullableEnums) Get ¶ added in v0.8.0
func (o OptNullableEnums) Get() (v NullableEnums, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNullableEnums) IsSet ¶ added in v0.8.0
func (o OptNullableEnums) IsSet() bool
IsSet returns true if OptNullableEnums was set.
func (OptNullableEnums) Or ¶ added in v0.8.0
func (o OptNullableEnums) Or(d NullableEnums) NullableEnums
Or returns value if set, or given parameter if does not.
func (*OptNullableEnums) Reset ¶ added in v0.8.0
func (o *OptNullableEnums) Reset()
Reset unsets value.
func (*OptNullableEnums) SetTo ¶ added in v0.8.0
func (o *OptNullableEnums) SetTo(v NullableEnums)
SetTo sets value to v.
type OptPet ¶
OptPet is optional Pet.
type OptPetName ¶
OptPetName is optional PetName.
func NewOptPetName ¶
func NewOptPetName(v PetName) OptPetName
NewOptPetName returns new OptPetName with value set to v.
func (*OptPetName) Decode ¶
func (o *OptPetName) Decode(d *jx.Decoder) error
Decode decodes PetName from json.
func (OptPetName) Get ¶
func (o OptPetName) Get() (v PetName, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetName) IsSet ¶
func (o OptPetName) IsSet() bool
IsSet returns true if OptPetName was set.
func (OptPetName) Or ¶ added in v0.4.0
func (o OptPetName) Or(d PetName) PetName
Or returns value if set, or given parameter if does not.
type OptPetType ¶
OptPetType is optional PetType.
func NewOptPetType ¶
func NewOptPetType(v PetType) OptPetType
NewOptPetType returns new OptPetType with value set to v.
func (*OptPetType) Decode ¶
func (o *OptPetType) Decode(d *jx.Decoder) error
Decode decodes PetType from json.
func (OptPetType) Get ¶
func (o OptPetType) Get() (v PetType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetType) IsSet ¶
func (o OptPetType) IsSet() bool
IsSet returns true if OptPetType was set.
func (OptPetType) Or ¶ added in v0.4.0
func (o OptPetType) Or(d PetType) PetType
Or returns value if set, or given parameter if does not.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
type OptStringMap ¶ added in v0.9.0
OptStringMap is optional StringMap.
func NewOptStringMap ¶ added in v0.9.0
func NewOptStringMap(v StringMap) OptStringMap
NewOptStringMap returns new OptStringMap with value set to v.
func (*OptStringMap) Decode ¶ added in v0.9.0
func (o *OptStringMap) Decode(d *jx.Decoder) error
Decode decodes StringMap from json.
func (OptStringMap) Encode ¶ added in v0.9.0
func (o OptStringMap) Encode(e *jx.Writer)
Encode encodes StringMap as json.
func (OptStringMap) Get ¶ added in v0.9.0
func (o OptStringMap) Get() (v StringMap, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptStringMap) IsSet ¶ added in v0.9.0
func (o OptStringMap) IsSet() bool
IsSet returns true if OptStringMap was set.
func (OptStringMap) Or ¶ added in v0.9.0
func (o OptStringMap) Or(d StringMap) StringMap
Or returns value if set, or given parameter if does not.
func (*OptStringMap) SetTo ¶ added in v0.9.0
func (o *OptStringMap) SetTo(v StringMap)
SetTo sets value to v.
type OptStringStringMap ¶ added in v0.9.0
type OptStringStringMap struct { Value StringStringMap Set bool }
OptStringStringMap is optional StringStringMap.
func NewOptStringStringMap ¶ added in v0.9.0
func NewOptStringStringMap(v StringStringMap) OptStringStringMap
NewOptStringStringMap returns new OptStringStringMap with value set to v.
func (*OptStringStringMap) Decode ¶ added in v0.9.0
func (o *OptStringStringMap) Decode(d *jx.Decoder) error
Decode decodes StringStringMap from json.
func (OptStringStringMap) Encode ¶ added in v0.9.0
func (o OptStringStringMap) Encode(e *jx.Writer)
Encode encodes StringStringMap as json.
func (OptStringStringMap) Get ¶ added in v0.9.0
func (o OptStringStringMap) Get() (v StringStringMap, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptStringStringMap) IsSet ¶ added in v0.9.0
func (o OptStringStringMap) IsSet() bool
IsSet returns true if OptStringStringMap was set.
func (OptStringStringMap) Or ¶ added in v0.9.0
func (o OptStringStringMap) Or(d StringStringMap) StringStringMap
Or returns value if set, or given parameter if does not.
func (*OptStringStringMap) Reset ¶ added in v0.9.0
func (o *OptStringStringMap) Reset()
Reset unsets value.
func (*OptStringStringMap) SetTo ¶ added in v0.9.0
func (o *OptStringStringMap) SetTo(v StringStringMap)
SetTo sets value to v.
type OptTestObjectQueryParameterDeepObject ¶ added in v0.10.0
type OptTestObjectQueryParameterDeepObject struct { Value TestObjectQueryParameterDeepObject Set bool }
OptTestObjectQueryParameterDeepObject is optional TestObjectQueryParameterDeepObject.
func NewOptTestObjectQueryParameterDeepObject ¶ added in v0.10.0
func NewOptTestObjectQueryParameterDeepObject(v TestObjectQueryParameterDeepObject) OptTestObjectQueryParameterDeepObject
NewOptTestObjectQueryParameterDeepObject returns new OptTestObjectQueryParameterDeepObject with value set to v.
func (OptTestObjectQueryParameterDeepObject) Get ¶ added in v0.10.0
func (o OptTestObjectQueryParameterDeepObject) Get() (v TestObjectQueryParameterDeepObject, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptTestObjectQueryParameterDeepObject) IsSet ¶ added in v0.10.0
func (o OptTestObjectQueryParameterDeepObject) IsSet() bool
IsSet returns true if OptTestObjectQueryParameterDeepObject was set.
func (OptTestObjectQueryParameterDeepObject) Or ¶ added in v0.10.0
func (o OptTestObjectQueryParameterDeepObject) Or(d TestObjectQueryParameterDeepObject) TestObjectQueryParameterDeepObject
Or returns value if set, or given parameter if does not.
func (*OptTestObjectQueryParameterDeepObject) Reset ¶ added in v0.10.0
func (o *OptTestObjectQueryParameterDeepObject) Reset()
Reset unsets value.
func (*OptTestObjectQueryParameterDeepObject) SetTo ¶ added in v0.10.0
func (o *OptTestObjectQueryParameterDeepObject) SetTo(v TestObjectQueryParameterDeepObject)
SetTo sets value to v.
type OptTestObjectQueryParameterFormObject ¶ added in v0.10.0
type OptTestObjectQueryParameterFormObject struct { Value TestObjectQueryParameterFormObject Set bool }
OptTestObjectQueryParameterFormObject is optional TestObjectQueryParameterFormObject.
func NewOptTestObjectQueryParameterFormObject ¶ added in v0.10.0
func NewOptTestObjectQueryParameterFormObject(v TestObjectQueryParameterFormObject) OptTestObjectQueryParameterFormObject
NewOptTestObjectQueryParameterFormObject returns new OptTestObjectQueryParameterFormObject with value set to v.
func (OptTestObjectQueryParameterFormObject) Get ¶ added in v0.10.0
func (o OptTestObjectQueryParameterFormObject) Get() (v TestObjectQueryParameterFormObject, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptTestObjectQueryParameterFormObject) IsSet ¶ added in v0.10.0
func (o OptTestObjectQueryParameterFormObject) IsSet() bool
IsSet returns true if OptTestObjectQueryParameterFormObject was set.
func (OptTestObjectQueryParameterFormObject) Or ¶ added in v0.10.0
func (o OptTestObjectQueryParameterFormObject) Or(d TestObjectQueryParameterFormObject) TestObjectQueryParameterFormObject
Or returns value if set, or given parameter if does not.
func (*OptTestObjectQueryParameterFormObject) Reset ¶ added in v0.10.0
func (o *OptTestObjectQueryParameterFormObject) Reset()
Reset unsets value.
func (*OptTestObjectQueryParameterFormObject) SetTo ¶ added in v0.10.0
func (o *OptTestObjectQueryParameterFormObject) SetTo(v TestObjectQueryParameterFormObject)
SetTo sets value to v.
type OptTime ¶
OptTime is optional time.Time.
func NewOptTime ¶
NewOptTime returns new OptTime with value set to v.
type OptUUID ¶
OptUUID is optional uuid.UUID.
func NewOptUUID ¶
NewOptUUID returns new OptUUID with value set to v.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
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 Pet ¶
type Pet struct { Primary *Pet `json:"primary"` ID int64 `json:"id"` UniqueID uuid.UUID `json:"unique_id"` Name string `json:"name"` Type OptPetType `json:"type"` Kind PetKind `json:"kind"` Tag OptUUID `json:"tag"` IP net.IP `json:"ip"` IPV4 net.IP `json:"ip_v4"` IPV6 net.IP `json:"ip_v6"` URI url.URL `json:"uri"` Birthday time.Time `json:"birthday"` Rate time.Duration `json:"rate"` Nickname NilString `json:"nickname"` NullStr OptNilString `json:"nullStr"` Friends []Pet `json:"friends"` Next OptData `json:"next"` TestInteger1 OptInt `json:"testInteger1"` TestFloat1 OptFloat64 `json:"testFloat1"` TestArray1 [][]string `json:"testArray1"` TestArray2 OptArrayTest `json:"testArray2"` TestMap OptStringStringMap `json:"testMap"` TestMapWithProps OptMapWithProperties `json:"testMapWithProps"` TestDate OptTime `json:"testDate"` TestDuration OptDuration `json:"testDuration"` TestTime OptTime `json:"testTime"` TestDateTime OptTime `json:"testDateTime"` }
Cute and lovely creature. Ref: #/components/schemas/Pet
type PetFriendsNamesByIDParams ¶
type PetFriendsNamesByIDParams struct { // Pet ID. ID int }
type PetGetAvatarByIDOK ¶ added in v0.10.0
type PetGetAvatarByIDParams ¶
type PetGetAvatarByIDParams struct { // ID of pet. PetID int64 }
type PetGetAvatarByIDRes ¶
type PetGetAvatarByIDRes interface {
// contains filtered or unexported methods
}
type PetGetByNameParams ¶
type PetGetByNameParams struct { // Name of pet. Name string }
type PetGetDef ¶
type PetGetDef struct {
Message string `json:"message"`
}
type PetGetDefStatusCode ¶
PetGetDefStatusCode wraps PetGetDef with StatusCode.
type PetGetParams ¶
type PetNameByIDParams ¶
type PetNameByIDParams struct { // Pet ID. ID int }
type PetUpdateNameAliasPostDef ¶
type PetUpdateNameAliasPostDef struct{}
PetUpdateNameAliasPostDef is default response for PetUpdateNameAliasPost operation.
type PetUpdateNameAliasPostDefStatusCode ¶
type PetUpdateNameAliasPostDefStatusCode struct { StatusCode int Response PetUpdateNameAliasPostDef }
PetUpdateNameAliasPostDefStatusCode wraps PetUpdateNameAliasPostDef with StatusCode.
type PetUpdateNamePostDef ¶
type PetUpdateNamePostDef struct{}
PetUpdateNamePostDef is default response for PetUpdateNamePost operation.
type PetUpdateNamePostDefStatusCode ¶
type PetUpdateNamePostDefStatusCode struct { StatusCode int Response PetUpdateNamePostDef }
PetUpdateNamePostDefStatusCode wraps PetUpdateNamePostDef with StatusCode.
type PetUploadAvatarByIDOK ¶
type PetUploadAvatarByIDOK struct{}
PetUploadAvatarByIDOK is response for PetUploadAvatarByID operation.
type PetUploadAvatarByIDParams ¶
type PetUploadAvatarByIDParams struct { // ID of pet. PetID int64 }
type PetUploadAvatarByIDReq ¶ added in v0.10.0
type PetUploadAvatarByIDRes ¶
type PetUploadAvatarByIDRes interface {
// contains filtered or unexported methods
}
type Route ¶ added in v0.8.0
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶ added in v0.8.0
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 StringMap ¶ added in v0.9.0
Ref: #/components/schemas/StringMap
type StringStringMap ¶ added in v0.9.0
Ref: #/components/schemas/StringStringMap
func (StringStringMap) Decode ¶ added in v0.9.0
func (s StringStringMap) Decode(d *jx.Decoder) error
Decode decodes StringStringMap from json.
func (StringStringMap) Encode ¶ added in v0.9.0
func (s StringStringMap) Encode(e *jx.Writer)
Encode implements json.Marshaler.
func (StringStringMap) Validate ¶ added in v0.9.0
func (s StringStringMap) Validate() error
type TestObjectQueryParameterDeepObject ¶ added in v0.10.0
type TestObjectQueryParameterFormObject ¶ added in v0.10.0
type TestObjectQueryParameterOK ¶ added in v0.10.0
type TestObjectQueryParameterOK struct { Style string `json:"style"` Min int `json:"min"` Max int `json:"max"` Filter string `json:"filter"` }
func (*TestObjectQueryParameterOK) Decode ¶ added in v0.10.0
func (s *TestObjectQueryParameterOK) Decode(d *jx.Decoder) error
Decode decodes TestObjectQueryParameterOK from json.
func (TestObjectQueryParameterOK) Encode ¶ added in v0.10.0
func (s TestObjectQueryParameterOK) Encode(e *jx.Writer)
Encode implements json.Marshaler.
type TestObjectQueryParameterParams ¶ added in v0.10.0
type TestObjectQueryParameterParams struct { FormObject OptTestObjectQueryParameterFormObject DeepObject OptTestObjectQueryParameterDeepObject }