api

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyOfTest added in v0.12.0

type AnyOfTest struct {
	Medium    string             "json:\"medium\""
	SizeLimit AnyOfTestSizeLimit "json:\"sizeLimit\""
}

Type for testing some anyOf cases from Jaeger operator API schema. Ref: #/components/schemas/AnyOfTest

func (*AnyOfTest) Decode added in v0.12.0

func (s *AnyOfTest) Decode(d *jx.Decoder) error

Decode decodes AnyOfTest from json.

func (AnyOfTest) Encode added in v0.12.0

func (s AnyOfTest) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (AnyOfTest) Validate added in v0.12.0

func (s AnyOfTest) Validate() error

type AnyOfTestSizeLimit added in v0.12.0

type AnyOfTestSizeLimit struct {
	Type   AnyOfTestSizeLimitType // switch on this field
	Int    int
	String string
}

AnyOfTestSizeLimit represents sum type.

func NewIntAnyOfTestSizeLimit added in v0.12.0

func NewIntAnyOfTestSizeLimit(v int) AnyOfTestSizeLimit

NewIntAnyOfTestSizeLimit returns new AnyOfTestSizeLimit from int.

func NewStringAnyOfTestSizeLimit added in v0.12.0

func NewStringAnyOfTestSizeLimit(v string) AnyOfTestSizeLimit

NewStringAnyOfTestSizeLimit returns new AnyOfTestSizeLimit from string.

func (*AnyOfTestSizeLimit) Decode added in v0.12.0

func (s *AnyOfTestSizeLimit) Decode(d *jx.Decoder) error

Decode decodes AnyOfTestSizeLimit from json.

func (AnyOfTestSizeLimit) Encode added in v0.12.0

func (s AnyOfTestSizeLimit) Encode(e *jx.Writer)

Encode encodes AnyOfTestSizeLimit as json.

func (AnyOfTestSizeLimit) GetInt added in v0.12.0

func (s AnyOfTestSizeLimit) GetInt() (v int, ok bool)

GetInt returns int and true boolean if AnyOfTestSizeLimit is int.

func (AnyOfTestSizeLimit) GetString added in v0.12.0

func (s AnyOfTestSizeLimit) GetString() (v string, ok bool)

GetString returns string and true boolean if AnyOfTestSizeLimit is string.

func (AnyOfTestSizeLimit) IsInt added in v0.12.0

func (s AnyOfTestSizeLimit) IsInt() bool

IsInt reports whether AnyOfTestSizeLimit is int.

func (AnyOfTestSizeLimit) IsString added in v0.12.0

func (s AnyOfTestSizeLimit) IsString() bool

IsString reports whether AnyOfTestSizeLimit is string.

func (*AnyOfTestSizeLimit) SetInt added in v0.12.0

func (s *AnyOfTestSizeLimit) SetInt(v int)

SetInt sets AnyOfTestSizeLimit to int.

func (*AnyOfTestSizeLimit) SetString added in v0.12.0

func (s *AnyOfTestSizeLimit) SetString(v string)

SetString sets AnyOfTestSizeLimit to string.

func (AnyOfTestSizeLimit) Validate added in v0.12.0

func (s AnyOfTestSizeLimit) Validate() error

type AnyOfTestSizeLimitType added in v0.12.0

type AnyOfTestSizeLimitType string

AnyOfTestSizeLimitType is oneOf type of AnyOfTestSizeLimit.

const (
	IntAnyOfTestSizeLimit    AnyOfTestSizeLimitType = "int"
	StringAnyOfTestSizeLimit AnyOfTestSizeLimitType = "string"
)

Possible values for AnyOfTestSizeLimitType.

type AnyTest added in v0.11.0

type AnyTest struct {
	Empty    jx.Raw           "json:\"empty\""
	AnyMap   OptAnyTestAnyMap "json:\"any_map\""
	AnyArray []jx.Raw         "json:\"any_array\""
}

Ref: #/components/schemas/AnyTest

func (*AnyTest) Decode added in v0.11.0

func (s *AnyTest) Decode(d *jx.Decoder) error

Decode decodes AnyTest from json.

func (AnyTest) Encode added in v0.11.0

func (s AnyTest) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type AnyTestAnyMap added in v0.11.0

type AnyTestAnyMap map[string]jx.Raw

func (AnyTestAnyMap) Decode added in v0.11.0

func (s AnyTestAnyMap) Decode(d *jx.Decoder) error

Decode decodes AnyTestAnyMap from json.

func (AnyTestAnyMap) Encode added in v0.11.0

func (s AnyTestAnyMap) Encode(e *jx.Writer)

Encode implements json.Marshaler.

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

func (*ArrayTest) Decode added in v0.9.0

func (s *ArrayTest) Decode(d *jx.Decoder) error

Decode decodes ArrayTest from json.

func (ArrayTest) Encode added in v0.9.0

func (s ArrayTest) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (ArrayTest) Validate added in v0.9.0

func (s ArrayTest) Validate() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...Option) (*Client, error)

NewClient initializes new Client defined by OAS.

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) DefaultTest added in v0.15.0

func (c *Client) DefaultTest(ctx context.Context, request DefaultTest, params DefaultTestParams) (res int32, err error)

DefaultTest invokes defaultTest operation.

POST /defaultTest

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

func (c *Client) FoobarPost(ctx context.Context, request OptPet) (res FoobarPostRes, err error)

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

func (c *Client) GetHeader(ctx context.Context, params GetHeaderParams) (res Hash, err error)

GetHeader invokes getHeader operation.

Test for header param.

GET /test/header

func (*Client) MultipleGenericResponses added in v0.15.0

func (c *Client) MultipleGenericResponses(ctx context.Context) (res MultipleGenericResponsesRes, err error)

MultipleGenericResponses invokes multipleGenericResponses operation.

GET /multipleGenericResponses

func (*Client) NullableDefaultResponse added in v0.15.0

func (c *Client) NullableDefaultResponse(ctx context.Context) (res NilIntStatusCode, err error)

NullableDefaultResponse invokes nullableDefaultResponse operation.

GET /nullableDefaultResponse

func (*Client) OctetStreamBinaryStringSchema added in v0.15.0

func (c *Client) OctetStreamBinaryStringSchema(ctx context.Context) (res OctetStreamBinaryStringSchemaOK, err error)

OctetStreamBinaryStringSchema invokes octetStreamBinaryStringSchema operation.

GET /octetStreamBinaryStringSchema

func (*Client) OctetStreamEmptySchema added in v0.15.0

func (c *Client) OctetStreamEmptySchema(ctx context.Context) (res OctetStreamEmptySchemaOK, err error)

OctetStreamEmptySchema invokes octetStreamEmptySchema operation.

GET /octetStreamEmptySchema

func (*Client) OneofBug added in v0.10.0

func (c *Client) OneofBug(ctx context.Context, request OneOfBugs) (res OneofBugOK, err error)

OneofBug invokes oneofBug operation.

POST /oneofBug

func (*Client) PetCreate

func (c *Client) PetCreate(ctx context.Context, request OptPet) (res Pet, err error)

PetCreate invokes petCreate operation.

Creates pet.

POST /pet

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

func (c *Client) PetGet(ctx context.Context, params PetGetParams) (res PetGetRes, err error)

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) PetGetAvatarByName added in v0.14.1

func (c *Client) PetGetAvatarByName(ctx context.Context, params PetGetAvatarByNameParams) (res PetGetAvatarByNameRes, err error)

PetGetAvatarByName invokes petGetAvatarByName operation.

Returns pet's avatar by name.

GET /pet/{name}/avatar

func (*Client) PetGetByName

func (c *Client) PetGetByName(ctx context.Context, params PetGetByNameParams) (res Pet, err error)

PetGetByName invokes petGetByName operation.

Returns pet by name from the system that the user has access to.

GET /pet/{name}

func (*Client) PetNameByID

func (c *Client) PetNameByID(ctx context.Context, params PetNameByIDParams) (res string, err error)

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) RecursiveArrayGet added in v0.16.0

func (c *Client) RecursiveArrayGet(ctx context.Context) (res RecursiveArray, err error)

RecursiveArrayGet invokes operation.

GET /recursiveArray

func (*Client) RecursiveMapGet added in v0.11.1

func (c *Client) RecursiveMapGet(ctx context.Context) (res RecursiveMap, err error)

RecursiveMapGet invokes operation.

GET /recursiveMap

func (*Client) TestFloatValidation added in v0.16.0

func (c *Client) TestFloatValidation(ctx context.Context, request TestFloatValidation) (res TestFloatValidationOK, err error)

TestFloatValidation invokes testFloatValidation operation.

POST /testFloatValidation

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

func (*Data) Decode

func (s *Data) Decode(d *jx.Decoder) error

Decode decodes Data from json.

func (Data) Encode

func (s Data) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (Data) Validate

func (s Data) Validate() error

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 DataGetFormatParams struct {
	ID  int
	Foo string
	Bar string
	Baz string
	Kek string
}

type DefaultTest added in v0.15.0

type DefaultTest struct {
	Required string             "json:\"required\""
	Str      OptString          "json:\"str\""
	NullStr  OptNilString       "json:\"nullStr\""
	Enum     OptDefaultTestEnum "json:\"enum\""
	UUID     OptUUID            "json:\"uuid\""
	IP       OptIP              "json:\"ip\""
	IPV4     OptIPv4            "json:\"ip_v4\""
	IPV6     OptIPv6            "json:\"ip_v6\""
	URI      OptURI             "json:\"uri\""
	Birthday OptDate            "json:\"birthday\""
	Rate     OptDuration        "json:\"rate\""
	Email    OptString          "json:\"email\""
	Hostname OptString          "json:\"hostname\""
	Format   OptString          "json:\"format\""
	Base64   []byte             "json:\"base64\""
}

Ref: #/components/schemas/DefaultTest

func (*DefaultTest) Decode added in v0.15.0

func (s *DefaultTest) Decode(d *jx.Decoder) error

Decode decodes DefaultTest from json.

func (DefaultTest) Encode added in v0.15.0

func (s DefaultTest) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (DefaultTest) Validate added in v0.15.0

func (s DefaultTest) Validate() error

type DefaultTestEnum added in v0.15.0

type DefaultTestEnum string
const (
	DefaultTestEnumBig  DefaultTestEnum = "big"
	DefaultTestEnumSmol DefaultTestEnum = "smol"
)

func (*DefaultTestEnum) Decode added in v0.15.0

func (s *DefaultTestEnum) Decode(d *jx.Decoder) error

Decode decodes DefaultTestEnum from json.

func (DefaultTestEnum) Encode added in v0.15.0

func (s DefaultTestEnum) Encode(e *jx.Writer)

Encode encodes DefaultTestEnum as json.

func (DefaultTestEnum) Validate added in v0.15.0

func (s DefaultTestEnum) Validate() error

type DefaultTestParams added in v0.15.0

type DefaultTestParams struct {
	Default OptInt32
}

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 Error

type Error struct {
	Code    int64  "json:\"code\""
	Message string "json:\"message\""
}

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (Error) Encode

func (s Error) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

type FoobarGetParams

type FoobarGetParams struct {
	// InlinedParam.
	InlinedParam int64
	// Number of items to skip.
	Skip int32
}

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)
	// DefaultTest implements defaultTest operation.
	//
	// POST /defaultTest
	DefaultTest(ctx context.Context, req DefaultTest, params DefaultTestParams) (int32, 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)
	// MultipleGenericResponses implements multipleGenericResponses operation.
	//
	// GET /multipleGenericResponses
	MultipleGenericResponses(ctx context.Context) (MultipleGenericResponsesRes, error)
	// NullableDefaultResponse implements nullableDefaultResponse operation.
	//
	// GET /nullableDefaultResponse
	NullableDefaultResponse(ctx context.Context) (NilIntStatusCode, error)
	// OctetStreamBinaryStringSchema implements octetStreamBinaryStringSchema operation.
	//
	// GET /octetStreamBinaryStringSchema
	OctetStreamBinaryStringSchema(ctx context.Context) (OctetStreamBinaryStringSchemaOK, error)
	// OctetStreamEmptySchema implements octetStreamEmptySchema operation.
	//
	// GET /octetStreamEmptySchema
	OctetStreamEmptySchema(ctx context.Context) (OctetStreamEmptySchemaOK, 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)
	// PetGetAvatarByName implements petGetAvatarByName operation.
	//
	// Returns pet's avatar by name.
	//
	// GET /pet/{name}/avatar
	PetGetAvatarByName(ctx context.Context, params PetGetAvatarByNameParams) (PetGetAvatarByNameRes, 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)
	// RecursiveArrayGet implements  operation.
	//
	// GET /recursiveArray
	RecursiveArrayGet(ctx context.Context) (RecursiveArray, error)
	// RecursiveMapGet implements  operation.
	//
	// GET /recursiveMap
	RecursiveMapGet(ctx context.Context) (RecursiveMap, error)
	// TestFloatValidation implements testFloatValidation operation.
	//
	// POST /testFloatValidation
	TestFloatValidation(ctx context.Context, req TestFloatValidation) (TestFloatValidationOK, error)
	// TestObjectQueryParameter implements testObjectQueryParameter operation.
	//
	// GET /testObjectQueryParameter
	TestObjectQueryParameter(ctx context.Context, params TestObjectQueryParameterParams) (TestObjectQueryParameterOK, error)
}

Handler handles operations described by OpenAPI v3 specification.

type Hash

type Hash struct {
	Raw []byte "json:\"raw\""
	Hex string "json:\"hex\""
}

Ref: #/components/schemas/Hash

func (*Hash) Decode

func (s *Hash) Decode(d *jx.Decoder) error

Decode decodes Hash from json.

func (Hash) Encode

func (s Hash) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (Hash) Validate

func (s Hash) Validate() error

type ID

type ID struct {
	Type   IDType // switch on this field
	String string
	Int    int
}

Ref: #/components/schemas/ID ID represents sum type.

func NewIntID

func NewIntID(v int) ID

NewIntID returns new ID from int.

func NewStringID

func NewStringID(v string) ID

NewStringID returns new ID from string.

func (*ID) Decode

func (s *ID) Decode(d *jx.Decoder) error

Decode decodes ID from json.

func (ID) Encode

func (s ID) Encode(e *jx.Writer)

Encode encodes ID as json.

func (ID) GetInt

func (s ID) GetInt() (v int, ok bool)

GetInt returns int and true boolean if ID is int.

func (ID) GetString

func (s ID) GetString() (v string, ok bool)

GetString returns string and true boolean if ID is string.

func (ID) IsInt

func (s ID) IsInt() bool

IsInt reports whether ID is int.

func (ID) IsString

func (s ID) IsString() bool

IsString reports whether ID is string.

func (*ID) SetInt

func (s *ID) SetInt(v int)

SetInt sets ID to int.

func (*ID) SetString

func (s *ID) SetString(v string)

SetString sets ID to string.

type IDType

type IDType string

IDType is oneOf type of ID.

const (
	StringID IDType = "string"
	IntID    IDType = "int"
)

Possible values for IDType.

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

func NewIssue1430Issue143(v Issue1430) Issue143

NewIssue1430Issue143 returns new Issue143 from Issue1430.

func NewIssue1431Issue143 added in v0.10.0

func NewIssue1431Issue143(v Issue1431) Issue143

NewIssue1431Issue143 returns new Issue143 from Issue1431.

func NewIssue1432Issue143 added in v0.10.0

func NewIssue1432Issue143(v Issue1432) Issue143

NewIssue1432Issue143 returns new Issue143 from Issue1432.

func NewIssue1433Issue143 added in v0.10.0

func NewIssue1433Issue143(v Issue1433) Issue143

NewIssue1433Issue143 returns new Issue143 from Issue1433.

func (*Issue143) Decode added in v0.10.0

func (s *Issue143) Decode(d *jx.Decoder) error

Decode decodes Issue143 from json.

func (Issue143) Encode added in v0.10.0

func (s Issue143) Encode(e *jx.Writer)

Encode encodes Issue143 as json.

func (Issue143) GetIssue1430 added in v0.10.0

func (s Issue143) GetIssue1430() (v Issue1430, ok bool)

GetIssue1430 returns Issue1430 and true boolean if Issue143 is Issue1430.

func (Issue143) GetIssue1431 added in v0.10.0

func (s Issue143) GetIssue1431() (v Issue1431, ok bool)

GetIssue1431 returns Issue1431 and true boolean if Issue143 is Issue1431.

func (Issue143) GetIssue1432 added in v0.10.0

func (s Issue143) GetIssue1432() (v Issue1432, ok bool)

GetIssue1432 returns Issue1432 and true boolean if Issue143 is Issue1432.

func (Issue143) GetIssue1433 added in v0.10.0

func (s Issue143) GetIssue1433() (v Issue1433, ok bool)

GetIssue1433 returns Issue1433 and true boolean if Issue143 is Issue1433.

func (Issue143) IsIssue1430 added in v0.10.0

func (s Issue143) IsIssue1430() bool

IsIssue1430 reports whether Issue143 is Issue1430.

func (Issue143) IsIssue1431 added in v0.10.0

func (s Issue143) IsIssue1431() bool

IsIssue1431 reports whether Issue143 is Issue1431.

func (Issue143) IsIssue1432 added in v0.10.0

func (s Issue143) IsIssue1432() bool

IsIssue1432 reports whether Issue143 is Issue1432.

func (Issue143) IsIssue1433 added in v0.10.0

func (s Issue143) IsIssue1433() bool

IsIssue1433 reports whether Issue143 is Issue1433.

func (*Issue143) SetIssue1430 added in v0.10.0

func (s *Issue143) SetIssue1430(v Issue1430)

SetIssue1430 sets Issue143 to Issue1430.

func (*Issue143) SetIssue1431 added in v0.10.0

func (s *Issue143) SetIssue1431(v Issue1431)

SetIssue1431 sets Issue143 to Issue1431.

func (*Issue143) SetIssue1432 added in v0.10.0

func (s *Issue143) SetIssue1432(v Issue1432)

SetIssue1432 sets Issue143 to Issue1432.

func (*Issue143) SetIssue1433 added in v0.10.0

func (s *Issue143) SetIssue1433(v Issue1433)

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\""
}

func (*Issue1430) Decode added in v0.10.0

func (s *Issue1430) Decode(d *jx.Decoder) error

Decode decodes Issue1430 from json.

func (Issue1430) Encode added in v0.10.0

func (s Issue1430) Encode(e *jx.Writer)

Encode implements json.Marshaler.

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\""
}

func (*Issue1431) Decode added in v0.10.0

func (s *Issue1431) Decode(d *jx.Decoder) error

Decode decodes Issue1431 from json.

func (Issue1431) Encode added in v0.10.0

func (s Issue1431) Encode(e *jx.Writer)

Encode implements json.Marshaler.

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\""
}

func (*Issue1432) Decode added in v0.10.0

func (s *Issue1432) Decode(d *jx.Decoder) error

Decode decodes Issue1432 from json.

func (Issue1432) Encode added in v0.10.0

func (s Issue1432) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type Issue1433 added in v0.10.0

type Issue1433 struct {
	CommonMinus3 OptInt "json:\"common-3\""
	UniqueMinus4 string "json:\"unique-4\""
}

func (*Issue1433) Decode added in v0.10.0

func (s *Issue1433) Decode(d *jx.Decoder) error

Decode decodes Issue1433 from json.

func (Issue1433) Encode added in v0.10.0

func (s Issue1433) Encode(e *jx.Writer)

Encode implements json.Marshaler.

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"`
	MapValidation   OptValidationStringMap            `json:"map_validation"`
	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.

func (MapWithProperties) Validate added in v0.12.0

func (s MapWithProperties) Validate() error

type MapWithPropertiesInlinedSubMap added in v0.9.0

type MapWithPropertiesInlinedSubMap map[string]string

func (MapWithPropertiesInlinedSubMap) Decode added in v0.9.0

Decode decodes MapWithPropertiesInlinedSubMap from json.

func (MapWithPropertiesInlinedSubMap) Encode added in v0.9.0

Encode implements json.Marshaler.

type MaxPropertiesTest added in v0.12.0

type MaxPropertiesTest struct {
	Required  int    "json:\"required\""
	OptionalA OptInt "json:\"optional_a\""
	OptionalB OptInt "json:\"optional_b\""
	OptionalC OptInt "json:\"optional_c\""
}

Ref: #/components/schemas/MaxPropertiesTest

func (*MaxPropertiesTest) Decode added in v0.12.0

func (s *MaxPropertiesTest) Decode(d *jx.Decoder) error

Decode decodes MaxPropertiesTest from json.

func (MaxPropertiesTest) Encode added in v0.12.0

func (s MaxPropertiesTest) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type MultipleGenericResponsesRes added in v0.15.0

type MultipleGenericResponsesRes interface {
	// contains filtered or unexported methods
}

type NilInt added in v0.15.0

type NilInt struct {
	Value int
	Null  bool
}

NilInt is nullable int.

func NewNilInt added in v0.15.0

func NewNilInt(v int) NilInt

NewNilInt returns new NilInt with value set to v.

func (*NilInt) Decode added in v0.15.0

func (o *NilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (NilInt) Encode added in v0.15.0

func (o NilInt) Encode(e *jx.Writer)

Encode encodes int as json.

func (NilInt) Get added in v0.15.0

func (o NilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilInt) IsNull added in v0.15.0

func (o NilInt) IsNull() bool

IsSet returns true if value is Null.

func (NilInt) Or added in v0.15.0

func (o NilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*NilInt) SetTo added in v0.15.0

func (o *NilInt) SetTo(v int)

SetTo sets value to v.

type NilIntStatusCode added in v0.15.0

type NilIntStatusCode struct {
	StatusCode int
	Response   NilInt
}

NilIntStatusCode wraps NilInt with StatusCode.

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

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

Or returns value if set, or given parameter if does not.

func (*NilNullableEnumsBoth) SetTo added in v0.8.0

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

Decode decodes NullableEnumsOnlyNullValue from json.

func (NilNullableEnumsOnlyNullValue) Encode added in v0.8.0

Encode encodes NullableEnumsOnlyNullValue as json.

func (NilNullableEnumsOnlyNullValue) Get added in v0.8.0

Get returns value and boolean that denotes whether value was set.

func (NilNullableEnumsOnlyNullValue) IsNull added in v0.8.0

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

SetTo sets value to v.

type NilNullableEnumsOnlyNullable added in v0.15.0

type NilNullableEnumsOnlyNullable struct {
	Value NullableEnumsOnlyNullable
	Null  bool
}

NilNullableEnumsOnlyNullable is nullable NullableEnumsOnlyNullable.

func NewNilNullableEnumsOnlyNullable added in v0.15.0

func NewNilNullableEnumsOnlyNullable(v NullableEnumsOnlyNullable) NilNullableEnumsOnlyNullable

NewNilNullableEnumsOnlyNullable returns new NilNullableEnumsOnlyNullable with value set to v.

func (*NilNullableEnumsOnlyNullable) Decode added in v0.15.0

Decode decodes NullableEnumsOnlyNullable from json.

func (NilNullableEnumsOnlyNullable) Encode added in v0.15.0

func (o NilNullableEnumsOnlyNullable) Encode(e *jx.Writer)

Encode encodes NullableEnumsOnlyNullable as json.

func (NilNullableEnumsOnlyNullable) Get added in v0.15.0

Get returns value and boolean that denotes whether value was set.

func (NilNullableEnumsOnlyNullable) IsNull added in v0.15.0

IsSet returns true if value is Null.

func (NilNullableEnumsOnlyNullable) Or added in v0.15.0

Or returns value if set, or given parameter if does not.

func (*NilNullableEnumsOnlyNullable) SetTo added in v0.15.0

SetTo sets value to v.

type NilString

type NilString struct {
	Value string
	Null  bool
}

NilString is nullable string.

func NewNilString

func NewNilString(v string) NilString

NewNilString returns new NilString with value set to v.

func (*NilString) Decode

func (o *NilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (NilString) Encode

func (o NilString) Encode(e *jx.Writer)

Encode encodes string as json.

func (NilString) Get

func (o NilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilString) IsNull

func (o NilString) IsNull() bool

IsSet returns true if value is Null.

func (NilString) Or added in v0.4.0

func (o NilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*NilString) SetTo

func (o *NilString) SetTo(v string)

SetTo sets value to v.

type NotFound

type NotFound struct{}

Ref: #/components/responses/NotFound

type NullableEnums added in v0.8.0

type NullableEnums struct {
	// Must not be nullable.
	OnlyNullable NilNullableEnumsOnlyNullable "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

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 OctetStreamBinaryStringSchemaOK added in v0.15.0

type OctetStreamBinaryStringSchemaOK struct {
	Data io.Reader
}

func (OctetStreamBinaryStringSchemaOK) Read added in v0.15.0

func (s OctetStreamBinaryStringSchemaOK) Read(p []byte) (n int, err error)

type OctetStreamEmptySchemaOK added in v0.15.0

type OctetStreamEmptySchemaOK struct {
	Data io.Reader
}

func (OctetStreamEmptySchemaOK) Read added in v0.15.0

func (s OctetStreamEmptySchemaOK) Read(p []byte) (n int, err error)

type OneOfBugs added in v0.10.0

type OneOfBugs struct {
	Issue143                        Issue143                    "json:\"issue143\""
	AdditionalMinusFields           OneVariantHasNoUniqueFields "json:\"additional-fields\""
	OneOfMinusUUIDMinusIntMinusEnum OptOneOfUUIDAndIntEnum      "json:\"oneOf-uuid-int-enum\""
	OneOfMinusMappingMinusReference OptOneOfMappingReference    "json:\"oneOf-mapping-reference\""
	OneOfMinusMappingMinusAny       OptOneOfMappingAny          "json:\"oneOf-mapping-any\""
}

Ref: #/components/schemas/OneOfBugs

func (*OneOfBugs) Decode added in v0.10.0

func (s *OneOfBugs) Decode(d *jx.Decoder) error

Decode decodes OneOfBugs from json.

func (OneOfBugs) Encode added in v0.10.0

func (s OneOfBugs) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (OneOfBugs) Validate added in v0.16.0

func (s OneOfBugs) Validate() error

type OneOfMappingAny added in v0.17.0

type OneOfMappingAny struct {
	Type             OneOfMappingAnyType // switch on this field
	Any              jx.Raw
	OneOfMappingAnyB OneOfMappingAnyB
}

Ref: #/components/schemas/OneOfMappingAny OneOfMappingAny represents sum type.

func NewAnyOneOfMappingAny added in v0.17.0

func NewAnyOneOfMappingAny(v jx.Raw) OneOfMappingAny

NewAnyOneOfMappingAny returns new OneOfMappingAny from jx.Raw.

func NewOneOfMappingAnyBOneOfMappingAny added in v0.17.0

func NewOneOfMappingAnyBOneOfMappingAny(v OneOfMappingAnyB) OneOfMappingAny

NewOneOfMappingAnyBOneOfMappingAny returns new OneOfMappingAny from OneOfMappingAnyB.

func (*OneOfMappingAny) Decode added in v0.17.0

func (s *OneOfMappingAny) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingAny from json.

func (OneOfMappingAny) Encode added in v0.17.0

func (s OneOfMappingAny) Encode(e *jx.Writer)

Encode encodes OneOfMappingAny as json.

func (OneOfMappingAny) GetAny added in v0.17.0

func (s OneOfMappingAny) GetAny() (v jx.Raw, ok bool)

GetAny returns jx.Raw and true boolean if OneOfMappingAny is jx.Raw.

func (OneOfMappingAny) GetOneOfMappingAnyB added in v0.17.0

func (s OneOfMappingAny) GetOneOfMappingAnyB() (v OneOfMappingAnyB, ok bool)

GetOneOfMappingAnyB returns OneOfMappingAnyB and true boolean if OneOfMappingAny is OneOfMappingAnyB.

func (OneOfMappingAny) IsAny added in v0.17.0

func (s OneOfMappingAny) IsAny() bool

IsAny reports whether OneOfMappingAny is jx.Raw.

func (OneOfMappingAny) IsOneOfMappingAnyB added in v0.17.0

func (s OneOfMappingAny) IsOneOfMappingAnyB() bool

IsOneOfMappingAnyB reports whether OneOfMappingAny is OneOfMappingAnyB.

func (*OneOfMappingAny) SetAny added in v0.17.0

func (s *OneOfMappingAny) SetAny(v jx.Raw)

SetAny sets OneOfMappingAny to jx.Raw.

func (*OneOfMappingAny) SetOneOfMappingAnyB added in v0.17.0

func (s *OneOfMappingAny) SetOneOfMappingAnyB(v OneOfMappingAnyB)

SetOneOfMappingAnyB sets OneOfMappingAny to OneOfMappingAnyB.

type OneOfMappingAnyB added in v0.17.0

type OneOfMappingAnyB struct {
	InfoType OptString             "json:\"infoType\""
	Code     OptInt32              "json:\"code\""
	Data     *OneOfMappingAnyBData "json:\"data\""
	Info     OptString             "json:\"info\""
}

Ref: #/components/schemas/OneOfMappingAnyB

func (*OneOfMappingAnyB) Decode added in v0.17.0

func (s *OneOfMappingAnyB) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingAnyB from json.

func (OneOfMappingAnyB) Encode added in v0.17.0

func (s OneOfMappingAnyB) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type OneOfMappingAnyBData added in v0.17.0

type OneOfMappingAnyBData struct{}

func (*OneOfMappingAnyBData) Decode added in v0.17.0

func (s *OneOfMappingAnyBData) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingAnyBData from json.

func (OneOfMappingAnyBData) Encode added in v0.17.0

func (s OneOfMappingAnyBData) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type OneOfMappingAnyType added in v0.17.0

type OneOfMappingAnyType string

OneOfMappingAnyType is oneOf type of OneOfMappingAny.

const (
	AnyOneOfMappingAny              OneOfMappingAnyType = "jx.Raw"
	OneOfMappingAnyBOneOfMappingAny OneOfMappingAnyType = "OneOfMappingAnyB"
)

Possible values for OneOfMappingAnyType.

type OneOfMappingReference added in v0.16.0

type OneOfMappingReference struct {
	Type                   OneOfMappingReferenceType // switch on this field
	OneOfMappingReferenceA OneOfMappingReferenceA
	OneOfMappingReferenceB OneOfMappingReferenceB
}

Ref: #/components/schemas/OneOfMappingReference OneOfMappingReference represents sum type.

func NewOneOfMappingReferenceAOneOfMappingReference added in v0.16.0

func NewOneOfMappingReferenceAOneOfMappingReference(v OneOfMappingReferenceA) OneOfMappingReference

NewOneOfMappingReferenceAOneOfMappingReference returns new OneOfMappingReference from OneOfMappingReferenceA.

func NewOneOfMappingReferenceBOneOfMappingReference added in v0.16.0

func NewOneOfMappingReferenceBOneOfMappingReference(v OneOfMappingReferenceB) OneOfMappingReference

NewOneOfMappingReferenceBOneOfMappingReference returns new OneOfMappingReference from OneOfMappingReferenceB.

func (*OneOfMappingReference) Decode added in v0.16.0

func (s *OneOfMappingReference) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingReference from json.

func (OneOfMappingReference) Encode added in v0.16.0

func (s OneOfMappingReference) Encode(e *jx.Writer)

Encode encodes OneOfMappingReference as json.

func (OneOfMappingReference) GetOneOfMappingReferenceA added in v0.16.0

func (s OneOfMappingReference) GetOneOfMappingReferenceA() (v OneOfMappingReferenceA, ok bool)

GetOneOfMappingReferenceA returns OneOfMappingReferenceA and true boolean if OneOfMappingReference is OneOfMappingReferenceA.

func (OneOfMappingReference) GetOneOfMappingReferenceB added in v0.16.0

func (s OneOfMappingReference) GetOneOfMappingReferenceB() (v OneOfMappingReferenceB, ok bool)

GetOneOfMappingReferenceB returns OneOfMappingReferenceB and true boolean if OneOfMappingReference is OneOfMappingReferenceB.

func (OneOfMappingReference) IsOneOfMappingReferenceA added in v0.16.0

func (s OneOfMappingReference) IsOneOfMappingReferenceA() bool

IsOneOfMappingReferenceA reports whether OneOfMappingReference is OneOfMappingReferenceA.

func (OneOfMappingReference) IsOneOfMappingReferenceB added in v0.16.0

func (s OneOfMappingReference) IsOneOfMappingReferenceB() bool

IsOneOfMappingReferenceB reports whether OneOfMappingReference is OneOfMappingReferenceB.

func (*OneOfMappingReference) SetOneOfMappingReferenceA added in v0.16.0

func (s *OneOfMappingReference) SetOneOfMappingReferenceA(v OneOfMappingReferenceA)

SetOneOfMappingReferenceA sets OneOfMappingReference to OneOfMappingReferenceA.

func (*OneOfMappingReference) SetOneOfMappingReferenceB added in v0.16.0

func (s *OneOfMappingReference) SetOneOfMappingReferenceB(v OneOfMappingReferenceB)

SetOneOfMappingReferenceB sets OneOfMappingReference to OneOfMappingReferenceB.

type OneOfMappingReferenceA added in v0.16.0

type OneOfMappingReferenceA struct {
	InfoType    OptString "json:\"infoType\""
	Description OptString "json:\"description\""
}

Ref: #/components/schemas/OneOfMappingReferenceA

func (*OneOfMappingReferenceA) Decode added in v0.16.0

func (s *OneOfMappingReferenceA) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingReferenceA from json.

func (OneOfMappingReferenceA) Encode added in v0.16.0

func (s OneOfMappingReferenceA) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type OneOfMappingReferenceB added in v0.16.0

type OneOfMappingReferenceB struct {
	InfoType OptString                   "json:\"infoType\""
	Code     OptInt32                    "json:\"code\""
	Data     *OneOfMappingReferenceBData "json:\"data\""
	Info     OptString                   "json:\"info\""
}

Ref: #/components/schemas/OneOfMappingReferenceB

func (*OneOfMappingReferenceB) Decode added in v0.16.0

func (s *OneOfMappingReferenceB) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingReferenceB from json.

func (OneOfMappingReferenceB) Encode added in v0.16.0

func (s OneOfMappingReferenceB) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type OneOfMappingReferenceBData added in v0.16.0

type OneOfMappingReferenceBData struct{}

func (*OneOfMappingReferenceBData) Decode added in v0.16.0

Decode decodes OneOfMappingReferenceBData from json.

func (OneOfMappingReferenceBData) Encode added in v0.16.0

func (s OneOfMappingReferenceBData) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type OneOfMappingReferenceType added in v0.16.0

type OneOfMappingReferenceType string

OneOfMappingReferenceType is oneOf type of OneOfMappingReference.

const (
	OneOfMappingReferenceAOneOfMappingReference OneOfMappingReferenceType = "OneOfMappingReferenceA"
	OneOfMappingReferenceBOneOfMappingReference OneOfMappingReferenceType = "OneOfMappingReferenceB"
)

Possible values for OneOfMappingReferenceType.

type OneOfUUIDAndIntEnum added in v0.16.0

type OneOfUUIDAndIntEnum struct {
	Type                 OneOfUUIDAndIntEnumType // switch on this field
	UUID                 uuid.UUID
	OneOfUUIDAndIntEnum1 OneOfUUIDAndIntEnum1
}

Ref: #/components/schemas/OneOfUUIDAndIntEnum OneOfUUIDAndIntEnum represents sum type.

func NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum added in v0.16.0

func NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum(v OneOfUUIDAndIntEnum1) OneOfUUIDAndIntEnum

NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum returns new OneOfUUIDAndIntEnum from OneOfUUIDAndIntEnum1.

func NewUUIDOneOfUUIDAndIntEnum added in v0.16.0

func NewUUIDOneOfUUIDAndIntEnum(v uuid.UUID) OneOfUUIDAndIntEnum

NewUUIDOneOfUUIDAndIntEnum returns new OneOfUUIDAndIntEnum from uuid.UUID.

func (*OneOfUUIDAndIntEnum) Decode added in v0.16.0

func (s *OneOfUUIDAndIntEnum) Decode(d *jx.Decoder) error

Decode decodes OneOfUUIDAndIntEnum from json.

func (OneOfUUIDAndIntEnum) Encode added in v0.16.0

func (s OneOfUUIDAndIntEnum) Encode(e *jx.Writer)

Encode encodes OneOfUUIDAndIntEnum as json.

func (OneOfUUIDAndIntEnum) GetOneOfUUIDAndIntEnum1 added in v0.16.0

func (s OneOfUUIDAndIntEnum) GetOneOfUUIDAndIntEnum1() (v OneOfUUIDAndIntEnum1, ok bool)

GetOneOfUUIDAndIntEnum1 returns OneOfUUIDAndIntEnum1 and true boolean if OneOfUUIDAndIntEnum is OneOfUUIDAndIntEnum1.

func (OneOfUUIDAndIntEnum) GetUUID added in v0.16.0

func (s OneOfUUIDAndIntEnum) GetUUID() (v uuid.UUID, ok bool)

GetUUID returns uuid.UUID and true boolean if OneOfUUIDAndIntEnum is uuid.UUID.

func (OneOfUUIDAndIntEnum) IsOneOfUUIDAndIntEnum1 added in v0.16.0

func (s OneOfUUIDAndIntEnum) IsOneOfUUIDAndIntEnum1() bool

IsOneOfUUIDAndIntEnum1 reports whether OneOfUUIDAndIntEnum is OneOfUUIDAndIntEnum1.

func (OneOfUUIDAndIntEnum) IsUUID added in v0.16.0

func (s OneOfUUIDAndIntEnum) IsUUID() bool

IsUUID reports whether OneOfUUIDAndIntEnum is uuid.UUID.

func (*OneOfUUIDAndIntEnum) SetOneOfUUIDAndIntEnum1 added in v0.16.0

func (s *OneOfUUIDAndIntEnum) SetOneOfUUIDAndIntEnum1(v OneOfUUIDAndIntEnum1)

SetOneOfUUIDAndIntEnum1 sets OneOfUUIDAndIntEnum to OneOfUUIDAndIntEnum1.

func (*OneOfUUIDAndIntEnum) SetUUID added in v0.16.0

func (s *OneOfUUIDAndIntEnum) SetUUID(v uuid.UUID)

SetUUID sets OneOfUUIDAndIntEnum to uuid.UUID.

func (OneOfUUIDAndIntEnum) Validate added in v0.16.0

func (s OneOfUUIDAndIntEnum) Validate() error

type OneOfUUIDAndIntEnum1 added in v0.16.0

type OneOfUUIDAndIntEnum1 int
const (
	OneOfUUIDAndIntEnum10 OneOfUUIDAndIntEnum1 = 0
	OneOfUUIDAndIntEnum11 OneOfUUIDAndIntEnum1 = 1
)

func (*OneOfUUIDAndIntEnum1) Decode added in v0.16.0

func (s *OneOfUUIDAndIntEnum1) Decode(d *jx.Decoder) error

Decode decodes OneOfUUIDAndIntEnum1 from json.

func (OneOfUUIDAndIntEnum1) Encode added in v0.16.0

func (s OneOfUUIDAndIntEnum1) Encode(e *jx.Writer)

Encode encodes OneOfUUIDAndIntEnum1 as json.

func (OneOfUUIDAndIntEnum1) Validate added in v0.16.0

func (s OneOfUUIDAndIntEnum1) Validate() error

type OneOfUUIDAndIntEnumType added in v0.16.0

type OneOfUUIDAndIntEnumType string

OneOfUUIDAndIntEnumType is oneOf type of OneOfUUIDAndIntEnum.

const (
	UUIDOneOfUUIDAndIntEnum                 OneOfUUIDAndIntEnumType = "uuid.UUID"
	OneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum OneOfUUIDAndIntEnumType = "OneOfUUIDAndIntEnum1"
)

Possible values for OneOfUUIDAndIntEnumType.

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

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

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

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 OptAnyOfTest added in v0.12.0

type OptAnyOfTest struct {
	Value AnyOfTest
	Set   bool
}

OptAnyOfTest is optional AnyOfTest.

func NewOptAnyOfTest added in v0.12.0

func NewOptAnyOfTest(v AnyOfTest) OptAnyOfTest

NewOptAnyOfTest returns new OptAnyOfTest with value set to v.

func (*OptAnyOfTest) Decode added in v0.12.0

func (o *OptAnyOfTest) Decode(d *jx.Decoder) error

Decode decodes AnyOfTest from json.

func (OptAnyOfTest) Encode added in v0.12.0

func (o OptAnyOfTest) Encode(e *jx.Writer)

Encode encodes AnyOfTest as json.

func (OptAnyOfTest) Get added in v0.12.0

func (o OptAnyOfTest) Get() (v AnyOfTest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAnyOfTest) IsSet added in v0.12.0

func (o OptAnyOfTest) IsSet() bool

IsSet returns true if OptAnyOfTest was set.

func (OptAnyOfTest) Or added in v0.12.0

Or returns value if set, or given parameter if does not.

func (*OptAnyOfTest) Reset added in v0.12.0

func (o *OptAnyOfTest) Reset()

Reset unsets value.

func (*OptAnyOfTest) SetTo added in v0.12.0

func (o *OptAnyOfTest) SetTo(v AnyOfTest)

SetTo sets value to v.

type OptAnyTest added in v0.11.0

type OptAnyTest struct {
	Value AnyTest
	Set   bool
}

OptAnyTest is optional AnyTest.

func NewOptAnyTest added in v0.11.0

func NewOptAnyTest(v AnyTest) OptAnyTest

NewOptAnyTest returns new OptAnyTest with value set to v.

func (*OptAnyTest) Decode added in v0.11.0

func (o *OptAnyTest) Decode(d *jx.Decoder) error

Decode decodes AnyTest from json.

func (OptAnyTest) Encode added in v0.11.0

func (o OptAnyTest) Encode(e *jx.Writer)

Encode encodes AnyTest as json.

func (OptAnyTest) Get added in v0.11.0

func (o OptAnyTest) Get() (v AnyTest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAnyTest) IsSet added in v0.11.0

func (o OptAnyTest) IsSet() bool

IsSet returns true if OptAnyTest was set.

func (OptAnyTest) Or added in v0.11.0

func (o OptAnyTest) Or(d AnyTest) AnyTest

Or returns value if set, or given parameter if does not.

func (*OptAnyTest) Reset added in v0.11.0

func (o *OptAnyTest) Reset()

Reset unsets value.

func (*OptAnyTest) SetTo added in v0.11.0

func (o *OptAnyTest) SetTo(v AnyTest)

SetTo sets value to v.

type OptAnyTestAnyMap added in v0.11.0

type OptAnyTestAnyMap struct {
	Value AnyTestAnyMap
	Set   bool
}

OptAnyTestAnyMap is optional AnyTestAnyMap.

func NewOptAnyTestAnyMap added in v0.11.0

func NewOptAnyTestAnyMap(v AnyTestAnyMap) OptAnyTestAnyMap

NewOptAnyTestAnyMap returns new OptAnyTestAnyMap with value set to v.

func (*OptAnyTestAnyMap) Decode added in v0.11.0

func (o *OptAnyTestAnyMap) Decode(d *jx.Decoder) error

Decode decodes AnyTestAnyMap from json.

func (OptAnyTestAnyMap) Encode added in v0.11.0

func (o OptAnyTestAnyMap) Encode(e *jx.Writer)

Encode encodes AnyTestAnyMap as json.

func (OptAnyTestAnyMap) Get added in v0.11.0

func (o OptAnyTestAnyMap) Get() (v AnyTestAnyMap, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAnyTestAnyMap) IsSet added in v0.11.0

func (o OptAnyTestAnyMap) IsSet() bool

IsSet returns true if OptAnyTestAnyMap was set.

func (OptAnyTestAnyMap) Or added in v0.11.0

Or returns value if set, or given parameter if does not.

func (*OptAnyTestAnyMap) Reset added in v0.11.0

func (o *OptAnyTestAnyMap) Reset()

Reset unsets value.

func (*OptAnyTestAnyMap) SetTo added in v0.11.0

func (o *OptAnyTestAnyMap) SetTo(v AnyTestAnyMap)

SetTo sets value to v.

type OptArrayTest added in v0.9.0

type OptArrayTest struct {
	Value ArrayTest
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptArrayTest) Reset added in v0.9.0

func (o *OptArrayTest) Reset()

Reset unsets value.

func (*OptArrayTest) SetTo added in v0.9.0

func (o *OptArrayTest) SetTo(v ArrayTest)

SetTo sets value to v.

type OptData

type OptData struct {
	Value Data
	Set   bool
}

OptData is optional Data.

func NewOptData

func NewOptData(v Data) OptData

NewOptData returns new OptData with value set to v.

func (*OptData) Decode

func (o *OptData) Decode(d *jx.Decoder) error

Decode decodes Data from json.

func (OptData) Encode

func (o OptData) Encode(e *jx.Writer)

Encode encodes Data as json.

func (OptData) Get

func (o OptData) Get() (v Data, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptData) IsSet

func (o OptData) IsSet() bool

IsSet returns true if OptData was set.

func (OptData) Or added in v0.4.0

func (o OptData) Or(d Data) Data

Or returns value if set, or given parameter if does not.

func (*OptData) Reset

func (o *OptData) Reset()

Reset unsets value.

func (*OptData) SetTo

func (o *OptData) SetTo(v Data)

SetTo sets value to v.

type OptDate added in v0.15.0

type OptDate struct {
	Value time.Time
	Set   bool
}

OptDate is optional time.Time.

func NewOptDate added in v0.15.0

func NewOptDate(v time.Time) OptDate

NewOptDate returns new OptDate with value set to v.

func (*OptDate) Decode added in v0.15.0

func (o *OptDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDate) Encode added in v0.15.0

func (o OptDate) Encode(e *jx.Writer, format func(*jx.Writer, time.Time))

Encode encodes time.Time as json.

func (OptDate) Get added in v0.15.0

func (o OptDate) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDate) IsSet added in v0.15.0

func (o OptDate) IsSet() bool

IsSet returns true if OptDate was set.

func (OptDate) Or added in v0.15.0

func (o OptDate) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDate) Reset added in v0.15.0

func (o *OptDate) Reset()

Reset unsets value.

func (*OptDate) SetTo added in v0.15.0

func (o *OptDate) SetTo(v time.Time)

SetTo sets value to v.

type OptDateTime added in v0.15.0

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime added in v0.15.0

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode added in v0.15.0

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode added in v0.15.0

func (o OptDateTime) Encode(e *jx.Writer, format func(*jx.Writer, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get added in v0.15.0

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet added in v0.15.0

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) Or added in v0.15.0

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset added in v0.15.0

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo added in v0.15.0

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

type OptDefaultTestEnum added in v0.15.0

type OptDefaultTestEnum struct {
	Value DefaultTestEnum
	Set   bool
}

OptDefaultTestEnum is optional DefaultTestEnum.

func NewOptDefaultTestEnum added in v0.15.0

func NewOptDefaultTestEnum(v DefaultTestEnum) OptDefaultTestEnum

NewOptDefaultTestEnum returns new OptDefaultTestEnum with value set to v.

func (*OptDefaultTestEnum) Decode added in v0.15.0

func (o *OptDefaultTestEnum) Decode(d *jx.Decoder) error

Decode decodes DefaultTestEnum from json.

func (OptDefaultTestEnum) Encode added in v0.15.0

func (o OptDefaultTestEnum) Encode(e *jx.Writer)

Encode encodes DefaultTestEnum as json.

func (OptDefaultTestEnum) Get added in v0.15.0

func (o OptDefaultTestEnum) Get() (v DefaultTestEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDefaultTestEnum) IsSet added in v0.15.0

func (o OptDefaultTestEnum) IsSet() bool

IsSet returns true if OptDefaultTestEnum was set.

func (OptDefaultTestEnum) Or added in v0.15.0

Or returns value if set, or given parameter if does not.

func (*OptDefaultTestEnum) Reset added in v0.15.0

func (o *OptDefaultTestEnum) Reset()

Reset unsets value.

func (*OptDefaultTestEnum) SetTo added in v0.15.0

func (o *OptDefaultTestEnum) SetTo(v DefaultTestEnum)

SetTo sets value to v.

type OptDuration

type OptDuration struct {
	Value time.Duration
	Set   bool
}

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.

func (OptDuration) Or added in v0.4.0

Or returns value if set, or given parameter if does not.

func (*OptDuration) Reset

func (o *OptDuration) Reset()

Reset unsets value.

func (*OptDuration) SetTo

func (o *OptDuration) SetTo(v time.Duration)

SetTo sets value to v.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

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) Encode

func (o OptFloat64) Encode(e *jx.Writer)

Encode encodes float64 as 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.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

type OptID added in v0.7.0

type OptID struct {
	Value ID
	Set   bool
}

OptID is optional ID.

func NewOptID added in v0.7.0

func NewOptID(v ID) OptID

NewOptID returns new OptID with value set to v.

func (*OptID) Decode added in v0.7.0

func (o *OptID) Decode(d *jx.Decoder) error

Decode decodes ID from json.

func (OptID) Encode added in v0.7.0

func (o OptID) Encode(e *jx.Writer)

Encode encodes ID as json.

func (OptID) Get added in v0.7.0

func (o OptID) Get() (v ID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptID) IsSet added in v0.7.0

func (o OptID) IsSet() bool

IsSet returns true if OptID was set.

func (OptID) Or added in v0.7.0

func (o OptID) Or(d ID) ID

Or returns value if set, or given parameter if does not.

func (*OptID) Reset added in v0.7.0

func (o *OptID) Reset()

Reset unsets value.

func (*OptID) SetTo added in v0.7.0

func (o *OptID) SetTo(v ID)

SetTo sets value to v.

type OptIP added in v0.15.0

type OptIP struct {
	Value net.IP
	Set   bool
}

OptIP is optional net.IP.

func NewOptIP added in v0.15.0

func NewOptIP(v net.IP) OptIP

NewOptIP returns new OptIP with value set to v.

func (*OptIP) Decode added in v0.15.0

func (o *OptIP) Decode(d *jx.Decoder) error

Decode decodes net.IP from json.

func (OptIP) Encode added in v0.15.0

func (o OptIP) Encode(e *jx.Writer)

Encode encodes net.IP as json.

func (OptIP) Get added in v0.15.0

func (o OptIP) Get() (v net.IP, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIP) IsSet added in v0.15.0

func (o OptIP) IsSet() bool

IsSet returns true if OptIP was set.

func (OptIP) Or added in v0.15.0

func (o OptIP) Or(d net.IP) net.IP

Or returns value if set, or given parameter if does not.

func (*OptIP) Reset added in v0.15.0

func (o *OptIP) Reset()

Reset unsets value.

func (*OptIP) SetTo added in v0.15.0

func (o *OptIP) SetTo(v net.IP)

SetTo sets value to v.

type OptIPv4 added in v0.15.0

type OptIPv4 struct {
	Value net.IP
	Set   bool
}

OptIPv4 is optional net.IP.

func NewOptIPv4 added in v0.15.0

func NewOptIPv4(v net.IP) OptIPv4

NewOptIPv4 returns new OptIPv4 with value set to v.

func (*OptIPv4) Decode added in v0.15.0

func (o *OptIPv4) Decode(d *jx.Decoder) error

Decode decodes net.IP from json.

func (OptIPv4) Encode added in v0.15.0

func (o OptIPv4) Encode(e *jx.Writer)

Encode encodes net.IP as json.

func (OptIPv4) Get added in v0.15.0

func (o OptIPv4) Get() (v net.IP, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIPv4) IsSet added in v0.15.0

func (o OptIPv4) IsSet() bool

IsSet returns true if OptIPv4 was set.

func (OptIPv4) Or added in v0.15.0

func (o OptIPv4) Or(d net.IP) net.IP

Or returns value if set, or given parameter if does not.

func (*OptIPv4) Reset added in v0.15.0

func (o *OptIPv4) Reset()

Reset unsets value.

func (*OptIPv4) SetTo added in v0.15.0

func (o *OptIPv4) SetTo(v net.IP)

SetTo sets value to v.

type OptIPv6 added in v0.15.0

type OptIPv6 struct {
	Value net.IP
	Set   bool
}

OptIPv6 is optional net.IP.

func NewOptIPv6 added in v0.15.0

func NewOptIPv6(v net.IP) OptIPv6

NewOptIPv6 returns new OptIPv6 with value set to v.

func (*OptIPv6) Decode added in v0.15.0

func (o *OptIPv6) Decode(d *jx.Decoder) error

Decode decodes net.IP from json.

func (OptIPv6) Encode added in v0.15.0

func (o OptIPv6) Encode(e *jx.Writer)

Encode encodes net.IP as json.

func (OptIPv6) Get added in v0.15.0

func (o OptIPv6) Get() (v net.IP, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIPv6) IsSet added in v0.15.0

func (o OptIPv6) IsSet() bool

IsSet returns true if OptIPv6 was set.

func (OptIPv6) Or added in v0.15.0

func (o OptIPv6) Or(d net.IP) net.IP

Or returns value if set, or given parameter if does not.

func (*OptIPv6) Reset added in v0.15.0

func (o *OptIPv6) Reset()

Reset unsets value.

func (*OptIPv6) SetTo added in v0.15.0

func (o *OptIPv6) SetTo(v net.IP)

SetTo sets value to v.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Writer)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) Or added in v0.4.0

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

type OptInt32 added in v0.15.0

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32 added in v0.15.0

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode added in v0.16.0

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode added in v0.16.0

func (o OptInt32) Encode(e *jx.Writer)

Encode encodes int32 as json.

func (OptInt32) Get added in v0.15.0

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet added in v0.15.0

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) Or added in v0.15.0

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset added in v0.15.0

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo added in v0.15.0

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

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

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

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

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

Decode decodes MapWithPropertiesInlinedSubMap from json.

func (OptMapWithPropertiesInlinedSubMap) Encode added in v0.9.0

Encode encodes MapWithPropertiesInlinedSubMap as json.

func (OptMapWithPropertiesInlinedSubMap) Get added in v0.9.0

Get returns value and boolean that denotes whether value was set.

func (OptMapWithPropertiesInlinedSubMap) IsSet added in v0.9.0

IsSet returns true if OptMapWithPropertiesInlinedSubMap was set.

func (OptMapWithPropertiesInlinedSubMap) Or added in v0.9.0

Or returns value if set, or given parameter if does not.

func (*OptMapWithPropertiesInlinedSubMap) Reset added in v0.9.0

Reset unsets value.

func (*OptMapWithPropertiesInlinedSubMap) SetTo added in v0.9.0

SetTo sets value to v.

type OptMaxPropertiesTest added in v0.12.0

type OptMaxPropertiesTest struct {
	Value MaxPropertiesTest
	Set   bool
}

OptMaxPropertiesTest is optional MaxPropertiesTest.

func NewOptMaxPropertiesTest added in v0.12.0

func NewOptMaxPropertiesTest(v MaxPropertiesTest) OptMaxPropertiesTest

NewOptMaxPropertiesTest returns new OptMaxPropertiesTest with value set to v.

func (*OptMaxPropertiesTest) Decode added in v0.12.0

func (o *OptMaxPropertiesTest) Decode(d *jx.Decoder) error

Decode decodes MaxPropertiesTest from json.

func (OptMaxPropertiesTest) Encode added in v0.12.0

func (o OptMaxPropertiesTest) Encode(e *jx.Writer)

Encode encodes MaxPropertiesTest as json.

func (OptMaxPropertiesTest) Get added in v0.12.0

Get returns value and boolean that denotes whether value was set.

func (OptMaxPropertiesTest) IsSet added in v0.12.0

func (o OptMaxPropertiesTest) IsSet() bool

IsSet returns true if OptMaxPropertiesTest was set.

func (OptMaxPropertiesTest) Or added in v0.12.0

Or returns value if set, or given parameter if does not.

func (*OptMaxPropertiesTest) Reset added in v0.12.0

func (o *OptMaxPropertiesTest) Reset()

Reset unsets value.

func (*OptMaxPropertiesTest) SetTo added in v0.12.0

SetTo sets value to v.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

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.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

type OptNilStringArray added in v0.9.0

type OptNilStringArray struct {
	Value []string
	Set   bool
	Null  bool
}

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

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 OptOneOfMappingAny added in v0.17.0

type OptOneOfMappingAny struct {
	Value OneOfMappingAny
	Set   bool
}

OptOneOfMappingAny is optional OneOfMappingAny.

func NewOptOneOfMappingAny added in v0.17.0

func NewOptOneOfMappingAny(v OneOfMappingAny) OptOneOfMappingAny

NewOptOneOfMappingAny returns new OptOneOfMappingAny with value set to v.

func (*OptOneOfMappingAny) Decode added in v0.17.0

func (o *OptOneOfMappingAny) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingAny from json.

func (OptOneOfMappingAny) Encode added in v0.17.0

func (o OptOneOfMappingAny) Encode(e *jx.Writer)

Encode encodes OneOfMappingAny as json.

func (OptOneOfMappingAny) Get added in v0.17.0

func (o OptOneOfMappingAny) Get() (v OneOfMappingAny, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptOneOfMappingAny) IsSet added in v0.17.0

func (o OptOneOfMappingAny) IsSet() bool

IsSet returns true if OptOneOfMappingAny was set.

func (OptOneOfMappingAny) Or added in v0.17.0

Or returns value if set, or given parameter if does not.

func (*OptOneOfMappingAny) Reset added in v0.17.0

func (o *OptOneOfMappingAny) Reset()

Reset unsets value.

func (*OptOneOfMappingAny) SetTo added in v0.17.0

func (o *OptOneOfMappingAny) SetTo(v OneOfMappingAny)

SetTo sets value to v.

type OptOneOfMappingReference added in v0.16.0

type OptOneOfMappingReference struct {
	Value OneOfMappingReference
	Set   bool
}

OptOneOfMappingReference is optional OneOfMappingReference.

func NewOptOneOfMappingReference added in v0.16.0

func NewOptOneOfMappingReference(v OneOfMappingReference) OptOneOfMappingReference

NewOptOneOfMappingReference returns new OptOneOfMappingReference with value set to v.

func (*OptOneOfMappingReference) Decode added in v0.16.0

func (o *OptOneOfMappingReference) Decode(d *jx.Decoder) error

Decode decodes OneOfMappingReference from json.

func (OptOneOfMappingReference) Encode added in v0.16.0

func (o OptOneOfMappingReference) Encode(e *jx.Writer)

Encode encodes OneOfMappingReference as json.

func (OptOneOfMappingReference) Get added in v0.16.0

Get returns value and boolean that denotes whether value was set.

func (OptOneOfMappingReference) IsSet added in v0.16.0

func (o OptOneOfMappingReference) IsSet() bool

IsSet returns true if OptOneOfMappingReference was set.

func (OptOneOfMappingReference) Or added in v0.16.0

Or returns value if set, or given parameter if does not.

func (*OptOneOfMappingReference) Reset added in v0.16.0

func (o *OptOneOfMappingReference) Reset()

Reset unsets value.

func (*OptOneOfMappingReference) SetTo added in v0.16.0

SetTo sets value to v.

type OptOneOfUUIDAndIntEnum added in v0.16.0

type OptOneOfUUIDAndIntEnum struct {
	Value OneOfUUIDAndIntEnum
	Set   bool
}

OptOneOfUUIDAndIntEnum is optional OneOfUUIDAndIntEnum.

func NewOptOneOfUUIDAndIntEnum added in v0.16.0

func NewOptOneOfUUIDAndIntEnum(v OneOfUUIDAndIntEnum) OptOneOfUUIDAndIntEnum

NewOptOneOfUUIDAndIntEnum returns new OptOneOfUUIDAndIntEnum with value set to v.

func (*OptOneOfUUIDAndIntEnum) Decode added in v0.16.0

func (o *OptOneOfUUIDAndIntEnum) Decode(d *jx.Decoder) error

Decode decodes OneOfUUIDAndIntEnum from json.

func (OptOneOfUUIDAndIntEnum) Encode added in v0.16.0

func (o OptOneOfUUIDAndIntEnum) Encode(e *jx.Writer)

Encode encodes OneOfUUIDAndIntEnum as json.

func (OptOneOfUUIDAndIntEnum) Get added in v0.16.0

Get returns value and boolean that denotes whether value was set.

func (OptOneOfUUIDAndIntEnum) IsSet added in v0.16.0

func (o OptOneOfUUIDAndIntEnum) IsSet() bool

IsSet returns true if OptOneOfUUIDAndIntEnum was set.

func (OptOneOfUUIDAndIntEnum) Or added in v0.16.0

Or returns value if set, or given parameter if does not.

func (*OptOneOfUUIDAndIntEnum) Reset added in v0.16.0

func (o *OptOneOfUUIDAndIntEnum) Reset()

Reset unsets value.

func (*OptOneOfUUIDAndIntEnum) SetTo added in v0.16.0

SetTo sets value to v.

type OptPet

type OptPet struct {
	Value Pet
	Set   bool
}

OptPet is optional Pet.

func NewOptPet

func NewOptPet(v Pet) OptPet

NewOptPet returns new OptPet with value set to v.

func (*OptPet) Decode

func (o *OptPet) Decode(d *jx.Decoder) error

Decode decodes Pet from json.

func (OptPet) Encode

func (o OptPet) Encode(e *jx.Writer)

Encode encodes Pet as json.

func (OptPet) Get

func (o OptPet) Get() (v Pet, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPet) IsSet

func (o OptPet) IsSet() bool

IsSet returns true if OptPet was set.

func (OptPet) Or added in v0.4.0

func (o OptPet) Or(d Pet) Pet

Or returns value if set, or given parameter if does not.

func (*OptPet) Reset

func (o *OptPet) Reset()

Reset unsets value.

func (*OptPet) SetTo

func (o *OptPet) SetTo(v Pet)

SetTo sets value to v.

type OptPetName

type OptPetName struct {
	Value PetName
	Set   bool
}

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) Encode

func (o OptPetName) Encode(e *jx.Writer)

Encode encodes PetName as 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.

func (*OptPetName) Reset

func (o *OptPetName) Reset()

Reset unsets value.

func (*OptPetName) SetTo

func (o *OptPetName) SetTo(v PetName)

SetTo sets value to v.

type OptPetType

type OptPetType struct {
	Value PetType
	Set   bool
}

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) Encode

func (o OptPetType) Encode(e *jx.Writer)

Encode encodes PetType as 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.

func (*OptPetType) Reset

func (o *OptPetType) Reset()

Reset unsets value.

func (*OptPetType) SetTo

func (o *OptPetType) SetTo(v PetType)

SetTo sets value to v.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Writer)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) Or added in v0.4.0

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

type OptStringMap added in v0.9.0

type OptStringMap struct {
	Value StringMap
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptStringMap) Reset added in v0.9.0

func (o *OptStringMap) Reset()

Reset unsets value.

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

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

Get returns value and boolean that denotes whether value was set.

func (OptTestObjectQueryParameterDeepObject) IsSet added in v0.10.0

IsSet returns true if OptTestObjectQueryParameterDeepObject was set.

func (OptTestObjectQueryParameterDeepObject) Or added in v0.10.0

Or returns value if set, or given parameter if does not.

func (*OptTestObjectQueryParameterDeepObject) Reset added in v0.10.0

Reset unsets value.

func (*OptTestObjectQueryParameterDeepObject) SetTo added in v0.10.0

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

Get returns value and boolean that denotes whether value was set.

func (OptTestObjectQueryParameterFormObject) IsSet added in v0.10.0

IsSet returns true if OptTestObjectQueryParameterFormObject was set.

func (OptTestObjectQueryParameterFormObject) Or added in v0.10.0

Or returns value if set, or given parameter if does not.

func (*OptTestObjectQueryParameterFormObject) Reset added in v0.10.0

Reset unsets value.

func (*OptTestObjectQueryParameterFormObject) SetTo added in v0.10.0

SetTo sets value to v.

type OptTime

type OptTime struct {
	Value time.Time
	Set   bool
}

OptTime is optional time.Time.

func NewOptTime

func NewOptTime(v time.Time) OptTime

NewOptTime returns new OptTime with value set to v.

func (*OptTime) Decode

func (o *OptTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptTime) Encode

func (o OptTime) Encode(e *jx.Writer, format func(*jx.Writer, time.Time))

Encode encodes time.Time as json.

func (OptTime) Get

func (o OptTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTime) IsSet

func (o OptTime) IsSet() bool

IsSet returns true if OptTime was set.

func (OptTime) Or added in v0.4.0

func (o OptTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptTime) Reset

func (o *OptTime) Reset()

Reset unsets value.

func (*OptTime) SetTo

func (o *OptTime) SetTo(v time.Time)

SetTo sets value to v.

type OptURI added in v0.15.0

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI added in v0.15.0

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode added in v0.15.0

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode added in v0.15.0

func (o OptURI) Encode(e *jx.Writer)

Encode encodes url.URL as json.

func (OptURI) Get added in v0.15.0

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet added in v0.15.0

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) Or added in v0.15.0

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset added in v0.15.0

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo added in v0.15.0

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

type OptUUID

type OptUUID struct {
	Value uuid.UUID
	Set   bool
}

OptUUID is optional uuid.UUID.

func NewOptUUID

func NewOptUUID(v uuid.UUID) OptUUID

NewOptUUID returns new OptUUID with value set to v.

func (*OptUUID) Decode

func (o *OptUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptUUID) Encode

func (o OptUUID) Encode(e *jx.Writer)

Encode encodes uuid.UUID as json.

func (OptUUID) Get

func (o OptUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUUID) IsSet

func (o OptUUID) IsSet() bool

IsSet returns true if OptUUID was set.

func (OptUUID) Or added in v0.4.0

func (o OptUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptUUID) Reset

func (o *OptUUID) Reset()

Reset unsets value.

func (*OptUUID) SetTo

func (o *OptUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

type OptValidationStringMap added in v0.12.0

type OptValidationStringMap struct {
	Value ValidationStringMap
	Set   bool
}

OptValidationStringMap is optional ValidationStringMap.

func NewOptValidationStringMap added in v0.12.0

func NewOptValidationStringMap(v ValidationStringMap) OptValidationStringMap

NewOptValidationStringMap returns new OptValidationStringMap with value set to v.

func (*OptValidationStringMap) Decode added in v0.12.0

func (o *OptValidationStringMap) Decode(d *jx.Decoder) error

Decode decodes ValidationStringMap from json.

func (OptValidationStringMap) Encode added in v0.12.0

func (o OptValidationStringMap) Encode(e *jx.Writer)

Encode encodes ValidationStringMap as json.

func (OptValidationStringMap) Get added in v0.12.0

Get returns value and boolean that denotes whether value was set.

func (OptValidationStringMap) IsSet added in v0.12.0

func (o OptValidationStringMap) IsSet() bool

IsSet returns true if OptValidationStringMap was set.

func (OptValidationStringMap) Or added in v0.12.0

Or returns value if set, or given parameter if does not.

func (*OptValidationStringMap) Reset added in v0.12.0

func (o *OptValidationStringMap) Reset()

Reset unsets value.

func (*OptValidationStringMap) SetTo added in v0.12.0

SetTo sets value to v.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithClient

func WithClient(client ht.Client) Option

WithClient specifies http client to use.

func WithMeterProvider added in v0.13.0

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 WithNotFound added in v0.18.0

func WithNotFound(notFound http.HandlerFunc) Option

WithNotFound specifies http 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 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\""
	TestAny           OptAnyTest           "json:\"testAny\""
	TestAnyOf         OptAnyOfTest         "json:\"testAnyOf\""
	TestMaxProperties OptMaxPropertiesTest "json:\"testMaxProperties\""
	TestDate          OptDate              "json:\"testDate\""
	TestDuration      OptDuration          "json:\"testDuration\""
	TestTime          OptTime              "json:\"testTime\""
	TestDateTime      OptDateTime          "json:\"testDateTime\""
}

Cute and lovely creature. Ref: #/components/schemas/Pet

func (*Pet) Decode

func (s *Pet) Decode(d *jx.Decoder) error

Decode decodes Pet from json.

func (Pet) Encode

func (s Pet) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (Pet) Validate

func (s Pet) Validate() error

type PetFriendsNamesByIDParams

type PetFriendsNamesByIDParams struct {
	// Pet ID.
	ID int
}

type PetGetAvatarByIDOK added in v0.10.0

type PetGetAvatarByIDOK struct {
	Data io.Reader
}

func (PetGetAvatarByIDOK) Read added in v0.10.0

func (s PetGetAvatarByIDOK) Read(p []byte) (n int, err error)

type PetGetAvatarByIDParams

type PetGetAvatarByIDParams struct {
	// ID of pet.
	PetID int64
}

type PetGetAvatarByIDRes

type PetGetAvatarByIDRes interface {
	// contains filtered or unexported methods
}

type PetGetAvatarByNameOK added in v0.14.1

type PetGetAvatarByNameOK struct {
	Data io.Reader
}

func (PetGetAvatarByNameOK) Read added in v0.14.1

func (s PetGetAvatarByNameOK) Read(p []byte) (n int, err error)

type PetGetAvatarByNameParams added in v0.14.1

type PetGetAvatarByNameParams struct {
	// Name of pet.
	Name string
}

type PetGetAvatarByNameRes added in v0.14.1

type PetGetAvatarByNameRes 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\""
}

func (*PetGetDef) Decode

func (s *PetGetDef) Decode(d *jx.Decoder) error

Decode decodes PetGetDef from json.

func (PetGetDef) Encode

func (s PetGetDef) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type PetGetDefStatusCode

type PetGetDefStatusCode struct {
	StatusCode int
	Response   PetGetDef
}

PetGetDefStatusCode wraps PetGetDef with StatusCode.

type PetGetParams

type PetGetParams struct {
	// ID of pet.
	PetID int64
	// Tags of pets.
	XTags []uuid.UUID
	// Pet scopes.
	XScope []string
	// Token.
	Token string
}

type PetGetRes

type PetGetRes interface {
	// contains filtered or unexported methods
}

type PetKind

type PetKind string
const (
	PetKindBig  PetKind = "big"
	PetKindSmol PetKind = "smol"
)

func (*PetKind) Decode

func (s *PetKind) Decode(d *jx.Decoder) error

Decode decodes PetKind from json.

func (PetKind) Encode

func (s PetKind) Encode(e *jx.Writer)

Encode encodes PetKind as json.

func (PetKind) Validate

func (s PetKind) Validate() error

type PetName

type PetName string

func (*PetName) Decode

func (s *PetName) Decode(d *jx.Decoder) error

Decode decodes PetName from json.

func (PetName) Encode

func (s PetName) Encode(e *jx.Writer)

Encode encodes PetName as json.

func (PetName) Validate

func (s PetName) Validate() error

type PetNameByIDParams

type PetNameByIDParams struct {
	// Pet ID.
	ID int
}

type PetType

type PetType string
const (
	PetTypeFifa PetType = "fifa"
	PetTypeFofa PetType = "fofa"
)

func (*PetType) Decode

func (s *PetType) Decode(d *jx.Decoder) error

Decode decodes PetType from json.

func (PetType) Encode

func (s PetType) Encode(e *jx.Writer)

Encode encodes PetType as json.

func (PetType) Validate

func (s PetType) Validate() error

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 PetUploadAvatarByIDReq struct {
	Data io.Reader
}

func (PetUploadAvatarByIDReq) Read added in v0.10.0

func (s PetUploadAvatarByIDReq) Read(p []byte) (n int, err error)

type PetUploadAvatarByIDRes

type PetUploadAvatarByIDRes interface {
	// contains filtered or unexported methods
}

type RecursiveArray added in v0.16.0

type RecursiveArray []RecursiveArray

func (*RecursiveArray) Decode added in v0.16.0

func (s *RecursiveArray) Decode(d *jx.Decoder) error

Decode decodes RecursiveArray from json.

func (RecursiveArray) Encode added in v0.16.0

func (s RecursiveArray) Encode(e *jx.Writer)

Encode encodes RecursiveArray as json.

func (RecursiveArray) Validate added in v0.16.0

func (s RecursiveArray) Validate() error

type RecursiveMap added in v0.11.1

type RecursiveMap struct {
	OptionalRecursiveField *RecursiveMap `json:"optional_recursive_field"`
	AdditionalProps        map[string]RecursiveMap
}

Ref: #/components/schemas/RecursiveMap

func (*RecursiveMap) Decode added in v0.11.1

func (s *RecursiveMap) Decode(d *jx.Decoder) error

Decode decodes RecursiveMap from json.

func (RecursiveMap) Encode added in v0.11.1

func (s RecursiveMap) Encode(e *jx.Writer)

Encode implements json.Marshaler.

type Route added in v0.8.0

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args added in v0.8.0

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) OperationID added in v0.8.0

func (r Route) OperationID() string

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.

func NewServer

func NewServer(h Handler, opts ...Option) (*Server, error)

func (*Server) FindRoute added in v0.8.0

func (s *Server) FindRoute(method, path string) (r Route, _ bool)

FindRoute finds Route for given method and path.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type StringMap added in v0.9.0

type StringMap map[string]string

Ref: #/components/schemas/StringMap

func (StringMap) Decode added in v0.9.0

func (s StringMap) Decode(d *jx.Decoder) error

Decode decodes StringMap from json.

func (StringMap) Encode added in v0.9.0

func (s StringMap) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (StringMap) Validate added in v0.9.0

func (s StringMap) Validate() error

type StringStringMap added in v0.9.0

type StringStringMap map[string]StringMap

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 TestFloatValidation added in v0.16.0

type TestFloatValidation struct {
	Minmax     float64 "json:\"minmax\""
	MultipleOf float64 "json:\"multipleOf\""
}

Ref: #/components/schemas/TestFloatValidation

func (*TestFloatValidation) Decode added in v0.16.0

func (s *TestFloatValidation) Decode(d *jx.Decoder) error

Decode decodes TestFloatValidation from json.

func (TestFloatValidation) Encode added in v0.16.0

func (s TestFloatValidation) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (TestFloatValidation) Validate added in v0.16.0

func (s TestFloatValidation) Validate() error

type TestFloatValidationOK added in v0.16.0

type TestFloatValidationOK struct{}

TestFloatValidationOK is response for TestFloatValidation operation.

type TestObjectQueryParameterDeepObject added in v0.10.0

type TestObjectQueryParameterDeepObject struct {
	Min    int    "json:\"min\""
	Max    int    "json:\"max\""
	Filter string "json:\"filter\""
}

type TestObjectQueryParameterFormObject added in v0.10.0

type TestObjectQueryParameterFormObject struct {
	Min    int    "json:\"min\""
	Max    int    "json:\"max\""
	Filter string "json:\"filter\""
}

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

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
}

type UnimplementedHandler added in v0.18.0

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) DataGetFormat added in v0.18.0

func (UnimplementedHandler) DataGetFormat(ctx context.Context, params DataGetFormatParams) (r string, _ error)

DataGetFormat implements dataGetFormat operation.

Retrieve data.

GET /name/{id}/{foo}1234{bar}-{baz}!{kek}

func (UnimplementedHandler) DefaultTest added in v0.18.0

func (UnimplementedHandler) DefaultTest(ctx context.Context, req DefaultTest, params DefaultTestParams) (r int32, _ error)

DefaultTest implements defaultTest operation.

POST /defaultTest

func (UnimplementedHandler) ErrorGet added in v0.18.0

ErrorGet implements errorGet operation.

Returns error.

GET /error

func (UnimplementedHandler) FoobarGet added in v0.18.0

func (UnimplementedHandler) FoobarGet(ctx context.Context, params FoobarGetParams) (r FoobarGetRes, _ error)

FoobarGet implements foobarGet operation.

Dumb endpoint for testing things.

GET /foobar

func (UnimplementedHandler) FoobarPost added in v0.18.0

func (UnimplementedHandler) FoobarPost(ctx context.Context, req OptPet) (r FoobarPostRes, _ error)

FoobarPost implements foobarPost operation.

Dumb endpoint for testing things.

POST /foobar

func (UnimplementedHandler) FoobarPut added in v0.18.0

FoobarPut implements operation.

PUT /foobar

func (UnimplementedHandler) GetHeader added in v0.18.0

func (UnimplementedHandler) GetHeader(ctx context.Context, params GetHeaderParams) (r Hash, _ error)

GetHeader implements getHeader operation.

Test for header param.

GET /test/header

func (UnimplementedHandler) MultipleGenericResponses added in v0.18.0

func (UnimplementedHandler) MultipleGenericResponses(ctx context.Context) (r MultipleGenericResponsesRes, _ error)

MultipleGenericResponses implements multipleGenericResponses operation.

GET /multipleGenericResponses

func (UnimplementedHandler) NullableDefaultResponse added in v0.18.0

func (UnimplementedHandler) NullableDefaultResponse(ctx context.Context) (r NilIntStatusCode, _ error)

NullableDefaultResponse implements nullableDefaultResponse operation.

GET /nullableDefaultResponse

func (UnimplementedHandler) OctetStreamBinaryStringSchema added in v0.18.0

func (UnimplementedHandler) OctetStreamBinaryStringSchema(ctx context.Context) (r OctetStreamBinaryStringSchemaOK, _ error)

OctetStreamBinaryStringSchema implements octetStreamBinaryStringSchema operation.

GET /octetStreamBinaryStringSchema

func (UnimplementedHandler) OctetStreamEmptySchema added in v0.18.0

func (UnimplementedHandler) OctetStreamEmptySchema(ctx context.Context) (r OctetStreamEmptySchemaOK, _ error)

OctetStreamEmptySchema implements octetStreamEmptySchema operation.

GET /octetStreamEmptySchema

func (UnimplementedHandler) OneofBug added in v0.18.0

func (UnimplementedHandler) OneofBug(ctx context.Context, req OneOfBugs) (r OneofBugOK, _ error)

OneofBug implements oneofBug operation.

POST /oneofBug

func (UnimplementedHandler) PetCreate added in v0.18.0

func (UnimplementedHandler) PetCreate(ctx context.Context, req OptPet) (r Pet, _ error)

PetCreate implements petCreate operation.

Creates pet.

POST /pet

func (UnimplementedHandler) PetFriendsNamesByID added in v0.18.0

func (UnimplementedHandler) PetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) (r []string, _ error)

PetFriendsNamesByID implements petFriendsNamesByID operation.

Returns names of all friends of pet.

GET /pet/friendNames/{id}

func (UnimplementedHandler) PetGet added in v0.18.0

func (UnimplementedHandler) PetGet(ctx context.Context, params PetGetParams) (r PetGetRes, _ error)

PetGet implements petGet operation.

Returns pet from the system that the user has access to.

GET /pet

func (UnimplementedHandler) PetGetAvatarByID added in v0.18.0

PetGetAvatarByID implements petGetAvatarByID operation.

Returns pet avatar by id.

GET /pet/avatar

func (UnimplementedHandler) PetGetAvatarByName added in v0.18.0

PetGetAvatarByName implements petGetAvatarByName operation.

Returns pet's avatar by name.

GET /pet/{name}/avatar

func (UnimplementedHandler) PetGetByName added in v0.18.0

func (UnimplementedHandler) PetGetByName(ctx context.Context, params PetGetByNameParams) (r Pet, _ error)

PetGetByName implements petGetByName operation.

Returns pet by name from the system that the user has access to.

GET /pet/{name}

func (UnimplementedHandler) PetNameByID added in v0.18.0

func (UnimplementedHandler) PetNameByID(ctx context.Context, params PetNameByIDParams) (r string, _ error)

PetNameByID implements petNameByID operation.

Returns pet name by pet id.

GET /pet/name/{id}

func (UnimplementedHandler) PetUpdateNameAliasPost added in v0.18.0

PetUpdateNameAliasPost implements operation.

POST /pet/updateNameAlias

func (UnimplementedHandler) PetUpdateNamePost added in v0.18.0

PetUpdateNamePost implements operation.

POST /pet/updateName

func (UnimplementedHandler) PetUploadAvatarByID added in v0.18.0

PetUploadAvatarByID implements petUploadAvatarByID operation.

Uploads pet avatar by id.

POST /pet/avatar

func (UnimplementedHandler) RecursiveArrayGet added in v0.18.0

func (UnimplementedHandler) RecursiveArrayGet(ctx context.Context) (r RecursiveArray, _ error)

RecursiveArrayGet implements operation.

GET /recursiveArray

func (UnimplementedHandler) RecursiveMapGet added in v0.18.0

func (UnimplementedHandler) RecursiveMapGet(ctx context.Context) (r RecursiveMap, _ error)

RecursiveMapGet implements operation.

GET /recursiveMap

func (UnimplementedHandler) TestFloatValidation added in v0.18.0

TestFloatValidation implements testFloatValidation operation.

POST /testFloatValidation

func (UnimplementedHandler) TestObjectQueryParameter added in v0.18.0

TestObjectQueryParameter implements testObjectQueryParameter operation.

GET /testObjectQueryParameter

type ValidationStringMap added in v0.12.0

type ValidationStringMap map[string]string

Ref: #/components/schemas/ValidationStringMap

func (ValidationStringMap) Decode added in v0.12.0

func (s ValidationStringMap) Decode(d *jx.Decoder) error

Decode decodes ValidationStringMap from json.

func (ValidationStringMap) Encode added in v0.12.0

func (s ValidationStringMap) Encode(e *jx.Writer)

Encode implements json.Marshaler.

func (ValidationStringMap) Validate added in v0.12.0

func (s ValidationStringMap) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL