api

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 31 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 APIKey

type APIKey struct {
	APIKey string
}

func (APIKey) GetAPIKey added in v0.52.0

func (s APIKey) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*APIKey) SetAPIKey added in v0.52.0

func (s *APIKey) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

type AnyOfTest

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

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

Decode decodes AnyOfTest from json.

func (AnyOfTest) Encode

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

Encode implements json.Marshaler.

func (AnyOfTest) GetMedium added in v0.52.0

func (s AnyOfTest) GetMedium() string

GetMedium returns the value of Medium.

func (AnyOfTest) GetSizeLimit added in v0.52.0

func (s AnyOfTest) GetSizeLimit() AnyOfTestSizeLimit

GetSizeLimit returns the value of SizeLimit.

func (AnyOfTest) MarshalJSON

func (s AnyOfTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnyOfTest) SetMedium added in v0.52.0

func (s *AnyOfTest) SetMedium(val string)

SetMedium sets the value of Medium.

func (*AnyOfTest) SetSizeLimit added in v0.52.0

func (s *AnyOfTest) SetSizeLimit(val AnyOfTestSizeLimit)

SetSizeLimit sets the value of SizeLimit.

func (*AnyOfTest) UnmarshalJSON

func (s *AnyOfTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AnyOfTest) Validate

func (s AnyOfTest) Validate() error

type AnyOfTestSizeLimit

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

AnyOfTestSizeLimit represents sum type.

func NewIntAnyOfTestSizeLimit

func NewIntAnyOfTestSizeLimit(v int) AnyOfTestSizeLimit

NewIntAnyOfTestSizeLimit returns new AnyOfTestSizeLimit from int.

func NewStringAnyOfTestSizeLimit

func NewStringAnyOfTestSizeLimit(v string) AnyOfTestSizeLimit

NewStringAnyOfTestSizeLimit returns new AnyOfTestSizeLimit from string.

func (*AnyOfTestSizeLimit) Decode

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

Decode decodes AnyOfTestSizeLimit from json.

func (AnyOfTestSizeLimit) Encode

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

Encode encodes AnyOfTestSizeLimit as json.

func (AnyOfTestSizeLimit) GetInt

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

GetInt returns int and true boolean if AnyOfTestSizeLimit is int.

func (AnyOfTestSizeLimit) GetString

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

GetString returns string and true boolean if AnyOfTestSizeLimit is string.

func (AnyOfTestSizeLimit) IsInt

func (s AnyOfTestSizeLimit) IsInt() bool

IsInt reports whether AnyOfTestSizeLimit is int.

func (AnyOfTestSizeLimit) IsString

func (s AnyOfTestSizeLimit) IsString() bool

IsString reports whether AnyOfTestSizeLimit is string.

func (AnyOfTestSizeLimit) MarshalJSON

func (s AnyOfTestSizeLimit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnyOfTestSizeLimit) SetInt

func (s *AnyOfTestSizeLimit) SetInt(v int)

SetInt sets AnyOfTestSizeLimit to int.

func (*AnyOfTestSizeLimit) SetString

func (s *AnyOfTestSizeLimit) SetString(v string)

SetString sets AnyOfTestSizeLimit to string.

func (*AnyOfTestSizeLimit) UnmarshalJSON

func (s *AnyOfTestSizeLimit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (AnyOfTestSizeLimit) Validate

func (s AnyOfTestSizeLimit) Validate() error

type AnyOfTestSizeLimitType

type AnyOfTestSizeLimitType string

AnyOfTestSizeLimitType is oneOf type of AnyOfTestSizeLimit.

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

Possible values for AnyOfTestSizeLimitType.

type AnyTest

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

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

Decode decodes AnyTest from json.

func (AnyTest) Encode

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

Encode implements json.Marshaler.

func (AnyTest) GetAnyArray added in v0.52.0

func (s AnyTest) GetAnyArray() []jx.Raw

GetAnyArray returns the value of AnyArray.

func (AnyTest) GetAnyMap added in v0.52.0

func (s AnyTest) GetAnyMap() OptAnyTestAnyMap

GetAnyMap returns the value of AnyMap.

func (AnyTest) GetEmpty added in v0.52.0

func (s AnyTest) GetEmpty() jx.Raw

GetEmpty returns the value of Empty.

func (AnyTest) MarshalJSON

func (s AnyTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnyTest) SetAnyArray added in v0.52.0

func (s *AnyTest) SetAnyArray(val []jx.Raw)

SetAnyArray sets the value of AnyArray.

func (*AnyTest) SetAnyMap added in v0.52.0

func (s *AnyTest) SetAnyMap(val OptAnyTestAnyMap)

SetAnyMap sets the value of AnyMap.

func (*AnyTest) SetEmpty added in v0.52.0

func (s *AnyTest) SetEmpty(val jx.Raw)

SetEmpty sets the value of Empty.

func (*AnyTest) UnmarshalJSON

func (s *AnyTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AnyTestAnyMap

type AnyTestAnyMap map[string]jx.Raw

func (*AnyTestAnyMap) Decode

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

Decode decodes AnyTestAnyMap from json.

func (AnyTestAnyMap) Encode

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

Encode implements json.Marshaler.

func (AnyTestAnyMap) MarshalJSON

func (s AnyTestAnyMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnyTestAnyMap) UnmarshalJSON

func (s *AnyTestAnyMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ArrayTest

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

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

Decode decodes ArrayTest from json.

func (ArrayTest) Encode

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

Encode implements json.Marshaler.

func (ArrayTest) GetNullableOptional added in v0.52.0

func (s ArrayTest) GetNullableOptional() OptNilStringArray

GetNullableOptional returns the value of NullableOptional.

func (ArrayTest) GetNullableRequired added in v0.52.0

func (s ArrayTest) GetNullableRequired() []string

GetNullableRequired returns the value of NullableRequired.

func (ArrayTest) GetOptional added in v0.52.0

func (s ArrayTest) GetOptional() []string

GetOptional returns the value of Optional.

func (ArrayTest) GetRequired added in v0.52.0

func (s ArrayTest) GetRequired() []string

GetRequired returns the value of Required.

func (ArrayTest) MarshalJSON

func (s ArrayTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArrayTest) SetNullableOptional added in v0.52.0

func (s *ArrayTest) SetNullableOptional(val OptNilStringArray)

SetNullableOptional sets the value of NullableOptional.

func (*ArrayTest) SetNullableRequired added in v0.52.0

func (s *ArrayTest) SetNullableRequired(val []string)

SetNullableRequired sets the value of NullableRequired.

func (*ArrayTest) SetOptional added in v0.52.0

func (s *ArrayTest) SetOptional(val []string)

SetOptional sets the value of Optional.

func (*ArrayTest) SetRequired added in v0.52.0

func (s *ArrayTest) SetRequired(val []string)

SetRequired sets the value of Required.

func (*ArrayTest) UnmarshalJSON

func (s *ArrayTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ArrayTest) Validate

func (s ArrayTest) Validate() error

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.Encoder)

Encode implements json.Marshaler.

func (Data) GetBase64 added in v0.52.0

func (s Data) GetBase64() []byte

GetBase64 returns the value of Base64.

func (Data) GetDescription added in v0.52.0

func (s Data) GetDescription() DataDescription

GetDescription returns the value of Description.

func (Data) GetEmail added in v0.52.0

func (s Data) GetEmail() string

GetEmail returns the value of Email.

func (Data) GetFormat added in v0.52.0

func (s Data) GetFormat() string

GetFormat returns the value of Format.

func (Data) GetHostname added in v0.52.0

func (s Data) GetHostname() string

GetHostname returns the value of Hostname.

func (Data) GetID added in v0.52.0

func (s Data) GetID() ID

GetID returns the value of ID.

func (Data) GetNullableEnum added in v0.52.0

func (s Data) GetNullableEnum() OptNullableEnums

GetNullableEnum returns the value of NullableEnum.

func (Data) MarshalJSON

func (s Data) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Data) SetBase64 added in v0.52.0

func (s *Data) SetBase64(val []byte)

SetBase64 sets the value of Base64.

func (*Data) SetDescription added in v0.52.0

func (s *Data) SetDescription(val DataDescription)

SetDescription sets the value of Description.

func (*Data) SetEmail added in v0.52.0

func (s *Data) SetEmail(val string)

SetEmail sets the value of Email.

func (*Data) SetFormat added in v0.52.0

func (s *Data) SetFormat(val string)

SetFormat sets the value of Format.

func (*Data) SetHostname added in v0.52.0

func (s *Data) SetHostname(val string)

SetHostname sets the value of Hostname.

func (*Data) SetID added in v0.52.0

func (s *Data) SetID(val ID)

SetID sets the value of ID.

func (*Data) SetNullableEnum added in v0.52.0

func (s *Data) SetNullableEnum(val OptNullableEnums)

SetNullableEnum sets the value of NullableEnum.

func (*Data) UnmarshalJSON

func (s *Data) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s DataDescription) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

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.

func (*DataDescription) UnmarshalJSON

func (s *DataDescription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DataDescriptionType

type DataDescriptionType string

DataDescriptionType is oneOf type of DataDescription.

const (
	DescriptionDetailedDataDescription DataDescriptionType = "DescriptionDetailed"
	DescriptionSimpleDataDescription   DataDescriptionType = "DescriptionSimple"
)

Possible values for DataDescriptionType.

type DataGetFormatParams

type DataGetFormatParams struct {
	ID  int
	Foo string
	Bar string
	Baz string
	Kek string
}

type DefaultTest

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

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

Decode decodes DefaultTest from json.

func (DefaultTest) Encode

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

Encode implements json.Marshaler.

func (DefaultTest) GetBase64 added in v0.52.0

func (s DefaultTest) GetBase64() []byte

GetBase64 returns the value of Base64.

func (DefaultTest) GetBirthday added in v0.52.0

func (s DefaultTest) GetBirthday() OptDate

GetBirthday returns the value of Birthday.

func (DefaultTest) GetEmail added in v0.52.0

func (s DefaultTest) GetEmail() OptString

GetEmail returns the value of Email.

func (DefaultTest) GetEnum added in v0.52.0

func (s DefaultTest) GetEnum() OptDefaultTestEnum

GetEnum returns the value of Enum.

func (DefaultTest) GetFormat added in v0.52.0

func (s DefaultTest) GetFormat() OptString

GetFormat returns the value of Format.

func (DefaultTest) GetHostname added in v0.52.0

func (s DefaultTest) GetHostname() OptString

GetHostname returns the value of Hostname.

func (DefaultTest) GetIP added in v0.52.0

func (s DefaultTest) GetIP() OptIP

GetIP returns the value of IP.

func (DefaultTest) GetIPV4 added in v0.52.0

func (s DefaultTest) GetIPV4() OptIPv4

GetIPV4 returns the value of IPV4.

func (DefaultTest) GetIPV6 added in v0.52.0

func (s DefaultTest) GetIPV6() OptIPv6

GetIPV6 returns the value of IPV6.

func (DefaultTest) GetNullStr added in v0.52.0

func (s DefaultTest) GetNullStr() OptNilString

GetNullStr returns the value of NullStr.

func (DefaultTest) GetRate added in v0.52.0

func (s DefaultTest) GetRate() OptDuration

GetRate returns the value of Rate.

func (DefaultTest) GetRequired added in v0.52.0

func (s DefaultTest) GetRequired() string

GetRequired returns the value of Required.

func (DefaultTest) GetStr added in v0.52.0

func (s DefaultTest) GetStr() OptString

GetStr returns the value of Str.

func (DefaultTest) GetURI added in v0.52.0

func (s DefaultTest) GetURI() OptURI

GetURI returns the value of URI.

func (DefaultTest) GetUUID added in v0.52.0

func (s DefaultTest) GetUUID() OptUUID

GetUUID returns the value of UUID.

func (DefaultTest) MarshalJSON

func (s DefaultTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DefaultTest) SetBase64 added in v0.52.0

func (s *DefaultTest) SetBase64(val []byte)

SetBase64 sets the value of Base64.

func (*DefaultTest) SetBirthday added in v0.52.0

func (s *DefaultTest) SetBirthday(val OptDate)

SetBirthday sets the value of Birthday.

func (*DefaultTest) SetEmail added in v0.52.0

func (s *DefaultTest) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*DefaultTest) SetEnum added in v0.52.0

func (s *DefaultTest) SetEnum(val OptDefaultTestEnum)

SetEnum sets the value of Enum.

func (*DefaultTest) SetFormat added in v0.52.0

func (s *DefaultTest) SetFormat(val OptString)

SetFormat sets the value of Format.

func (*DefaultTest) SetHostname added in v0.52.0

func (s *DefaultTest) SetHostname(val OptString)

SetHostname sets the value of Hostname.

func (*DefaultTest) SetIP added in v0.52.0

func (s *DefaultTest) SetIP(val OptIP)

SetIP sets the value of IP.

func (*DefaultTest) SetIPV4 added in v0.52.0

func (s *DefaultTest) SetIPV4(val OptIPv4)

SetIPV4 sets the value of IPV4.

func (*DefaultTest) SetIPV6 added in v0.52.0

func (s *DefaultTest) SetIPV6(val OptIPv6)

SetIPV6 sets the value of IPV6.

func (*DefaultTest) SetNullStr added in v0.52.0

func (s *DefaultTest) SetNullStr(val OptNilString)

SetNullStr sets the value of NullStr.

func (*DefaultTest) SetRate added in v0.52.0

func (s *DefaultTest) SetRate(val OptDuration)

SetRate sets the value of Rate.

func (*DefaultTest) SetRequired added in v0.52.0

func (s *DefaultTest) SetRequired(val string)

SetRequired sets the value of Required.

func (*DefaultTest) SetStr added in v0.52.0

func (s *DefaultTest) SetStr(val OptString)

SetStr sets the value of Str.

func (*DefaultTest) SetURI added in v0.52.0

func (s *DefaultTest) SetURI(val OptURI)

SetURI sets the value of URI.

func (*DefaultTest) SetUUID added in v0.52.0

func (s *DefaultTest) SetUUID(val OptUUID)

SetUUID sets the value of UUID.

func (*DefaultTest) UnmarshalJSON

func (s *DefaultTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DefaultTest) Validate

func (s DefaultTest) Validate() error

type DefaultTestEnum

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

func (*DefaultTestEnum) Decode

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

Decode decodes DefaultTestEnum from json.

func (DefaultTestEnum) Encode

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

Encode encodes DefaultTestEnum as json.

func (DefaultTestEnum) MarshalJSON

func (s DefaultTestEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DefaultTestEnum) UnmarshalJSON

func (s *DefaultTestEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DefaultTestEnum) Validate

func (s DefaultTestEnum) Validate() error

type DefaultTestParams

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.Encoder)

Encode implements json.Marshaler.

func (DescriptionDetailed) GetCount added in v0.52.0

func (s DescriptionDetailed) GetCount() int

GetCount returns the value of Count.

func (DescriptionDetailed) GetID added in v0.52.0

func (s DescriptionDetailed) GetID() OptID

GetID returns the value of ID.

func (DescriptionDetailed) GetName added in v0.52.0

func (s DescriptionDetailed) GetName() string

GetName returns the value of Name.

func (DescriptionDetailed) MarshalJSON

func (s DescriptionDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DescriptionDetailed) SetCount added in v0.52.0

func (s *DescriptionDetailed) SetCount(val int)

SetCount sets the value of Count.

func (*DescriptionDetailed) SetID added in v0.52.0

func (s *DescriptionDetailed) SetID(val OptID)

SetID sets the value of ID.

func (*DescriptionDetailed) SetName added in v0.52.0

func (s *DescriptionDetailed) SetName(val string)

SetName sets the value of Name.

func (*DescriptionDetailed) UnmarshalJSON

func (s *DescriptionDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

Encode implements json.Marshaler.

func (DescriptionSimple) GetDescription added in v0.52.0

func (s DescriptionSimple) GetDescription() string

GetDescription returns the value of Description.

func (DescriptionSimple) MarshalJSON

func (s DescriptionSimple) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DescriptionSimple) SetDescription added in v0.52.0

func (s *DescriptionSimple) SetDescription(val string)

SetDescription sets the value of Description.

func (*DescriptionSimple) UnmarshalJSON

func (s *DescriptionSimple) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

Encode implements json.Marshaler.

func (Error) GetCode added in v0.52.0

func (s Error) GetCode() int64

GetCode returns the value of Code.

func (Error) GetMessage added in v0.52.0

func (s Error) GetMessage() string

GetMessage returns the value of Message.

func (Error) MarshalJSON

func (s Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetCode added in v0.52.0

func (s *Error) SetCode(val int64)

SetCode sets the value of Code.

func (*Error) SetMessage added in v0.52.0

func (s *Error) SetMessage(val string)

SetMessage sets the value of Message.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

func (ErrorStatusCode) GetResponse added in v0.52.0

func (s ErrorStatusCode) GetResponse() Error

GetResponse returns the value of Response.

func (ErrorStatusCode) GetStatusCode added in v0.52.0

func (s ErrorStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorStatusCode) SetResponse added in v0.52.0

func (s *ErrorStatusCode) SetResponse(val Error)

SetResponse sets the value of Response.

func (*ErrorStatusCode) SetStatusCode added in v0.52.0

func (s *ErrorStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of 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 {
	StatusCode int
}

FoobarPutDef is default response for FoobarPut operation.

func (FoobarPutDef) GetStatusCode added in v0.52.0

func (s FoobarPutDef) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*FoobarPutDef) SetStatusCode added in v0.52.0

func (s *FoobarPutDef) SetStatusCode(val int)

SetStatusCode sets the value of 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 PUT /foobar operation.
	//
	// PUT /foobar
	FoobarPut(ctx context.Context) (FoobarPutDef, error)
	// GetHeader implements getHeader operation.
	//
	// Test for header param.
	//
	// GET /test/header
	GetHeader(ctx context.Context, params GetHeaderParams) (Hash, error)
	// NoAdditionalPropertiesTest implements noAdditionalPropertiesTest operation.
	//
	// GET /noAdditionalPropertiesTest
	NoAdditionalPropertiesTest(ctx context.Context) (NoAdditionalPropertiesTest, error)
	// NullableDefaultResponse implements nullableDefaultResponse operation.
	//
	// GET /nullableDefaultResponse
	NullableDefaultResponse(ctx context.Context) (NilIntStatusCode, error)
	// OneofBug implements oneofBug operation.
	//
	// POST /oneofBug
	OneofBug(ctx context.Context, req OneOfBugs) (OneofBugOK, error)
	// PatternRecursiveMapGet implements GET /patternRecursiveMap operation.
	//
	// GET /patternRecursiveMap
	PatternRecursiveMapGet(ctx context.Context) (PatternRecursiveMap, 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 POST /pet/updateNameAlias operation.
	//
	// POST /pet/updateNameAlias
	PetUpdateNameAliasPost(ctx context.Context, req OptPetName) (PetUpdateNameAliasPostDef, error)
	// PetUpdateNamePost implements POST /pet/updateName operation.
	//
	// POST /pet/updateName
	PetUpdateNamePost(ctx context.Context, req OptString) (PetUpdateNamePostDef, 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 GET /recursiveArray operation.
	//
	// GET /recursiveArray
	RecursiveArrayGet(ctx context.Context) (RecursiveArray, error)
	// RecursiveMapGet implements GET /recursiveMap operation.
	//
	// GET /recursiveMap
	RecursiveMapGet(ctx context.Context) (RecursiveMap, error)
	// SecurityTest implements securityTest operation.
	//
	// GET /securityTest
	SecurityTest(ctx context.Context) (string, error)
	// StringIntMapGet implements GET /stringIntMap operation.
	//
	// GET /stringIntMap
	StringIntMapGet(ctx context.Context) (StringIntMap, error)
	// TestContentParameter implements testContentParameter operation.
	//
	// GET /testContentParameter
	TestContentParameter(ctx context.Context, params TestContentParameterParams) (string, error)
	// TestFloatValidation implements testFloatValidation operation.
	//
	// POST /testFloatValidation
	TestFloatValidation(ctx context.Context, req TestFloatValidation) (TestFloatValidationOK, error)
	// TestNullableOneofs implements testNullableOneofs operation.
	//
	// GET /testNullableOneofs
	TestNullableOneofs(ctx context.Context) (TestNullableOneofsRes, 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.Encoder)

Encode implements json.Marshaler.

func (Hash) GetHex added in v0.52.0

func (s Hash) GetHex() string

GetHex returns the value of Hex.

func (Hash) GetRaw added in v0.52.0

func (s Hash) GetRaw() []byte

GetRaw returns the value of Raw.

func (Hash) MarshalJSON

func (s Hash) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Hash) SetHex added in v0.52.0

func (s *Hash) SetHex(val string)

SetHex sets the value of Hex.

func (*Hash) SetRaw added in v0.52.0

func (s *Hash) SetRaw(val []byte)

SetRaw sets the value of Raw.

func (*Hash) UnmarshalJSON

func (s *Hash) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s ID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

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.

func (*ID) UnmarshalJSON

func (s *ID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IDType

type IDType string

IDType is oneOf type of ID.

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

Possible values for IDType.

type Issue143

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

func NewIssue1430Issue143(v Issue1430) Issue143

NewIssue1430Issue143 returns new Issue143 from Issue1430.

func NewIssue1431Issue143

func NewIssue1431Issue143(v Issue1431) Issue143

NewIssue1431Issue143 returns new Issue143 from Issue1431.

func NewIssue1432Issue143

func NewIssue1432Issue143(v Issue1432) Issue143

NewIssue1432Issue143 returns new Issue143 from Issue1432.

func NewIssue1433Issue143

func NewIssue1433Issue143(v Issue1433) Issue143

NewIssue1433Issue143 returns new Issue143 from Issue1433.

func (*Issue143) Decode

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

Decode decodes Issue143 from json.

func (Issue143) Encode

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

Encode encodes Issue143 as json.

func (Issue143) GetIssue1430

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

GetIssue1430 returns Issue1430 and true boolean if Issue143 is Issue1430.

func (Issue143) GetIssue1431

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

GetIssue1431 returns Issue1431 and true boolean if Issue143 is Issue1431.

func (Issue143) GetIssue1432

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

GetIssue1432 returns Issue1432 and true boolean if Issue143 is Issue1432.

func (Issue143) GetIssue1433

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

GetIssue1433 returns Issue1433 and true boolean if Issue143 is Issue1433.

func (Issue143) IsIssue1430

func (s Issue143) IsIssue1430() bool

IsIssue1430 reports whether Issue143 is Issue1430.

func (Issue143) IsIssue1431

func (s Issue143) IsIssue1431() bool

IsIssue1431 reports whether Issue143 is Issue1431.

func (Issue143) IsIssue1432

func (s Issue143) IsIssue1432() bool

IsIssue1432 reports whether Issue143 is Issue1432.

func (Issue143) IsIssue1433

func (s Issue143) IsIssue1433() bool

IsIssue1433 reports whether Issue143 is Issue1433.

func (Issue143) MarshalJSON

func (s Issue143) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Issue143) SetIssue1430

func (s *Issue143) SetIssue1430(v Issue1430)

SetIssue1430 sets Issue143 to Issue1430.

func (*Issue143) SetIssue1431

func (s *Issue143) SetIssue1431(v Issue1431)

SetIssue1431 sets Issue143 to Issue1431.

func (*Issue143) SetIssue1432

func (s *Issue143) SetIssue1432(v Issue1432)

SetIssue1432 sets Issue143 to Issue1432.

func (*Issue143) SetIssue1433

func (s *Issue143) SetIssue1433(v Issue1433)

SetIssue1433 sets Issue143 to Issue1433.

func (*Issue143) UnmarshalJSON

func (s *Issue143) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Issue1430

type Issue1430 struct {
	CommonMinus1 string `json:"common-1"`
	CommonMinus2 int    `json:"common-2"`
	UniqueMinus1 string `json:"unique-1"`
}

func (*Issue1430) Decode

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

Decode decodes Issue1430 from json.

func (Issue1430) Encode

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

Encode implements json.Marshaler.

func (Issue1430) GetCommonMinus1 added in v0.52.0

func (s Issue1430) GetCommonMinus1() string

GetCommonMinus1 returns the value of CommonMinus1.

func (Issue1430) GetCommonMinus2 added in v0.52.0

func (s Issue1430) GetCommonMinus2() int

GetCommonMinus2 returns the value of CommonMinus2.

func (Issue1430) GetUniqueMinus1 added in v0.52.0

func (s Issue1430) GetUniqueMinus1() string

GetUniqueMinus1 returns the value of UniqueMinus1.

func (Issue1430) MarshalJSON

func (s Issue1430) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Issue1430) SetCommonMinus1 added in v0.52.0

func (s *Issue1430) SetCommonMinus1(val string)

SetCommonMinus1 sets the value of CommonMinus1.

func (*Issue1430) SetCommonMinus2 added in v0.52.0

func (s *Issue1430) SetCommonMinus2(val int)

SetCommonMinus2 sets the value of CommonMinus2.

func (*Issue1430) SetUniqueMinus1 added in v0.52.0

func (s *Issue1430) SetUniqueMinus1(val string)

SetUniqueMinus1 sets the value of UniqueMinus1.

func (*Issue1430) UnmarshalJSON

func (s *Issue1430) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Issue1431

type Issue1431 struct {
	CommonMinus1 string `json:"common-1"`
	CommonMinus2 int    `json:"common-2"`
	UniqueMinus2 string `json:"unique-2"`
}

func (*Issue1431) Decode

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

Decode decodes Issue1431 from json.

func (Issue1431) Encode

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

Encode implements json.Marshaler.

func (Issue1431) GetCommonMinus1 added in v0.52.0

func (s Issue1431) GetCommonMinus1() string

GetCommonMinus1 returns the value of CommonMinus1.

func (Issue1431) GetCommonMinus2 added in v0.52.0

func (s Issue1431) GetCommonMinus2() int

GetCommonMinus2 returns the value of CommonMinus2.

func (Issue1431) GetUniqueMinus2 added in v0.52.0

func (s Issue1431) GetUniqueMinus2() string

GetUniqueMinus2 returns the value of UniqueMinus2.

func (Issue1431) MarshalJSON

func (s Issue1431) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Issue1431) SetCommonMinus1 added in v0.52.0

func (s *Issue1431) SetCommonMinus1(val string)

SetCommonMinus1 sets the value of CommonMinus1.

func (*Issue1431) SetCommonMinus2 added in v0.52.0

func (s *Issue1431) SetCommonMinus2(val int)

SetCommonMinus2 sets the value of CommonMinus2.

func (*Issue1431) SetUniqueMinus2 added in v0.52.0

func (s *Issue1431) SetUniqueMinus2(val string)

SetUniqueMinus2 sets the value of UniqueMinus2.

func (*Issue1431) UnmarshalJSON

func (s *Issue1431) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Issue1432

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

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

Decode decodes Issue1432 from json.

func (Issue1432) Encode

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

Encode implements json.Marshaler.

func (Issue1432) GetCommonMinus1 added in v0.52.0

func (s Issue1432) GetCommonMinus1() string

GetCommonMinus1 returns the value of CommonMinus1.

func (Issue1432) GetCommonMinus2 added in v0.52.0

func (s Issue1432) GetCommonMinus2() int

GetCommonMinus2 returns the value of CommonMinus2.

func (Issue1432) GetCommonMinus3 added in v0.52.0

func (s Issue1432) GetCommonMinus3() OptInt

GetCommonMinus3 returns the value of CommonMinus3.

func (Issue1432) GetUniqueMinus3 added in v0.52.0

func (s Issue1432) GetUniqueMinus3() string

GetUniqueMinus3 returns the value of UniqueMinus3.

func (Issue1432) MarshalJSON

func (s Issue1432) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Issue1432) SetCommonMinus1 added in v0.52.0

func (s *Issue1432) SetCommonMinus1(val string)

SetCommonMinus1 sets the value of CommonMinus1.

func (*Issue1432) SetCommonMinus2 added in v0.52.0

func (s *Issue1432) SetCommonMinus2(val int)

SetCommonMinus2 sets the value of CommonMinus2.

func (*Issue1432) SetCommonMinus3 added in v0.52.0

func (s *Issue1432) SetCommonMinus3(val OptInt)

SetCommonMinus3 sets the value of CommonMinus3.

func (*Issue1432) SetUniqueMinus3 added in v0.52.0

func (s *Issue1432) SetUniqueMinus3(val string)

SetUniqueMinus3 sets the value of UniqueMinus3.

func (*Issue1432) UnmarshalJSON

func (s *Issue1432) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Issue1433

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

func (*Issue1433) Decode

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

Decode decodes Issue1433 from json.

func (Issue1433) Encode

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

Encode implements json.Marshaler.

func (Issue1433) GetCommonMinus3 added in v0.52.0

func (s Issue1433) GetCommonMinus3() OptInt

GetCommonMinus3 returns the value of CommonMinus3.

func (Issue1433) GetUniqueMinus4 added in v0.52.0

func (s Issue1433) GetUniqueMinus4() string

GetUniqueMinus4 returns the value of UniqueMinus4.

func (Issue1433) MarshalJSON

func (s Issue1433) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Issue1433) SetCommonMinus3 added in v0.52.0

func (s *Issue1433) SetCommonMinus3(val OptInt)

SetCommonMinus3 sets the value of CommonMinus3.

func (*Issue1433) SetUniqueMinus4 added in v0.52.0

func (s *Issue1433) SetUniqueMinus4(val string)

SetUniqueMinus4 sets the value of UniqueMinus4.

func (*Issue1433) UnmarshalJSON

func (s *Issue1433) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Issue143Type

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

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 MapWithPropertiesAdditional
}

Ref: #/components/schemas/MapWithProperties

func (*MapWithProperties) Decode

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

Decode decodes MapWithProperties from json.

func (MapWithProperties) Encode

func (s MapWithProperties) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (MapWithProperties) GetAdditionalProps added in v0.52.0

func (s MapWithProperties) GetAdditionalProps() MapWithPropertiesAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (MapWithProperties) GetInlinedSubMap added in v0.52.0

GetInlinedSubMap returns the value of InlinedSubMap.

func (MapWithProperties) GetMapValidation added in v0.52.0

func (s MapWithProperties) GetMapValidation() OptValidationStringMap

GetMapValidation returns the value of MapValidation.

func (MapWithProperties) GetOptional added in v0.52.0

func (s MapWithProperties) GetOptional() OptInt

GetOptional returns the value of Optional.

func (MapWithProperties) GetRequired added in v0.52.0

func (s MapWithProperties) GetRequired() int

GetRequired returns the value of Required.

func (MapWithProperties) GetSubMap added in v0.52.0

func (s MapWithProperties) GetSubMap() OptStringMap

GetSubMap returns the value of SubMap.

func (MapWithProperties) MarshalJSON

func (s MapWithProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MapWithProperties) SetAdditionalProps added in v0.52.0

func (s *MapWithProperties) SetAdditionalProps(val MapWithPropertiesAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*MapWithProperties) SetInlinedSubMap added in v0.52.0

func (s *MapWithProperties) SetInlinedSubMap(val OptMapWithPropertiesInlinedSubMap)

SetInlinedSubMap sets the value of InlinedSubMap.

func (*MapWithProperties) SetMapValidation added in v0.52.0

func (s *MapWithProperties) SetMapValidation(val OptValidationStringMap)

SetMapValidation sets the value of MapValidation.

func (*MapWithProperties) SetOptional added in v0.52.0

func (s *MapWithProperties) SetOptional(val OptInt)

SetOptional sets the value of Optional.

func (*MapWithProperties) SetRequired added in v0.52.0

func (s *MapWithProperties) SetRequired(val int)

SetRequired sets the value of Required.

func (*MapWithProperties) SetSubMap added in v0.52.0

func (s *MapWithProperties) SetSubMap(val OptStringMap)

SetSubMap sets the value of SubMap.

func (*MapWithProperties) UnmarshalJSON

func (s *MapWithProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (MapWithProperties) Validate

func (s MapWithProperties) Validate() error

type MapWithPropertiesAdditional

type MapWithPropertiesAdditional map[string]string

func (*MapWithPropertiesAdditional) Decode

Decode decodes MapWithPropertiesAdditional from json.

func (MapWithPropertiesAdditional) Encode

func (s MapWithPropertiesAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (MapWithPropertiesAdditional) MarshalJSON

func (s MapWithPropertiesAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MapWithPropertiesAdditional) UnmarshalJSON

func (s *MapWithPropertiesAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MapWithPropertiesInlinedSubMap

type MapWithPropertiesInlinedSubMap map[string]string

func (*MapWithPropertiesInlinedSubMap) Decode

Decode decodes MapWithPropertiesInlinedSubMap from json.

func (MapWithPropertiesInlinedSubMap) Encode

Encode implements json.Marshaler.

func (MapWithPropertiesInlinedSubMap) MarshalJSON

func (s MapWithPropertiesInlinedSubMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MapWithPropertiesInlinedSubMap) UnmarshalJSON

func (s *MapWithPropertiesInlinedSubMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MaxPropertiesTest

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

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

Decode decodes MaxPropertiesTest from json.

func (MaxPropertiesTest) Encode

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

Encode implements json.Marshaler.

func (MaxPropertiesTest) GetOptionalA added in v0.52.0

func (s MaxPropertiesTest) GetOptionalA() OptInt

GetOptionalA returns the value of OptionalA.

func (MaxPropertiesTest) GetOptionalB added in v0.52.0

func (s MaxPropertiesTest) GetOptionalB() OptInt

GetOptionalB returns the value of OptionalB.

func (MaxPropertiesTest) GetOptionalC added in v0.52.0

func (s MaxPropertiesTest) GetOptionalC() OptInt

GetOptionalC returns the value of OptionalC.

func (MaxPropertiesTest) GetRequired added in v0.52.0

func (s MaxPropertiesTest) GetRequired() int

GetRequired returns the value of Required.

func (MaxPropertiesTest) MarshalJSON

func (s MaxPropertiesTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MaxPropertiesTest) SetOptionalA added in v0.52.0

func (s *MaxPropertiesTest) SetOptionalA(val OptInt)

SetOptionalA sets the value of OptionalA.

func (*MaxPropertiesTest) SetOptionalB added in v0.52.0

func (s *MaxPropertiesTest) SetOptionalB(val OptInt)

SetOptionalB sets the value of OptionalB.

func (*MaxPropertiesTest) SetOptionalC added in v0.52.0

func (s *MaxPropertiesTest) SetOptionalC(val OptInt)

SetOptionalC sets the value of OptionalC.

func (*MaxPropertiesTest) SetRequired added in v0.52.0

func (s *MaxPropertiesTest) SetRequired(val int)

SetRequired sets the value of Required.

func (*MaxPropertiesTest) UnmarshalJSON

func (s *MaxPropertiesTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware added in v0.49.0

type Middleware = middleware.Middleware

Middleware is middleware type.

type NilInt

type NilInt struct {
	Value int
	Null  bool
}

NilInt is nullable int.

func NewNilInt

func NewNilInt(v int) NilInt

NewNilInt returns new NilInt with value set to v.

func (*NilInt) Decode

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

Decode decodes int from json.

func (NilInt) Encode

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

Encode encodes int as json.

func (NilInt) Get

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

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

func (NilInt) IsNull

func (o NilInt) IsNull() bool

IsSet returns true if value is Null.

func (NilInt) MarshalJSON

func (s NilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilInt) Or

func (o NilInt) Or(d int) int

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

func (*NilInt) SetTo

func (o *NilInt) SetTo(v int)

SetTo sets value to v.

func (*NilInt) UnmarshalJSON

func (s *NilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilIntStatusCode

type NilIntStatusCode struct {
	StatusCode int
	Response   NilInt
}

NilIntStatusCode wraps NilInt with StatusCode.

func (NilIntStatusCode) GetResponse added in v0.52.0

func (s NilIntStatusCode) GetResponse() NilInt

GetResponse returns the value of Response.

func (NilIntStatusCode) GetStatusCode added in v0.52.0

func (s NilIntStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*NilIntStatusCode) SetResponse added in v0.52.0

func (s *NilIntStatusCode) SetResponse(val NilInt)

SetResponse sets the value of Response.

func (*NilIntStatusCode) SetStatusCode added in v0.52.0

func (s *NilIntStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type NilNullableEnumsBoth

type NilNullableEnumsBoth struct {
	Value NullableEnumsBoth
	Null  bool
}

NilNullableEnumsBoth is nullable NullableEnumsBoth.

func NewNilNullableEnumsBoth

func NewNilNullableEnumsBoth(v NullableEnumsBoth) NilNullableEnumsBoth

NewNilNullableEnumsBoth returns new NilNullableEnumsBoth with value set to v.

func (*NilNullableEnumsBoth) Decode

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

Decode decodes NullableEnumsBoth from json.

func (NilNullableEnumsBoth) Encode

func (o NilNullableEnumsBoth) Encode(e *jx.Encoder)

Encode encodes NullableEnumsBoth as json.

func (NilNullableEnumsBoth) Get

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

func (NilNullableEnumsBoth) IsNull

func (o NilNullableEnumsBoth) IsNull() bool

IsSet returns true if value is Null.

func (NilNullableEnumsBoth) MarshalJSON

func (s NilNullableEnumsBoth) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilNullableEnumsBoth) Or

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

func (*NilNullableEnumsBoth) SetTo

SetTo sets value to v.

func (*NilNullableEnumsBoth) UnmarshalJSON

func (s *NilNullableEnumsBoth) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilNullableEnumsOnlyNullValue

type NilNullableEnumsOnlyNullValue struct {
	Value NullableEnumsOnlyNullValue
	Null  bool
}

NilNullableEnumsOnlyNullValue is nullable NullableEnumsOnlyNullValue.

func NewNilNullableEnumsOnlyNullValue

func NewNilNullableEnumsOnlyNullValue(v NullableEnumsOnlyNullValue) NilNullableEnumsOnlyNullValue

NewNilNullableEnumsOnlyNullValue returns new NilNullableEnumsOnlyNullValue with value set to v.

func (*NilNullableEnumsOnlyNullValue) Decode

Decode decodes NullableEnumsOnlyNullValue from json.

func (NilNullableEnumsOnlyNullValue) Encode

Encode encodes NullableEnumsOnlyNullValue as json.

func (NilNullableEnumsOnlyNullValue) Get

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

func (NilNullableEnumsOnlyNullValue) IsNull

IsSet returns true if value is Null.

func (NilNullableEnumsOnlyNullValue) MarshalJSON

func (s NilNullableEnumsOnlyNullValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilNullableEnumsOnlyNullValue) Or

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

func (*NilNullableEnumsOnlyNullValue) SetTo

SetTo sets value to v.

func (*NilNullableEnumsOnlyNullValue) UnmarshalJSON

func (s *NilNullableEnumsOnlyNullValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilNullableEnumsOnlyNullable

type NilNullableEnumsOnlyNullable struct {
	Value NullableEnumsOnlyNullable
	Null  bool
}

NilNullableEnumsOnlyNullable is nullable NullableEnumsOnlyNullable.

func NewNilNullableEnumsOnlyNullable

func NewNilNullableEnumsOnlyNullable(v NullableEnumsOnlyNullable) NilNullableEnumsOnlyNullable

NewNilNullableEnumsOnlyNullable returns new NilNullableEnumsOnlyNullable with value set to v.

func (*NilNullableEnumsOnlyNullable) Decode

Decode decodes NullableEnumsOnlyNullable from json.

func (NilNullableEnumsOnlyNullable) Encode

Encode encodes NullableEnumsOnlyNullable as json.

func (NilNullableEnumsOnlyNullable) Get

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

func (NilNullableEnumsOnlyNullable) IsNull

IsSet returns true if value is Null.

func (NilNullableEnumsOnlyNullable) MarshalJSON

func (s NilNullableEnumsOnlyNullable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilNullableEnumsOnlyNullable) Or

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

func (*NilNullableEnumsOnlyNullable) SetTo

SetTo sets value to v.

func (*NilNullableEnumsOnlyNullable) UnmarshalJSON

func (s *NilNullableEnumsOnlyNullable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s NilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilString) Or

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.

func (*NilString) UnmarshalJSON

func (s *NilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NoAdditionalPropertiesTest

type NoAdditionalPropertiesTest struct {
	Empty         *OnlyEmptyObject            `json:"empty"`
	OneProperty   OptOnePropertyObject        `json:"oneProperty"`
	OnlyPatterned OptOnlyPatternedPropsObject `json:"onlyPatterned"`
}

Ref: #/components/schemas/NoAdditionalPropertiesTest

func (*NoAdditionalPropertiesTest) Decode

Decode decodes NoAdditionalPropertiesTest from json.

func (NoAdditionalPropertiesTest) Encode

func (s NoAdditionalPropertiesTest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (NoAdditionalPropertiesTest) GetEmpty added in v0.52.0

GetEmpty returns the value of Empty.

func (NoAdditionalPropertiesTest) GetOneProperty added in v0.52.0

GetOneProperty returns the value of OneProperty.

func (NoAdditionalPropertiesTest) GetOnlyPatterned added in v0.52.0

GetOnlyPatterned returns the value of OnlyPatterned.

func (NoAdditionalPropertiesTest) MarshalJSON

func (s NoAdditionalPropertiesTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NoAdditionalPropertiesTest) SetEmpty added in v0.52.0

func (s *NoAdditionalPropertiesTest) SetEmpty(val *OnlyEmptyObject)

SetEmpty sets the value of Empty.

func (*NoAdditionalPropertiesTest) SetOneProperty added in v0.52.0

func (s *NoAdditionalPropertiesTest) SetOneProperty(val OptOnePropertyObject)

SetOneProperty sets the value of OneProperty.

func (*NoAdditionalPropertiesTest) SetOnlyPatterned added in v0.52.0

SetOnlyPatterned sets the value of OnlyPatterned.

func (*NoAdditionalPropertiesTest) UnmarshalJSON

func (s *NoAdditionalPropertiesTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NotFound

type NotFound struct{}

Ref: #/components/responses/NotFound

type NullValue

type NullValue struct{}

func (*NullValue) Decode

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

Decode decodes NullValue from json.

func (NullValue) Encode

func (s NullValue) Encode(e *jx.Encoder)

Encode encodes NullValue as json.

func (NullValue) MarshalJSON

func (s NullValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NullValue) UnmarshalJSON

func (s *NullValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NullableEnums

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

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

Decode decodes NullableEnums from json.

func (NullableEnums) Encode

func (s NullableEnums) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (NullableEnums) GetBoth added in v0.52.0

func (s NullableEnums) GetBoth() NilNullableEnumsBoth

GetBoth returns the value of Both.

func (NullableEnums) GetOnlyNullValue added in v0.52.0

func (s NullableEnums) GetOnlyNullValue() NilNullableEnumsOnlyNullValue

GetOnlyNullValue returns the value of OnlyNullValue.

func (NullableEnums) GetOnlyNullable added in v0.52.0

func (s NullableEnums) GetOnlyNullable() NilNullableEnumsOnlyNullable

GetOnlyNullable returns the value of OnlyNullable.

func (NullableEnums) MarshalJSON

func (s NullableEnums) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NullableEnums) SetBoth added in v0.52.0

func (s *NullableEnums) SetBoth(val NilNullableEnumsBoth)

SetBoth sets the value of Both.

func (*NullableEnums) SetOnlyNullValue added in v0.52.0

func (s *NullableEnums) SetOnlyNullValue(val NilNullableEnumsOnlyNullValue)

SetOnlyNullValue sets the value of OnlyNullValue.

func (*NullableEnums) SetOnlyNullable added in v0.52.0

func (s *NullableEnums) SetOnlyNullable(val NilNullableEnumsOnlyNullable)

SetOnlyNullable sets the value of OnlyNullable.

func (*NullableEnums) UnmarshalJSON

func (s *NullableEnums) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (NullableEnums) Validate

func (s NullableEnums) Validate() error

type NullableEnumsBoth

type NullableEnumsBoth string

Must be nullable.

const (
	NullableEnumsBothAsc  NullableEnumsBoth = "asc"
	NullableEnumsBothDesc NullableEnumsBoth = "desc"
)

func (*NullableEnumsBoth) Decode

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

Decode decodes NullableEnumsBoth from json.

func (NullableEnumsBoth) Encode

func (s NullableEnumsBoth) Encode(e *jx.Encoder)

Encode encodes NullableEnumsBoth as json.

func (NullableEnumsBoth) MarshalJSON

func (s NullableEnumsBoth) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NullableEnumsBoth) UnmarshalJSON

func (s *NullableEnumsBoth) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (NullableEnumsBoth) Validate

func (s NullableEnumsBoth) Validate() error

type NullableEnumsOnlyNullValue

type NullableEnumsOnlyNullValue string

Must be nullable.

const (
	NullableEnumsOnlyNullValueAsc  NullableEnumsOnlyNullValue = "asc"
	NullableEnumsOnlyNullValueDesc NullableEnumsOnlyNullValue = "desc"
)

func (*NullableEnumsOnlyNullValue) Decode

Decode decodes NullableEnumsOnlyNullValue from json.

func (NullableEnumsOnlyNullValue) Encode

func (s NullableEnumsOnlyNullValue) Encode(e *jx.Encoder)

Encode encodes NullableEnumsOnlyNullValue as json.

func (NullableEnumsOnlyNullValue) MarshalJSON

func (s NullableEnumsOnlyNullValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NullableEnumsOnlyNullValue) UnmarshalJSON

func (s *NullableEnumsOnlyNullValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (NullableEnumsOnlyNullValue) Validate

func (s NullableEnumsOnlyNullValue) Validate() error

type NullableEnumsOnlyNullable

type NullableEnumsOnlyNullable string

Must not be nullable.

const (
	NullableEnumsOnlyNullableAsc  NullableEnumsOnlyNullable = "asc"
	NullableEnumsOnlyNullableDesc NullableEnumsOnlyNullable = "desc"
)

func (*NullableEnumsOnlyNullable) Decode

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

Decode decodes NullableEnumsOnlyNullable from json.

func (NullableEnumsOnlyNullable) Encode

func (s NullableEnumsOnlyNullable) Encode(e *jx.Encoder)

Encode encodes NullableEnumsOnlyNullable as json.

func (NullableEnumsOnlyNullable) MarshalJSON

func (s NullableEnumsOnlyNullable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NullableEnumsOnlyNullable) UnmarshalJSON

func (s *NullableEnumsOnlyNullable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (NullableEnumsOnlyNullable) Validate

func (s NullableEnumsOnlyNullable) Validate() error

type OneOfBooleanSumNullables

type OneOfBooleanSumNullables struct {
	Type           OneOfBooleanSumNullablesType // switch on this field
	Bool           bool
	OneOfNullables OneOfNullables
}

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

func NewBoolOneOfBooleanSumNullables

func NewBoolOneOfBooleanSumNullables(v bool) OneOfBooleanSumNullables

NewBoolOneOfBooleanSumNullables returns new OneOfBooleanSumNullables from bool.

func NewOneOfNullablesOneOfBooleanSumNullables

func NewOneOfNullablesOneOfBooleanSumNullables(v OneOfNullables) OneOfBooleanSumNullables

NewOneOfNullablesOneOfBooleanSumNullables returns new OneOfBooleanSumNullables from OneOfNullables.

func (*OneOfBooleanSumNullables) Decode

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

Decode decodes OneOfBooleanSumNullables from json.

func (OneOfBooleanSumNullables) Encode

func (s OneOfBooleanSumNullables) Encode(e *jx.Encoder)

Encode encodes OneOfBooleanSumNullables as json.

func (OneOfBooleanSumNullables) GetBool

func (s OneOfBooleanSumNullables) GetBool() (v bool, ok bool)

GetBool returns bool and true boolean if OneOfBooleanSumNullables is bool.

func (OneOfBooleanSumNullables) GetOneOfNullables

func (s OneOfBooleanSumNullables) GetOneOfNullables() (v OneOfNullables, ok bool)

GetOneOfNullables returns OneOfNullables and true boolean if OneOfBooleanSumNullables is OneOfNullables.

func (OneOfBooleanSumNullables) IsBool

func (s OneOfBooleanSumNullables) IsBool() bool

IsBool reports whether OneOfBooleanSumNullables is bool.

func (OneOfBooleanSumNullables) IsOneOfNullables

func (s OneOfBooleanSumNullables) IsOneOfNullables() bool

IsOneOfNullables reports whether OneOfBooleanSumNullables is OneOfNullables.

func (OneOfBooleanSumNullables) MarshalJSON

func (s OneOfBooleanSumNullables) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfBooleanSumNullables) SetBool

func (s *OneOfBooleanSumNullables) SetBool(v bool)

SetBool sets OneOfBooleanSumNullables to bool.

func (*OneOfBooleanSumNullables) SetOneOfNullables

func (s *OneOfBooleanSumNullables) SetOneOfNullables(v OneOfNullables)

SetOneOfNullables sets OneOfBooleanSumNullables to OneOfNullables.

func (*OneOfBooleanSumNullables) UnmarshalJSON

func (s *OneOfBooleanSumNullables) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfBooleanSumNullables) Validate

func (s OneOfBooleanSumNullables) Validate() error

type OneOfBooleanSumNullablesType

type OneOfBooleanSumNullablesType string

OneOfBooleanSumNullablesType is oneOf type of OneOfBooleanSumNullables.

const (
	BoolOneOfBooleanSumNullables           OneOfBooleanSumNullablesType = "bool"
	OneOfNullablesOneOfBooleanSumNullables OneOfBooleanSumNullablesType = "OneOfNullables"
)

Possible values for OneOfBooleanSumNullablesType.

type OneOfBugs

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

Ref: #/components/schemas/OneOfBugs

func (*OneOfBugs) Decode

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

Decode decodes OneOfBugs from json.

func (OneOfBugs) Encode

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

Encode implements json.Marshaler.

func (OneOfBugs) GetAdditionalMinusFields added in v0.52.0

func (s OneOfBugs) GetAdditionalMinusFields() OneVariantHasNoUniqueFields

GetAdditionalMinusFields returns the value of AdditionalMinusFields.

func (OneOfBugs) GetIssue143 added in v0.52.0

func (s OneOfBugs) GetIssue143() Issue143

GetIssue143 returns the value of Issue143.

func (OneOfBugs) GetOneOfMinusMappingMinusReference added in v0.52.0

func (s OneOfBugs) GetOneOfMinusMappingMinusReference() OptOneOfMappingReference

GetOneOfMinusMappingMinusReference returns the value of OneOfMinusMappingMinusReference.

func (OneOfBugs) GetOneOfMinusUUIDMinusIntMinusEnum added in v0.52.0

func (s OneOfBugs) GetOneOfMinusUUIDMinusIntMinusEnum() OptOneOfUUIDAndIntEnum

GetOneOfMinusUUIDMinusIntMinusEnum returns the value of OneOfMinusUUIDMinusIntMinusEnum.

func (OneOfBugs) MarshalJSON

func (s OneOfBugs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfBugs) SetAdditionalMinusFields added in v0.52.0

func (s *OneOfBugs) SetAdditionalMinusFields(val OneVariantHasNoUniqueFields)

SetAdditionalMinusFields sets the value of AdditionalMinusFields.

func (*OneOfBugs) SetIssue143 added in v0.52.0

func (s *OneOfBugs) SetIssue143(val Issue143)

SetIssue143 sets the value of Issue143.

func (*OneOfBugs) SetOneOfMinusMappingMinusReference added in v0.52.0

func (s *OneOfBugs) SetOneOfMinusMappingMinusReference(val OptOneOfMappingReference)

SetOneOfMinusMappingMinusReference sets the value of OneOfMinusMappingMinusReference.

func (*OneOfBugs) SetOneOfMinusUUIDMinusIntMinusEnum added in v0.52.0

func (s *OneOfBugs) SetOneOfMinusUUIDMinusIntMinusEnum(val OptOneOfUUIDAndIntEnum)

SetOneOfMinusUUIDMinusIntMinusEnum sets the value of OneOfMinusUUIDMinusIntMinusEnum.

func (*OneOfBugs) UnmarshalJSON

func (s *OneOfBugs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfBugs) Validate

func (s OneOfBugs) Validate() error

type OneOfMappingReference

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

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

func NewOneOfMappingReferenceAOneOfMappingReference

func NewOneOfMappingReferenceAOneOfMappingReference(v OneOfMappingReferenceA) OneOfMappingReference

NewOneOfMappingReferenceAOneOfMappingReference returns new OneOfMappingReference from OneOfMappingReferenceA.

func NewOneOfMappingReferenceBOneOfMappingReference

func NewOneOfMappingReferenceBOneOfMappingReference(v OneOfMappingReferenceB) OneOfMappingReference

NewOneOfMappingReferenceBOneOfMappingReference returns new OneOfMappingReference from OneOfMappingReferenceB.

func (*OneOfMappingReference) Decode

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

Decode decodes OneOfMappingReference from json.

func (OneOfMappingReference) Encode

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

Encode encodes OneOfMappingReference as json.

func (OneOfMappingReference) GetOneOfMappingReferenceA

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

GetOneOfMappingReferenceA returns OneOfMappingReferenceA and true boolean if OneOfMappingReference is OneOfMappingReferenceA.

func (OneOfMappingReference) GetOneOfMappingReferenceB

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

GetOneOfMappingReferenceB returns OneOfMappingReferenceB and true boolean if OneOfMappingReference is OneOfMappingReferenceB.

func (OneOfMappingReference) IsOneOfMappingReferenceA

func (s OneOfMappingReference) IsOneOfMappingReferenceA() bool

IsOneOfMappingReferenceA reports whether OneOfMappingReference is OneOfMappingReferenceA.

func (OneOfMappingReference) IsOneOfMappingReferenceB

func (s OneOfMappingReference) IsOneOfMappingReferenceB() bool

IsOneOfMappingReferenceB reports whether OneOfMappingReference is OneOfMappingReferenceB.

func (OneOfMappingReference) MarshalJSON

func (s OneOfMappingReference) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfMappingReference) SetOneOfMappingReferenceA

func (s *OneOfMappingReference) SetOneOfMappingReferenceA(v OneOfMappingReferenceA)

SetOneOfMappingReferenceA sets OneOfMappingReference to OneOfMappingReferenceA.

func (*OneOfMappingReference) SetOneOfMappingReferenceB

func (s *OneOfMappingReference) SetOneOfMappingReferenceB(v OneOfMappingReferenceB)

SetOneOfMappingReferenceB sets OneOfMappingReference to OneOfMappingReferenceB.

func (*OneOfMappingReference) UnmarshalJSON

func (s *OneOfMappingReference) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneOfMappingReferenceA

type OneOfMappingReferenceA struct {
	Description OptString `json:"description"`
}

Ref: #/components/schemas/OneOfMappingReferenceA

func (*OneOfMappingReferenceA) Decode

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

Decode decodes OneOfMappingReferenceA from json.

func (OneOfMappingReferenceA) Encode

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

Encode implements json.Marshaler.

func (OneOfMappingReferenceA) GetDescription added in v0.52.0

func (s OneOfMappingReferenceA) GetDescription() OptString

GetDescription returns the value of Description.

func (OneOfMappingReferenceA) MarshalJSON

func (s OneOfMappingReferenceA) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfMappingReferenceA) SetDescription added in v0.52.0

func (s *OneOfMappingReferenceA) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*OneOfMappingReferenceA) UnmarshalJSON

func (s *OneOfMappingReferenceA) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneOfMappingReferenceB

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

Ref: #/components/schemas/OneOfMappingReferenceB

func (*OneOfMappingReferenceB) Decode

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

Decode decodes OneOfMappingReferenceB from json.

func (OneOfMappingReferenceB) Encode

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

Encode implements json.Marshaler.

func (OneOfMappingReferenceB) GetCode added in v0.52.0

func (s OneOfMappingReferenceB) GetCode() OptInt32

GetCode returns the value of Code.

func (OneOfMappingReferenceB) GetData added in v0.52.0

GetData returns the value of Data.

func (OneOfMappingReferenceB) GetInfo added in v0.52.0

func (s OneOfMappingReferenceB) GetInfo() OptString

GetInfo returns the value of Info.

func (OneOfMappingReferenceB) MarshalJSON

func (s OneOfMappingReferenceB) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfMappingReferenceB) SetCode added in v0.52.0

func (s *OneOfMappingReferenceB) SetCode(val OptInt32)

SetCode sets the value of Code.

func (*OneOfMappingReferenceB) SetData added in v0.52.0

SetData sets the value of Data.

func (*OneOfMappingReferenceB) SetInfo added in v0.52.0

func (s *OneOfMappingReferenceB) SetInfo(val OptString)

SetInfo sets the value of Info.

func (*OneOfMappingReferenceB) UnmarshalJSON

func (s *OneOfMappingReferenceB) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneOfMappingReferenceBData

type OneOfMappingReferenceBData struct{}

func (*OneOfMappingReferenceBData) Decode

Decode decodes OneOfMappingReferenceBData from json.

func (OneOfMappingReferenceBData) Encode

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

Encode implements json.Marshaler.

func (OneOfMappingReferenceBData) MarshalJSON

func (s OneOfMappingReferenceBData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfMappingReferenceBData) UnmarshalJSON

func (s *OneOfMappingReferenceBData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneOfMappingReferenceType

type OneOfMappingReferenceType string

OneOfMappingReferenceType is oneOf type of OneOfMappingReference.

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

Possible values for OneOfMappingReferenceType.

type OneOfNullables

type OneOfNullables struct {
	Type        OneOfNullablesType // switch on this field
	Null        struct{}
	String      string
	Int         int
	StringArray []string
}

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

func NewIntOneOfNullables

func NewIntOneOfNullables(v int) OneOfNullables

NewIntOneOfNullables returns new OneOfNullables from int.

func NewNullOneOfNullables

func NewNullOneOfNullables(v struct{}) OneOfNullables

NewNullOneOfNullables returns new OneOfNullables from struct{}.

func NewStringArrayOneOfNullables

func NewStringArrayOneOfNullables(v []string) OneOfNullables

NewStringArrayOneOfNullables returns new OneOfNullables from []string.

func NewStringOneOfNullables

func NewStringOneOfNullables(v string) OneOfNullables

NewStringOneOfNullables returns new OneOfNullables from string.

func (*OneOfNullables) Decode

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

Decode decodes OneOfNullables from json.

func (OneOfNullables) Encode

func (s OneOfNullables) Encode(e *jx.Encoder)

Encode encodes OneOfNullables as json.

func (OneOfNullables) GetInt

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

GetInt returns int and true boolean if OneOfNullables is int.

func (OneOfNullables) GetNull

func (s OneOfNullables) GetNull() (v struct{}, ok bool)

GetNull returns struct{} and true boolean if OneOfNullables is struct{}.

func (OneOfNullables) GetString

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

GetString returns string and true boolean if OneOfNullables is string.

func (OneOfNullables) GetStringArray

func (s OneOfNullables) GetStringArray() (v []string, ok bool)

GetStringArray returns []string and true boolean if OneOfNullables is []string.

func (OneOfNullables) IsInt

func (s OneOfNullables) IsInt() bool

IsInt reports whether OneOfNullables is int.

func (OneOfNullables) IsNull

func (s OneOfNullables) IsNull() bool

IsNull reports whether OneOfNullables is struct{}.

func (OneOfNullables) IsString

func (s OneOfNullables) IsString() bool

IsString reports whether OneOfNullables is string.

func (OneOfNullables) IsStringArray

func (s OneOfNullables) IsStringArray() bool

IsStringArray reports whether OneOfNullables is []string.

func (OneOfNullables) MarshalJSON

func (s OneOfNullables) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfNullables) SetInt

func (s *OneOfNullables) SetInt(v int)

SetInt sets OneOfNullables to int.

func (*OneOfNullables) SetNull

func (s *OneOfNullables) SetNull(v struct{})

SetNull sets OneOfNullables to struct{}.

func (*OneOfNullables) SetString

func (s *OneOfNullables) SetString(v string)

SetString sets OneOfNullables to string.

func (*OneOfNullables) SetStringArray

func (s *OneOfNullables) SetStringArray(v []string)

SetStringArray sets OneOfNullables to []string.

func (*OneOfNullables) UnmarshalJSON

func (s *OneOfNullables) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfNullables) Validate

func (s OneOfNullables) Validate() error

type OneOfNullablesType

type OneOfNullablesType string

OneOfNullablesType is oneOf type of OneOfNullables.

const (
	NullOneOfNullables        OneOfNullablesType = "struct{}"
	StringOneOfNullables      OneOfNullablesType = "string"
	IntOneOfNullables         OneOfNullablesType = "int"
	StringArrayOneOfNullables OneOfNullablesType = "[]string"
)

Possible values for OneOfNullablesType.

type OneOfUUIDAndIntEnum

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

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

func NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum

func NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum(v OneOfUUIDAndIntEnum1) OneOfUUIDAndIntEnum

NewOneOfUUIDAndIntEnum1OneOfUUIDAndIntEnum returns new OneOfUUIDAndIntEnum from OneOfUUIDAndIntEnum1.

func NewUUIDOneOfUUIDAndIntEnum

func NewUUIDOneOfUUIDAndIntEnum(v uuid.UUID) OneOfUUIDAndIntEnum

NewUUIDOneOfUUIDAndIntEnum returns new OneOfUUIDAndIntEnum from uuid.UUID.

func (*OneOfUUIDAndIntEnum) Decode

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

Decode decodes OneOfUUIDAndIntEnum from json.

func (OneOfUUIDAndIntEnum) Encode

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

Encode encodes OneOfUUIDAndIntEnum as json.

func (OneOfUUIDAndIntEnum) GetOneOfUUIDAndIntEnum1

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

GetOneOfUUIDAndIntEnum1 returns OneOfUUIDAndIntEnum1 and true boolean if OneOfUUIDAndIntEnum is OneOfUUIDAndIntEnum1.

func (OneOfUUIDAndIntEnum) GetUUID

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

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

func (OneOfUUIDAndIntEnum) IsOneOfUUIDAndIntEnum1

func (s OneOfUUIDAndIntEnum) IsOneOfUUIDAndIntEnum1() bool

IsOneOfUUIDAndIntEnum1 reports whether OneOfUUIDAndIntEnum is OneOfUUIDAndIntEnum1.

func (OneOfUUIDAndIntEnum) IsUUID

func (s OneOfUUIDAndIntEnum) IsUUID() bool

IsUUID reports whether OneOfUUIDAndIntEnum is uuid.UUID.

func (OneOfUUIDAndIntEnum) MarshalJSON

func (s OneOfUUIDAndIntEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfUUIDAndIntEnum) SetOneOfUUIDAndIntEnum1

func (s *OneOfUUIDAndIntEnum) SetOneOfUUIDAndIntEnum1(v OneOfUUIDAndIntEnum1)

SetOneOfUUIDAndIntEnum1 sets OneOfUUIDAndIntEnum to OneOfUUIDAndIntEnum1.

func (*OneOfUUIDAndIntEnum) SetUUID

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

SetUUID sets OneOfUUIDAndIntEnum to uuid.UUID.

func (*OneOfUUIDAndIntEnum) UnmarshalJSON

func (s *OneOfUUIDAndIntEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfUUIDAndIntEnum) Validate

func (s OneOfUUIDAndIntEnum) Validate() error

type OneOfUUIDAndIntEnum1

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

func (*OneOfUUIDAndIntEnum1) Decode

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

Decode decodes OneOfUUIDAndIntEnum1 from json.

func (OneOfUUIDAndIntEnum1) Encode

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

Encode encodes OneOfUUIDAndIntEnum1 as json.

func (OneOfUUIDAndIntEnum1) MarshalJSON

func (s OneOfUUIDAndIntEnum1) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfUUIDAndIntEnum1) UnmarshalJSON

func (s *OneOfUUIDAndIntEnum1) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfUUIDAndIntEnum1) Validate

func (s OneOfUUIDAndIntEnum1) Validate() error

type OneOfUUIDAndIntEnumType

type OneOfUUIDAndIntEnumType string

OneOfUUIDAndIntEnumType is oneOf type of OneOfUUIDAndIntEnum.

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

Possible values for OneOfUUIDAndIntEnumType.

type OneOfWithNullable

type OneOfWithNullable struct {
	Type        OneOfWithNullableType // switch on this field
	Null        struct{}
	String      string
	Int         int
	StringArray []string
}

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

func NewIntOneOfWithNullable

func NewIntOneOfWithNullable(v int) OneOfWithNullable

NewIntOneOfWithNullable returns new OneOfWithNullable from int.

func NewNullOneOfWithNullable

func NewNullOneOfWithNullable(v struct{}) OneOfWithNullable

NewNullOneOfWithNullable returns new OneOfWithNullable from struct{}.

func NewStringArrayOneOfWithNullable

func NewStringArrayOneOfWithNullable(v []string) OneOfWithNullable

NewStringArrayOneOfWithNullable returns new OneOfWithNullable from []string.

func NewStringOneOfWithNullable

func NewStringOneOfWithNullable(v string) OneOfWithNullable

NewStringOneOfWithNullable returns new OneOfWithNullable from string.

func (*OneOfWithNullable) Decode

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

Decode decodes OneOfWithNullable from json.

func (OneOfWithNullable) Encode

func (s OneOfWithNullable) Encode(e *jx.Encoder)

Encode encodes OneOfWithNullable as json.

func (OneOfWithNullable) GetInt

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

GetInt returns int and true boolean if OneOfWithNullable is int.

func (OneOfWithNullable) GetNull

func (s OneOfWithNullable) GetNull() (v struct{}, ok bool)

GetNull returns struct{} and true boolean if OneOfWithNullable is struct{}.

func (OneOfWithNullable) GetString

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

GetString returns string and true boolean if OneOfWithNullable is string.

func (OneOfWithNullable) GetStringArray

func (s OneOfWithNullable) GetStringArray() (v []string, ok bool)

GetStringArray returns []string and true boolean if OneOfWithNullable is []string.

func (OneOfWithNullable) IsInt

func (s OneOfWithNullable) IsInt() bool

IsInt reports whether OneOfWithNullable is int.

func (OneOfWithNullable) IsNull

func (s OneOfWithNullable) IsNull() bool

IsNull reports whether OneOfWithNullable is struct{}.

func (OneOfWithNullable) IsString

func (s OneOfWithNullable) IsString() bool

IsString reports whether OneOfWithNullable is string.

func (OneOfWithNullable) IsStringArray

func (s OneOfWithNullable) IsStringArray() bool

IsStringArray reports whether OneOfWithNullable is []string.

func (OneOfWithNullable) MarshalJSON

func (s OneOfWithNullable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneOfWithNullable) SetInt

func (s *OneOfWithNullable) SetInt(v int)

SetInt sets OneOfWithNullable to int.

func (*OneOfWithNullable) SetNull

func (s *OneOfWithNullable) SetNull(v struct{})

SetNull sets OneOfWithNullable to struct{}.

func (*OneOfWithNullable) SetString

func (s *OneOfWithNullable) SetString(v string)

SetString sets OneOfWithNullable to string.

func (*OneOfWithNullable) SetStringArray

func (s *OneOfWithNullable) SetStringArray(v []string)

SetStringArray sets OneOfWithNullable to []string.

func (*OneOfWithNullable) UnmarshalJSON

func (s *OneOfWithNullable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OneOfWithNullable) Validate

func (s OneOfWithNullable) Validate() error

type OneOfWithNullableType

type OneOfWithNullableType string

OneOfWithNullableType is oneOf type of OneOfWithNullable.

const (
	NullOneOfWithNullable        OneOfWithNullableType = "struct{}"
	StringOneOfWithNullable      OneOfWithNullableType = "string"
	IntOneOfWithNullable         OneOfWithNullableType = "int"
	StringArrayOneOfWithNullable OneOfWithNullableType = "[]string"
)

Possible values for OneOfWithNullableType.

type OnePropertyObject

type OnePropertyObject struct {
	Foo string `json:"foo"`
}

Ref: #/components/schemas/OnePropertyObject

func (*OnePropertyObject) Decode

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

Decode decodes OnePropertyObject from json.

func (OnePropertyObject) Encode

func (s OnePropertyObject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (OnePropertyObject) GetFoo added in v0.52.0

func (s OnePropertyObject) GetFoo() string

GetFoo returns the value of Foo.

func (OnePropertyObject) MarshalJSON

func (s OnePropertyObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OnePropertyObject) SetFoo added in v0.52.0

func (s *OnePropertyObject) SetFoo(val string)

SetFoo sets the value of Foo.

func (*OnePropertyObject) UnmarshalJSON

func (s *OnePropertyObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneVariantHasNoUniqueFields

type OneVariantHasNoUniqueFields struct {
	Type                         OneVariantHasNoUniqueFieldsType // switch on this field
	OneVariantHasNoUniqueFields0 OneVariantHasNoUniqueFields0
	OneVariantHasNoUniqueFields1 OneVariantHasNoUniqueFields1
}

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

func NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields

func NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields(v OneVariantHasNoUniqueFields0) OneVariantHasNoUniqueFields

NewOneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields returns new OneVariantHasNoUniqueFields from OneVariantHasNoUniqueFields0.

func NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields

func NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields(v OneVariantHasNoUniqueFields1) OneVariantHasNoUniqueFields

NewOneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields returns new OneVariantHasNoUniqueFields from OneVariantHasNoUniqueFields1.

func (*OneVariantHasNoUniqueFields) Decode

Decode decodes OneVariantHasNoUniqueFields from json.

func (OneVariantHasNoUniqueFields) Encode

func (s OneVariantHasNoUniqueFields) Encode(e *jx.Encoder)

Encode encodes OneVariantHasNoUniqueFields as json.

func (OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields0

func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields0() (v OneVariantHasNoUniqueFields0, ok bool)

GetOneVariantHasNoUniqueFields0 returns OneVariantHasNoUniqueFields0 and true boolean if OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields0.

func (OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields1

func (s OneVariantHasNoUniqueFields) GetOneVariantHasNoUniqueFields1() (v OneVariantHasNoUniqueFields1, ok bool)

GetOneVariantHasNoUniqueFields1 returns OneVariantHasNoUniqueFields1 and true boolean if OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields1.

func (OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields0

func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields0() bool

IsOneVariantHasNoUniqueFields0 reports whether OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields0.

func (OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields1

func (s OneVariantHasNoUniqueFields) IsOneVariantHasNoUniqueFields1() bool

IsOneVariantHasNoUniqueFields1 reports whether OneVariantHasNoUniqueFields is OneVariantHasNoUniqueFields1.

func (OneVariantHasNoUniqueFields) MarshalJSON

func (s OneVariantHasNoUniqueFields) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields0

func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields0(v OneVariantHasNoUniqueFields0)

SetOneVariantHasNoUniqueFields0 sets OneVariantHasNoUniqueFields to OneVariantHasNoUniqueFields0.

func (*OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields1

func (s *OneVariantHasNoUniqueFields) SetOneVariantHasNoUniqueFields1(v OneVariantHasNoUniqueFields1)

SetOneVariantHasNoUniqueFields1 sets OneVariantHasNoUniqueFields to OneVariantHasNoUniqueFields1.

func (*OneVariantHasNoUniqueFields) UnmarshalJSON

func (s *OneVariantHasNoUniqueFields) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneVariantHasNoUniqueFields0

type OneVariantHasNoUniqueFields0 struct {
	A string `json:"a"`
	B OptInt `json:"b"`
	C string `json:"c"`
}

func (*OneVariantHasNoUniqueFields0) Decode

Decode decodes OneVariantHasNoUniqueFields0 from json.

func (OneVariantHasNoUniqueFields0) Encode

Encode implements json.Marshaler.

func (OneVariantHasNoUniqueFields0) GetA added in v0.52.0

GetA returns the value of A.

func (OneVariantHasNoUniqueFields0) GetB added in v0.52.0

GetB returns the value of B.

func (OneVariantHasNoUniqueFields0) GetC added in v0.52.0

GetC returns the value of C.

func (OneVariantHasNoUniqueFields0) MarshalJSON

func (s OneVariantHasNoUniqueFields0) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneVariantHasNoUniqueFields0) SetA added in v0.52.0

func (s *OneVariantHasNoUniqueFields0) SetA(val string)

SetA sets the value of A.

func (*OneVariantHasNoUniqueFields0) SetB added in v0.52.0

func (s *OneVariantHasNoUniqueFields0) SetB(val OptInt)

SetB sets the value of B.

func (*OneVariantHasNoUniqueFields0) SetC added in v0.52.0

func (s *OneVariantHasNoUniqueFields0) SetC(val string)

SetC sets the value of C.

func (*OneVariantHasNoUniqueFields0) UnmarshalJSON

func (s *OneVariantHasNoUniqueFields0) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneVariantHasNoUniqueFields1

type OneVariantHasNoUniqueFields1 struct {
	A string `json:"a"`
	B OptInt `json:"b"`
	C string `json:"c"`
	D OptInt `json:"d"`
}

func (*OneVariantHasNoUniqueFields1) Decode

Decode decodes OneVariantHasNoUniqueFields1 from json.

func (OneVariantHasNoUniqueFields1) Encode

Encode implements json.Marshaler.

func (OneVariantHasNoUniqueFields1) GetA added in v0.52.0

GetA returns the value of A.

func (OneVariantHasNoUniqueFields1) GetB added in v0.52.0

GetB returns the value of B.

func (OneVariantHasNoUniqueFields1) GetC added in v0.52.0

GetC returns the value of C.

func (OneVariantHasNoUniqueFields1) GetD added in v0.52.0

GetD returns the value of D.

func (OneVariantHasNoUniqueFields1) MarshalJSON

func (s OneVariantHasNoUniqueFields1) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OneVariantHasNoUniqueFields1) SetA added in v0.52.0

func (s *OneVariantHasNoUniqueFields1) SetA(val string)

SetA sets the value of A.

func (*OneVariantHasNoUniqueFields1) SetB added in v0.52.0

func (s *OneVariantHasNoUniqueFields1) SetB(val OptInt)

SetB sets the value of B.

func (*OneVariantHasNoUniqueFields1) SetC added in v0.52.0

func (s *OneVariantHasNoUniqueFields1) SetC(val string)

SetC sets the value of C.

func (*OneVariantHasNoUniqueFields1) SetD added in v0.52.0

func (s *OneVariantHasNoUniqueFields1) SetD(val OptInt)

SetD sets the value of D.

func (*OneVariantHasNoUniqueFields1) UnmarshalJSON

func (s *OneVariantHasNoUniqueFields1) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OneVariantHasNoUniqueFieldsType

type OneVariantHasNoUniqueFieldsType string

OneVariantHasNoUniqueFieldsType is oneOf type of OneVariantHasNoUniqueFields.

const (
	OneVariantHasNoUniqueFields0OneVariantHasNoUniqueFields OneVariantHasNoUniqueFieldsType = "OneVariantHasNoUniqueFields0"
	OneVariantHasNoUniqueFields1OneVariantHasNoUniqueFields OneVariantHasNoUniqueFieldsType = "OneVariantHasNoUniqueFields1"
)

Possible values for OneVariantHasNoUniqueFieldsType.

type OneofBugOK

type OneofBugOK struct{}

OneofBugOK is response for OneofBug operation.

type OnlyEmptyObject

type OnlyEmptyObject struct{}

Ref: #/components/schemas/OnlyEmptyObject

func (*OnlyEmptyObject) Decode

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

Decode decodes OnlyEmptyObject from json.

func (OnlyEmptyObject) Encode

func (s OnlyEmptyObject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (OnlyEmptyObject) MarshalJSON

func (s OnlyEmptyObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OnlyEmptyObject) UnmarshalJSON

func (s *OnlyEmptyObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OnlyPatternedPropsObject

type OnlyPatternedPropsObject map[string]string

Ref: #/components/schemas/OnlyPatternedPropsObject

func (*OnlyPatternedPropsObject) Decode

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

Decode decodes OnlyPatternedPropsObject from json.

func (OnlyPatternedPropsObject) Encode

func (s OnlyPatternedPropsObject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (OnlyPatternedPropsObject) MarshalJSON

func (s OnlyPatternedPropsObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OnlyPatternedPropsObject) UnmarshalJSON

func (s *OnlyPatternedPropsObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnyOfTest

type OptAnyOfTest struct {
	Value AnyOfTest
	Set   bool
}

OptAnyOfTest is optional AnyOfTest.

func NewOptAnyOfTest

func NewOptAnyOfTest(v AnyOfTest) OptAnyOfTest

NewOptAnyOfTest returns new OptAnyOfTest with value set to v.

func (*OptAnyOfTest) Decode

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

Decode decodes AnyOfTest from json.

func (OptAnyOfTest) Encode

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

Encode encodes AnyOfTest as json.

func (OptAnyOfTest) Get

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

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

func (OptAnyOfTest) IsSet

func (o OptAnyOfTest) IsSet() bool

IsSet returns true if OptAnyOfTest was set.

func (OptAnyOfTest) MarshalJSON

func (s OptAnyOfTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnyOfTest) Or

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

func (*OptAnyOfTest) Reset

func (o *OptAnyOfTest) Reset()

Reset unsets value.

func (*OptAnyOfTest) SetTo

func (o *OptAnyOfTest) SetTo(v AnyOfTest)

SetTo sets value to v.

func (*OptAnyOfTest) UnmarshalJSON

func (s *OptAnyOfTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnyTest

type OptAnyTest struct {
	Value AnyTest
	Set   bool
}

OptAnyTest is optional AnyTest.

func NewOptAnyTest

func NewOptAnyTest(v AnyTest) OptAnyTest

NewOptAnyTest returns new OptAnyTest with value set to v.

func (*OptAnyTest) Decode

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

Decode decodes AnyTest from json.

func (OptAnyTest) Encode

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

Encode encodes AnyTest as json.

func (OptAnyTest) Get

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

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

func (OptAnyTest) IsSet

func (o OptAnyTest) IsSet() bool

IsSet returns true if OptAnyTest was set.

func (OptAnyTest) MarshalJSON

func (s OptAnyTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnyTest) Or

func (o OptAnyTest) Or(d AnyTest) AnyTest

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

func (*OptAnyTest) Reset

func (o *OptAnyTest) Reset()

Reset unsets value.

func (*OptAnyTest) SetTo

func (o *OptAnyTest) SetTo(v AnyTest)

SetTo sets value to v.

func (*OptAnyTest) UnmarshalJSON

func (s *OptAnyTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnyTestAnyMap

type OptAnyTestAnyMap struct {
	Value AnyTestAnyMap
	Set   bool
}

OptAnyTestAnyMap is optional AnyTestAnyMap.

func NewOptAnyTestAnyMap

func NewOptAnyTestAnyMap(v AnyTestAnyMap) OptAnyTestAnyMap

NewOptAnyTestAnyMap returns new OptAnyTestAnyMap with value set to v.

func (*OptAnyTestAnyMap) Decode

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

Decode decodes AnyTestAnyMap from json.

func (OptAnyTestAnyMap) Encode

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

Encode encodes AnyTestAnyMap as json.

func (OptAnyTestAnyMap) Get

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

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

func (OptAnyTestAnyMap) IsSet

func (o OptAnyTestAnyMap) IsSet() bool

IsSet returns true if OptAnyTestAnyMap was set.

func (OptAnyTestAnyMap) MarshalJSON

func (s OptAnyTestAnyMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnyTestAnyMap) Or

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

func (*OptAnyTestAnyMap) Reset

func (o *OptAnyTestAnyMap) Reset()

Reset unsets value.

func (*OptAnyTestAnyMap) SetTo

func (o *OptAnyTestAnyMap) SetTo(v AnyTestAnyMap)

SetTo sets value to v.

func (*OptAnyTestAnyMap) UnmarshalJSON

func (s *OptAnyTestAnyMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptArrayTest

type OptArrayTest struct {
	Value ArrayTest
	Set   bool
}

OptArrayTest is optional ArrayTest.

func NewOptArrayTest

func NewOptArrayTest(v ArrayTest) OptArrayTest

NewOptArrayTest returns new OptArrayTest with value set to v.

func (*OptArrayTest) Decode

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

Decode decodes ArrayTest from json.

func (OptArrayTest) Encode

func (o OptArrayTest) Encode(e *jx.Encoder)

Encode encodes ArrayTest as json.

func (OptArrayTest) Get

func (o OptArrayTest) Get() (v ArrayTest, ok bool)

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

func (OptArrayTest) IsSet

func (o OptArrayTest) IsSet() bool

IsSet returns true if OptArrayTest was set.

func (OptArrayTest) MarshalJSON

func (s OptArrayTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptArrayTest) Or

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

func (*OptArrayTest) Reset

func (o *OptArrayTest) Reset()

Reset unsets value.

func (*OptArrayTest) SetTo

func (o *OptArrayTest) SetTo(v ArrayTest)

SetTo sets value to v.

func (*OptArrayTest) UnmarshalJSON

func (s *OptArrayTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptData) Or

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.

func (*OptData) UnmarshalJSON

func (s *OptData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDate

type OptDate struct {
	Value time.Time
	Set   bool
}

OptDate is optional time.Time.

func NewOptDate

func NewOptDate(v time.Time) OptDate

NewOptDate returns new OptDate with value set to v.

func (*OptDate) Decode

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

Decode decodes time.Time from json.

func (OptDate) Encode

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

Encode encodes time.Time as json.

func (OptDate) Get

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

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

func (OptDate) IsSet

func (o OptDate) IsSet() bool

IsSet returns true if OptDate was set.

func (OptDate) MarshalJSON

func (s OptDate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDate) Or

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

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

func (*OptDate) Reset

func (o *OptDate) Reset()

Reset unsets value.

func (*OptDate) SetTo

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

SetTo sets value to v.

func (*OptDate) UnmarshalJSON

func (s *OptDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

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

Decode decodes time.Time from json.

func (OptDateTime) Encode

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

Encode encodes time.Time as json.

func (OptDateTime) Get

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

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

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

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

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

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

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

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDefaultTestEnum

type OptDefaultTestEnum struct {
	Value DefaultTestEnum
	Set   bool
}

OptDefaultTestEnum is optional DefaultTestEnum.

func NewOptDefaultTestEnum

func NewOptDefaultTestEnum(v DefaultTestEnum) OptDefaultTestEnum

NewOptDefaultTestEnum returns new OptDefaultTestEnum with value set to v.

func (*OptDefaultTestEnum) Decode

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

Decode decodes DefaultTestEnum from json.

func (OptDefaultTestEnum) Encode

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

Encode encodes DefaultTestEnum as json.

func (OptDefaultTestEnum) Get

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

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

func (OptDefaultTestEnum) IsSet

func (o OptDefaultTestEnum) IsSet() bool

IsSet returns true if OptDefaultTestEnum was set.

func (OptDefaultTestEnum) MarshalJSON

func (s OptDefaultTestEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDefaultTestEnum) Or

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

func (*OptDefaultTestEnum) Reset

func (o *OptDefaultTestEnum) Reset()

Reset unsets value.

func (*OptDefaultTestEnum) SetTo

func (o *OptDefaultTestEnum) SetTo(v DefaultTestEnum)

SetTo sets value to v.

func (*OptDefaultTestEnum) UnmarshalJSON

func (s *OptDefaultTestEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptDuration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDuration) Or

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.

func (*OptDuration) UnmarshalJSON

func (s *OptDuration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

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.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptID

type OptID struct {
	Value ID
	Set   bool
}

OptID is optional ID.

func NewOptID

func NewOptID(v ID) OptID

NewOptID returns new OptID with value set to v.

func (*OptID) Decode

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

Decode decodes ID from json.

func (OptID) Encode

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

Encode encodes ID as json.

func (OptID) Get

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

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

func (OptID) IsSet

func (o OptID) IsSet() bool

IsSet returns true if OptID was set.

func (OptID) MarshalJSON

func (s OptID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptID) Or

func (o OptID) Or(d ID) ID

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

func (*OptID) Reset

func (o *OptID) Reset()

Reset unsets value.

func (*OptID) SetTo

func (o *OptID) SetTo(v ID)

SetTo sets value to v.

func (*OptID) UnmarshalJSON

func (s *OptID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIP

type OptIP struct {
	Value netip.Addr
	Set   bool
}

OptIP is optional netip.Addr.

func NewOptIP

func NewOptIP(v netip.Addr) OptIP

NewOptIP returns new OptIP with value set to v.

func (*OptIP) Decode

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

Decode decodes netip.Addr from json.

func (OptIP) Encode

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

Encode encodes netip.Addr as json.

func (OptIP) Get

func (o OptIP) Get() (v netip.Addr, ok bool)

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

func (OptIP) IsSet

func (o OptIP) IsSet() bool

IsSet returns true if OptIP was set.

func (OptIP) MarshalJSON

func (s OptIP) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIP) Or

func (o OptIP) Or(d netip.Addr) netip.Addr

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

func (*OptIP) Reset

func (o *OptIP) Reset()

Reset unsets value.

func (*OptIP) SetTo

func (o *OptIP) SetTo(v netip.Addr)

SetTo sets value to v.

func (*OptIP) UnmarshalJSON

func (s *OptIP) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIPv4

type OptIPv4 struct {
	Value netip.Addr
	Set   bool
}

OptIPv4 is optional netip.Addr.

func NewOptIPv4

func NewOptIPv4(v netip.Addr) OptIPv4

NewOptIPv4 returns new OptIPv4 with value set to v.

func (*OptIPv4) Decode

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

Decode decodes netip.Addr from json.

func (OptIPv4) Encode

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

Encode encodes netip.Addr as json.

func (OptIPv4) Get

func (o OptIPv4) Get() (v netip.Addr, ok bool)

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

func (OptIPv4) IsSet

func (o OptIPv4) IsSet() bool

IsSet returns true if OptIPv4 was set.

func (OptIPv4) MarshalJSON

func (s OptIPv4) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIPv4) Or

func (o OptIPv4) Or(d netip.Addr) netip.Addr

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

func (*OptIPv4) Reset

func (o *OptIPv4) Reset()

Reset unsets value.

func (*OptIPv4) SetTo

func (o *OptIPv4) SetTo(v netip.Addr)

SetTo sets value to v.

func (*OptIPv4) UnmarshalJSON

func (s *OptIPv4) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIPv6

type OptIPv6 struct {
	Value netip.Addr
	Set   bool
}

OptIPv6 is optional netip.Addr.

func NewOptIPv6

func NewOptIPv6(v netip.Addr) OptIPv6

NewOptIPv6 returns new OptIPv6 with value set to v.

func (*OptIPv6) Decode

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

Decode decodes netip.Addr from json.

func (OptIPv6) Encode

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

Encode encodes netip.Addr as json.

func (OptIPv6) Get

func (o OptIPv6) Get() (v netip.Addr, ok bool)

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

func (OptIPv6) IsSet

func (o OptIPv6) IsSet() bool

IsSet returns true if OptIPv6 was set.

func (OptIPv6) MarshalJSON

func (s OptIPv6) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIPv6) Or

func (o OptIPv6) Or(d netip.Addr) netip.Addr

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

func (*OptIPv6) Reset

func (o *OptIPv6) Reset()

Reset unsets value.

func (*OptIPv6) SetTo

func (o *OptIPv6) SetTo(v netip.Addr)

SetTo sets value to v.

func (*OptIPv6) UnmarshalJSON

func (s *OptIPv6) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

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.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

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

Decode decodes int32 from json.

func (OptInt32) Encode

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

Encode encodes int32 as json.

func (OptInt32) Get

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

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

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

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

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMapWithProperties

type OptMapWithProperties struct {
	Value MapWithProperties
	Set   bool
}

OptMapWithProperties is optional MapWithProperties.

func NewOptMapWithProperties

func NewOptMapWithProperties(v MapWithProperties) OptMapWithProperties

NewOptMapWithProperties returns new OptMapWithProperties with value set to v.

func (*OptMapWithProperties) Decode

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

Decode decodes MapWithProperties from json.

func (OptMapWithProperties) Encode

func (o OptMapWithProperties) Encode(e *jx.Encoder)

Encode encodes MapWithProperties as json.

func (OptMapWithProperties) Get

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

func (OptMapWithProperties) IsSet

func (o OptMapWithProperties) IsSet() bool

IsSet returns true if OptMapWithProperties was set.

func (OptMapWithProperties) MarshalJSON

func (s OptMapWithProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMapWithProperties) Or

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

func (*OptMapWithProperties) Reset

func (o *OptMapWithProperties) Reset()

Reset unsets value.

func (*OptMapWithProperties) SetTo

SetTo sets value to v.

func (*OptMapWithProperties) UnmarshalJSON

func (s *OptMapWithProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMapWithPropertiesInlinedSubMap

type OptMapWithPropertiesInlinedSubMap struct {
	Value MapWithPropertiesInlinedSubMap
	Set   bool
}

OptMapWithPropertiesInlinedSubMap is optional MapWithPropertiesInlinedSubMap.

func NewOptMapWithPropertiesInlinedSubMap

func NewOptMapWithPropertiesInlinedSubMap(v MapWithPropertiesInlinedSubMap) OptMapWithPropertiesInlinedSubMap

NewOptMapWithPropertiesInlinedSubMap returns new OptMapWithPropertiesInlinedSubMap with value set to v.

func (*OptMapWithPropertiesInlinedSubMap) Decode

Decode decodes MapWithPropertiesInlinedSubMap from json.

func (OptMapWithPropertiesInlinedSubMap) Encode

Encode encodes MapWithPropertiesInlinedSubMap as json.

func (OptMapWithPropertiesInlinedSubMap) Get

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

func (OptMapWithPropertiesInlinedSubMap) IsSet

IsSet returns true if OptMapWithPropertiesInlinedSubMap was set.

func (OptMapWithPropertiesInlinedSubMap) MarshalJSON

func (s OptMapWithPropertiesInlinedSubMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMapWithPropertiesInlinedSubMap) Or

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

func (*OptMapWithPropertiesInlinedSubMap) Reset

Reset unsets value.

func (*OptMapWithPropertiesInlinedSubMap) SetTo

SetTo sets value to v.

func (*OptMapWithPropertiesInlinedSubMap) UnmarshalJSON

func (s *OptMapWithPropertiesInlinedSubMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMaxPropertiesTest

type OptMaxPropertiesTest struct {
	Value MaxPropertiesTest
	Set   bool
}

OptMaxPropertiesTest is optional MaxPropertiesTest.

func NewOptMaxPropertiesTest

func NewOptMaxPropertiesTest(v MaxPropertiesTest) OptMaxPropertiesTest

NewOptMaxPropertiesTest returns new OptMaxPropertiesTest with value set to v.

func (*OptMaxPropertiesTest) Decode

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

Decode decodes MaxPropertiesTest from json.

func (OptMaxPropertiesTest) Encode

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

Encode encodes MaxPropertiesTest as json.

func (OptMaxPropertiesTest) Get

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

func (OptMaxPropertiesTest) IsSet

func (o OptMaxPropertiesTest) IsSet() bool

IsSet returns true if OptMaxPropertiesTest was set.

func (OptMaxPropertiesTest) MarshalJSON

func (s OptMaxPropertiesTest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMaxPropertiesTest) Or

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

func (*OptMaxPropertiesTest) Reset

func (o *OptMaxPropertiesTest) Reset()

Reset unsets value.

func (*OptMaxPropertiesTest) SetTo

SetTo sets value to v.

func (*OptMaxPropertiesTest) UnmarshalJSON

func (s *OptMaxPropertiesTest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

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.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilStringArray

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

OptNilStringArray is optional nullable []string.

func NewOptNilStringArray

func NewOptNilStringArray(v []string) OptNilStringArray

NewOptNilStringArray returns new OptNilStringArray with value set to v.

func (*OptNilStringArray) Decode

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

Decode decodes []string from json.

func (OptNilStringArray) Encode

func (o OptNilStringArray) Encode(e *jx.Encoder)

Encode encodes []string as json.

func (OptNilStringArray) Get

func (o OptNilStringArray) Get() (v []string, ok bool)

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

func (OptNilStringArray) IsNull

func (o OptNilStringArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilStringArray) IsSet

func (o OptNilStringArray) IsSet() bool

IsSet returns true if OptNilStringArray was set.

func (OptNilStringArray) MarshalJSON

func (s OptNilStringArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilStringArray) Or

func (o OptNilStringArray) Or(d []string) []string

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

func (*OptNilStringArray) Reset

func (o *OptNilStringArray) Reset()

Reset unsets value.

func (*OptNilStringArray) SetTo

func (o *OptNilStringArray) SetTo(v []string)

SetTo sets value to v.

func (*OptNilStringArray) UnmarshalJSON

func (s *OptNilStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNullValue

type OptNullValue struct {
	Value NullValue
	Set   bool
}

OptNullValue is optional NullValue.

func NewOptNullValue

func NewOptNullValue(v NullValue) OptNullValue

NewOptNullValue returns new OptNullValue with value set to v.

func (*OptNullValue) Decode

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

Decode decodes NullValue from json.

func (OptNullValue) Encode

func (o OptNullValue) Encode(e *jx.Encoder)

Encode encodes NullValue as json.

func (OptNullValue) Get

func (o OptNullValue) Get() (v NullValue, ok bool)

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

func (OptNullValue) IsSet

func (o OptNullValue) IsSet() bool

IsSet returns true if OptNullValue was set.

func (OptNullValue) MarshalJSON

func (s OptNullValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNullValue) Or

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

func (*OptNullValue) Reset

func (o *OptNullValue) Reset()

Reset unsets value.

func (*OptNullValue) SetTo

func (o *OptNullValue) SetTo(v NullValue)

SetTo sets value to v.

func (*OptNullValue) UnmarshalJSON

func (s *OptNullValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNullableEnums

type OptNullableEnums struct {
	Value NullableEnums
	Set   bool
}

OptNullableEnums is optional NullableEnums.

func NewOptNullableEnums

func NewOptNullableEnums(v NullableEnums) OptNullableEnums

NewOptNullableEnums returns new OptNullableEnums with value set to v.

func (*OptNullableEnums) Decode

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

Decode decodes NullableEnums from json.

func (OptNullableEnums) Encode

func (o OptNullableEnums) Encode(e *jx.Encoder)

Encode encodes NullableEnums as json.

func (OptNullableEnums) Get

func (o OptNullableEnums) Get() (v NullableEnums, ok bool)

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

func (OptNullableEnums) IsSet

func (o OptNullableEnums) IsSet() bool

IsSet returns true if OptNullableEnums was set.

func (OptNullableEnums) MarshalJSON

func (s OptNullableEnums) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNullableEnums) Or

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

func (*OptNullableEnums) Reset

func (o *OptNullableEnums) Reset()

Reset unsets value.

func (*OptNullableEnums) SetTo

func (o *OptNullableEnums) SetTo(v NullableEnums)

SetTo sets value to v.

func (*OptNullableEnums) UnmarshalJSON

func (s *OptNullableEnums) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOneOfMappingReference

type OptOneOfMappingReference struct {
	Value OneOfMappingReference
	Set   bool
}

OptOneOfMappingReference is optional OneOfMappingReference.

func NewOptOneOfMappingReference

func NewOptOneOfMappingReference(v OneOfMappingReference) OptOneOfMappingReference

NewOptOneOfMappingReference returns new OptOneOfMappingReference with value set to v.

func (*OptOneOfMappingReference) Decode

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

Decode decodes OneOfMappingReference from json.

func (OptOneOfMappingReference) Encode

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

Encode encodes OneOfMappingReference as json.

func (OptOneOfMappingReference) Get

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

func (OptOneOfMappingReference) IsSet

func (o OptOneOfMappingReference) IsSet() bool

IsSet returns true if OptOneOfMappingReference was set.

func (OptOneOfMappingReference) MarshalJSON

func (s OptOneOfMappingReference) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOneOfMappingReference) Or

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

func (*OptOneOfMappingReference) Reset

func (o *OptOneOfMappingReference) Reset()

Reset unsets value.

func (*OptOneOfMappingReference) SetTo

SetTo sets value to v.

func (*OptOneOfMappingReference) UnmarshalJSON

func (s *OptOneOfMappingReference) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOneOfUUIDAndIntEnum

type OptOneOfUUIDAndIntEnum struct {
	Value OneOfUUIDAndIntEnum
	Set   bool
}

OptOneOfUUIDAndIntEnum is optional OneOfUUIDAndIntEnum.

func NewOptOneOfUUIDAndIntEnum

func NewOptOneOfUUIDAndIntEnum(v OneOfUUIDAndIntEnum) OptOneOfUUIDAndIntEnum

NewOptOneOfUUIDAndIntEnum returns new OptOneOfUUIDAndIntEnum with value set to v.

func (*OptOneOfUUIDAndIntEnum) Decode

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

Decode decodes OneOfUUIDAndIntEnum from json.

func (OptOneOfUUIDAndIntEnum) Encode

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

Encode encodes OneOfUUIDAndIntEnum as json.

func (OptOneOfUUIDAndIntEnum) Get

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

func (OptOneOfUUIDAndIntEnum) IsSet

func (o OptOneOfUUIDAndIntEnum) IsSet() bool

IsSet returns true if OptOneOfUUIDAndIntEnum was set.

func (OptOneOfUUIDAndIntEnum) MarshalJSON

func (s OptOneOfUUIDAndIntEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOneOfUUIDAndIntEnum) Or

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

func (*OptOneOfUUIDAndIntEnum) Reset

func (o *OptOneOfUUIDAndIntEnum) Reset()

Reset unsets value.

func (*OptOneOfUUIDAndIntEnum) SetTo

SetTo sets value to v.

func (*OptOneOfUUIDAndIntEnum) UnmarshalJSON

func (s *OptOneOfUUIDAndIntEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOnePropertyObject

type OptOnePropertyObject struct {
	Value OnePropertyObject
	Set   bool
}

OptOnePropertyObject is optional OnePropertyObject.

func NewOptOnePropertyObject

func NewOptOnePropertyObject(v OnePropertyObject) OptOnePropertyObject

NewOptOnePropertyObject returns new OptOnePropertyObject with value set to v.

func (*OptOnePropertyObject) Decode

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

Decode decodes OnePropertyObject from json.

func (OptOnePropertyObject) Encode

func (o OptOnePropertyObject) Encode(e *jx.Encoder)

Encode encodes OnePropertyObject as json.

func (OptOnePropertyObject) Get

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

func (OptOnePropertyObject) IsSet

func (o OptOnePropertyObject) IsSet() bool

IsSet returns true if OptOnePropertyObject was set.

func (OptOnePropertyObject) MarshalJSON

func (s OptOnePropertyObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOnePropertyObject) Or

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

func (*OptOnePropertyObject) Reset

func (o *OptOnePropertyObject) Reset()

Reset unsets value.

func (*OptOnePropertyObject) SetTo

SetTo sets value to v.

func (*OptOnePropertyObject) UnmarshalJSON

func (s *OptOnePropertyObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOnlyPatternedPropsObject

type OptOnlyPatternedPropsObject struct {
	Value OnlyPatternedPropsObject
	Set   bool
}

OptOnlyPatternedPropsObject is optional OnlyPatternedPropsObject.

func NewOptOnlyPatternedPropsObject

func NewOptOnlyPatternedPropsObject(v OnlyPatternedPropsObject) OptOnlyPatternedPropsObject

NewOptOnlyPatternedPropsObject returns new OptOnlyPatternedPropsObject with value set to v.

func (*OptOnlyPatternedPropsObject) Decode

Decode decodes OnlyPatternedPropsObject from json.

func (OptOnlyPatternedPropsObject) Encode

func (o OptOnlyPatternedPropsObject) Encode(e *jx.Encoder)

Encode encodes OnlyPatternedPropsObject as json.

func (OptOnlyPatternedPropsObject) Get

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

func (OptOnlyPatternedPropsObject) IsSet

IsSet returns true if OptOnlyPatternedPropsObject was set.

func (OptOnlyPatternedPropsObject) MarshalJSON

func (s OptOnlyPatternedPropsObject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOnlyPatternedPropsObject) Or

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

func (*OptOnlyPatternedPropsObject) Reset

func (o *OptOnlyPatternedPropsObject) Reset()

Reset unsets value.

func (*OptOnlyPatternedPropsObject) SetTo

SetTo sets value to v.

func (*OptOnlyPatternedPropsObject) UnmarshalJSON

func (s *OptOnlyPatternedPropsObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptPet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPet) Or

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.

func (*OptPet) UnmarshalJSON

func (s *OptPet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptPetName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetName) Or

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.

func (*OptPetName) UnmarshalJSON

func (s *OptPetName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptPetType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPetType) Or

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.

func (*OptPetType) UnmarshalJSON

func (s *OptPetType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

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.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStringMap

type OptStringMap struct {
	Value StringMap
	Set   bool
}

OptStringMap is optional StringMap.

func NewOptStringMap

func NewOptStringMap(v StringMap) OptStringMap

NewOptStringMap returns new OptStringMap with value set to v.

func (*OptStringMap) Decode

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

Decode decodes StringMap from json.

func (OptStringMap) Encode

func (o OptStringMap) Encode(e *jx.Encoder)

Encode encodes StringMap as json.

func (OptStringMap) Get

func (o OptStringMap) Get() (v StringMap, ok bool)

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

func (OptStringMap) IsSet

func (o OptStringMap) IsSet() bool

IsSet returns true if OptStringMap was set.

func (OptStringMap) MarshalJSON

func (s OptStringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStringMap) Or

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

func (*OptStringMap) Reset

func (o *OptStringMap) Reset()

Reset unsets value.

func (*OptStringMap) SetTo

func (o *OptStringMap) SetTo(v StringMap)

SetTo sets value to v.

func (*OptStringMap) UnmarshalJSON

func (s *OptStringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStringStringMap

type OptStringStringMap struct {
	Value StringStringMap
	Set   bool
}

OptStringStringMap is optional StringStringMap.

func NewOptStringStringMap

func NewOptStringStringMap(v StringStringMap) OptStringStringMap

NewOptStringStringMap returns new OptStringStringMap with value set to v.

func (*OptStringStringMap) Decode

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

Decode decodes StringStringMap from json.

func (OptStringStringMap) Encode

func (o OptStringStringMap) Encode(e *jx.Encoder)

Encode encodes StringStringMap as json.

func (OptStringStringMap) Get

func (o OptStringStringMap) Get() (v StringStringMap, ok bool)

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

func (OptStringStringMap) IsSet

func (o OptStringStringMap) IsSet() bool

IsSet returns true if OptStringStringMap was set.

func (OptStringStringMap) MarshalJSON

func (s OptStringStringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStringStringMap) Or

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

func (*OptStringStringMap) Reset

func (o *OptStringStringMap) Reset()

Reset unsets value.

func (*OptStringStringMap) SetTo

func (o *OptStringStringMap) SetTo(v StringStringMap)

SetTo sets value to v.

func (*OptStringStringMap) UnmarshalJSON

func (s *OptStringStringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTestContentParameterParam

type OptTestContentParameterParam struct {
	Value TestContentParameterParam
	Set   bool
}

OptTestContentParameterParam is optional TestContentParameterParam.

func NewOptTestContentParameterParam

func NewOptTestContentParameterParam(v TestContentParameterParam) OptTestContentParameterParam

NewOptTestContentParameterParam returns new OptTestContentParameterParam with value set to v.

func (*OptTestContentParameterParam) Decode

Decode decodes TestContentParameterParam from json.

func (OptTestContentParameterParam) Encode

Encode encodes TestContentParameterParam as json.

func (OptTestContentParameterParam) Get

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

func (OptTestContentParameterParam) IsSet

IsSet returns true if OptTestContentParameterParam was set.

func (OptTestContentParameterParam) MarshalJSON

func (s OptTestContentParameterParam) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTestContentParameterParam) Or

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

func (*OptTestContentParameterParam) Reset

func (o *OptTestContentParameterParam) Reset()

Reset unsets value.

func (*OptTestContentParameterParam) SetTo

SetTo sets value to v.

func (*OptTestContentParameterParam) UnmarshalJSON

func (s *OptTestContentParameterParam) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTestObjectQueryParameterDeepObject

type OptTestObjectQueryParameterDeepObject struct {
	Value TestObjectQueryParameterDeepObject
	Set   bool
}

OptTestObjectQueryParameterDeepObject is optional TestObjectQueryParameterDeepObject.

func NewOptTestObjectQueryParameterDeepObject

func NewOptTestObjectQueryParameterDeepObject(v TestObjectQueryParameterDeepObject) OptTestObjectQueryParameterDeepObject

NewOptTestObjectQueryParameterDeepObject returns new OptTestObjectQueryParameterDeepObject with value set to v.

func (OptTestObjectQueryParameterDeepObject) Get

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

func (OptTestObjectQueryParameterDeepObject) IsSet

IsSet returns true if OptTestObjectQueryParameterDeepObject was set.

func (OptTestObjectQueryParameterDeepObject) Or

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

func (*OptTestObjectQueryParameterDeepObject) Reset

Reset unsets value.

func (*OptTestObjectQueryParameterDeepObject) SetTo

SetTo sets value to v.

type OptTestObjectQueryParameterFormObject

type OptTestObjectQueryParameterFormObject struct {
	Value TestObjectQueryParameterFormObject
	Set   bool
}

OptTestObjectQueryParameterFormObject is optional TestObjectQueryParameterFormObject.

func NewOptTestObjectQueryParameterFormObject

func NewOptTestObjectQueryParameterFormObject(v TestObjectQueryParameterFormObject) OptTestObjectQueryParameterFormObject

NewOptTestObjectQueryParameterFormObject returns new OptTestObjectQueryParameterFormObject with value set to v.

func (OptTestObjectQueryParameterFormObject) Get

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

func (OptTestObjectQueryParameterFormObject) IsSet

IsSet returns true if OptTestObjectQueryParameterFormObject was set.

func (OptTestObjectQueryParameterFormObject) Or

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

func (*OptTestObjectQueryParameterFormObject) Reset

Reset unsets value.

func (*OptTestObjectQueryParameterFormObject) SetTo

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.Encoder, format func(*jx.Encoder, 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) MarshalJSON

func (s OptTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTime) Or

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.

func (*OptTime) UnmarshalJSON

func (s *OptTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

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

Decode decodes url.URL from json.

func (OptURI) Encode

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

Encode encodes url.URL as json.

func (OptURI) Get

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

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

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

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

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

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

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

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

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

func (s OptUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUUID) Or

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.

func (*OptUUID) UnmarshalJSON

func (s *OptUUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptValidationStringMap

type OptValidationStringMap struct {
	Value ValidationStringMap
	Set   bool
}

OptValidationStringMap is optional ValidationStringMap.

func NewOptValidationStringMap

func NewOptValidationStringMap(v ValidationStringMap) OptValidationStringMap

NewOptValidationStringMap returns new OptValidationStringMap with value set to v.

func (*OptValidationStringMap) Decode

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

Decode decodes ValidationStringMap from json.

func (OptValidationStringMap) Encode

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

Encode encodes ValidationStringMap as json.

func (OptValidationStringMap) Get

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

func (OptValidationStringMap) IsSet

func (o OptValidationStringMap) IsSet() bool

IsSet returns true if OptValidationStringMap was set.

func (OptValidationStringMap) MarshalJSON

func (s OptValidationStringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptValidationStringMap) Or

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

func (*OptValidationStringMap) Reset

func (o *OptValidationStringMap) Reset()

Reset unsets value.

func (*OptValidationStringMap) SetTo

SetTo sets value to v.

func (*OptValidationStringMap) UnmarshalJSON

func (s *OptValidationStringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

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

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) Option

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) Option

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the metric.NewNoopMeterProvider is used.

func WithMethodNotAllowed added in v0.46.0

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware added in v0.49.0

func WithMiddleware(m ...Middleware) Option

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) Option

WithNotFound specifies Not Found handler to use.

func WithPathPrefix added in v0.52.0

func WithPathPrefix(prefix string) Option

WithPathPrefix specifies server path prefix.

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 PatternRecursiveMap

type PatternRecursiveMap map[string]PatternRecursiveMap

Ref: #/components/schemas/PatternRecursiveMap

func (*PatternRecursiveMap) Decode

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

Decode decodes PatternRecursiveMap from json.

func (PatternRecursiveMap) Encode

func (s PatternRecursiveMap) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (PatternRecursiveMap) MarshalJSON

func (s PatternRecursiveMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PatternRecursiveMap) UnmarshalJSON

func (s *PatternRecursiveMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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                netip.Addr           `json:"ip"`
	IPV4              netip.Addr           `json:"ip_v4"`
	IPV6              netip.Addr           `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"`
	NullValue         OptNullValue         `json:"nullValue"`
}

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.Encoder)

Encode implements json.Marshaler.

func (Pet) GetBirthday added in v0.52.0

func (s Pet) GetBirthday() time.Time

GetBirthday returns the value of Birthday.

func (Pet) GetFriends added in v0.52.0

func (s Pet) GetFriends() []Pet

GetFriends returns the value of Friends.

func (Pet) GetID added in v0.52.0

func (s Pet) GetID() int64

GetID returns the value of ID.

func (Pet) GetIP added in v0.52.0

func (s Pet) GetIP() netip.Addr

GetIP returns the value of IP.

func (Pet) GetIPV4 added in v0.52.0

func (s Pet) GetIPV4() netip.Addr

GetIPV4 returns the value of IPV4.

func (Pet) GetIPV6 added in v0.52.0

func (s Pet) GetIPV6() netip.Addr

GetIPV6 returns the value of IPV6.

func (Pet) GetKind added in v0.52.0

func (s Pet) GetKind() PetKind

GetKind returns the value of Kind.

func (Pet) GetName added in v0.52.0

func (s Pet) GetName() string

GetName returns the value of Name.

func (Pet) GetNext added in v0.52.0

func (s Pet) GetNext() OptData

GetNext returns the value of Next.

func (Pet) GetNickname added in v0.52.0

func (s Pet) GetNickname() NilString

GetNickname returns the value of Nickname.

func (Pet) GetNullStr added in v0.52.0

func (s Pet) GetNullStr() OptNilString

GetNullStr returns the value of NullStr.

func (Pet) GetNullValue added in v0.52.0

func (s Pet) GetNullValue() OptNullValue

GetNullValue returns the value of NullValue.

func (Pet) GetPrimary added in v0.52.0

func (s Pet) GetPrimary() *Pet

GetPrimary returns the value of Primary.

func (Pet) GetRate added in v0.52.0

func (s Pet) GetRate() time.Duration

GetRate returns the value of Rate.

func (Pet) GetTag added in v0.52.0

func (s Pet) GetTag() OptUUID

GetTag returns the value of Tag.

func (Pet) GetTestAny added in v0.52.0

func (s Pet) GetTestAny() OptAnyTest

GetTestAny returns the value of TestAny.

func (Pet) GetTestAnyOf added in v0.52.0

func (s Pet) GetTestAnyOf() OptAnyOfTest

GetTestAnyOf returns the value of TestAnyOf.

func (Pet) GetTestArray1 added in v0.52.0

func (s Pet) GetTestArray1() [][]string

GetTestArray1 returns the value of TestArray1.

func (Pet) GetTestArray2 added in v0.52.0

func (s Pet) GetTestArray2() OptArrayTest

GetTestArray2 returns the value of TestArray2.

func (Pet) GetTestDate added in v0.52.0

func (s Pet) GetTestDate() OptDate

GetTestDate returns the value of TestDate.

func (Pet) GetTestDateTime added in v0.52.0

func (s Pet) GetTestDateTime() OptDateTime

GetTestDateTime returns the value of TestDateTime.

func (Pet) GetTestDuration added in v0.52.0

func (s Pet) GetTestDuration() OptDuration

GetTestDuration returns the value of TestDuration.

func (Pet) GetTestFloat1 added in v0.52.0

func (s Pet) GetTestFloat1() OptFloat64

GetTestFloat1 returns the value of TestFloat1.

func (Pet) GetTestInteger1 added in v0.52.0

func (s Pet) GetTestInteger1() OptInt

GetTestInteger1 returns the value of TestInteger1.

func (Pet) GetTestMap added in v0.52.0

func (s Pet) GetTestMap() OptStringStringMap

GetTestMap returns the value of TestMap.

func (Pet) GetTestMapWithProps added in v0.52.0

func (s Pet) GetTestMapWithProps() OptMapWithProperties

GetTestMapWithProps returns the value of TestMapWithProps.

func (Pet) GetTestMaxProperties added in v0.52.0

func (s Pet) GetTestMaxProperties() OptMaxPropertiesTest

GetTestMaxProperties returns the value of TestMaxProperties.

func (Pet) GetTestTime added in v0.52.0

func (s Pet) GetTestTime() OptTime

GetTestTime returns the value of TestTime.

func (Pet) GetType added in v0.52.0

func (s Pet) GetType() OptPetType

GetType returns the value of Type.

func (Pet) GetURI added in v0.52.0

func (s Pet) GetURI() url.URL

GetURI returns the value of URI.

func (Pet) GetUniqueID added in v0.52.0

func (s Pet) GetUniqueID() uuid.UUID

GetUniqueID returns the value of UniqueID.

func (Pet) MarshalJSON

func (s Pet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Pet) SetBirthday added in v0.52.0

func (s *Pet) SetBirthday(val time.Time)

SetBirthday sets the value of Birthday.

func (*Pet) SetFriends added in v0.52.0

func (s *Pet) SetFriends(val []Pet)

SetFriends sets the value of Friends.

func (*Pet) SetID added in v0.52.0

func (s *Pet) SetID(val int64)

SetID sets the value of ID.

func (*Pet) SetIP added in v0.52.0

func (s *Pet) SetIP(val netip.Addr)

SetIP sets the value of IP.

func (*Pet) SetIPV4 added in v0.52.0

func (s *Pet) SetIPV4(val netip.Addr)

SetIPV4 sets the value of IPV4.

func (*Pet) SetIPV6 added in v0.52.0

func (s *Pet) SetIPV6(val netip.Addr)

SetIPV6 sets the value of IPV6.

func (*Pet) SetKind added in v0.52.0

func (s *Pet) SetKind(val PetKind)

SetKind sets the value of Kind.

func (*Pet) SetName added in v0.52.0

func (s *Pet) SetName(val string)

SetName sets the value of Name.

func (*Pet) SetNext added in v0.52.0

func (s *Pet) SetNext(val OptData)

SetNext sets the value of Next.

func (*Pet) SetNickname added in v0.52.0

func (s *Pet) SetNickname(val NilString)

SetNickname sets the value of Nickname.

func (*Pet) SetNullStr added in v0.52.0

func (s *Pet) SetNullStr(val OptNilString)

SetNullStr sets the value of NullStr.

func (*Pet) SetNullValue added in v0.52.0

func (s *Pet) SetNullValue(val OptNullValue)

SetNullValue sets the value of NullValue.

func (*Pet) SetPrimary added in v0.52.0

func (s *Pet) SetPrimary(val *Pet)

SetPrimary sets the value of Primary.

func (*Pet) SetRate added in v0.52.0

func (s *Pet) SetRate(val time.Duration)

SetRate sets the value of Rate.

func (*Pet) SetTag added in v0.52.0

func (s *Pet) SetTag(val OptUUID)

SetTag sets the value of Tag.

func (*Pet) SetTestAny added in v0.52.0

func (s *Pet) SetTestAny(val OptAnyTest)

SetTestAny sets the value of TestAny.

func (*Pet) SetTestAnyOf added in v0.52.0

func (s *Pet) SetTestAnyOf(val OptAnyOfTest)

SetTestAnyOf sets the value of TestAnyOf.

func (*Pet) SetTestArray1 added in v0.52.0

func (s *Pet) SetTestArray1(val [][]string)

SetTestArray1 sets the value of TestArray1.

func (*Pet) SetTestArray2 added in v0.52.0

func (s *Pet) SetTestArray2(val OptArrayTest)

SetTestArray2 sets the value of TestArray2.

func (*Pet) SetTestDate added in v0.52.0

func (s *Pet) SetTestDate(val OptDate)

SetTestDate sets the value of TestDate.

func (*Pet) SetTestDateTime added in v0.52.0

func (s *Pet) SetTestDateTime(val OptDateTime)

SetTestDateTime sets the value of TestDateTime.

func (*Pet) SetTestDuration added in v0.52.0

func (s *Pet) SetTestDuration(val OptDuration)

SetTestDuration sets the value of TestDuration.

func (*Pet) SetTestFloat1 added in v0.52.0

func (s *Pet) SetTestFloat1(val OptFloat64)

SetTestFloat1 sets the value of TestFloat1.

func (*Pet) SetTestInteger1 added in v0.52.0

func (s *Pet) SetTestInteger1(val OptInt)

SetTestInteger1 sets the value of TestInteger1.

func (*Pet) SetTestMap added in v0.52.0

func (s *Pet) SetTestMap(val OptStringStringMap)

SetTestMap sets the value of TestMap.

func (*Pet) SetTestMapWithProps added in v0.52.0

func (s *Pet) SetTestMapWithProps(val OptMapWithProperties)

SetTestMapWithProps sets the value of TestMapWithProps.

func (*Pet) SetTestMaxProperties added in v0.52.0

func (s *Pet) SetTestMaxProperties(val OptMaxPropertiesTest)

SetTestMaxProperties sets the value of TestMaxProperties.

func (*Pet) SetTestTime added in v0.52.0

func (s *Pet) SetTestTime(val OptTime)

SetTestTime sets the value of TestTime.

func (*Pet) SetType added in v0.52.0

func (s *Pet) SetType(val OptPetType)

SetType sets the value of Type.

func (*Pet) SetURI added in v0.52.0

func (s *Pet) SetURI(val url.URL)

SetURI sets the value of URI.

func (*Pet) SetUniqueID added in v0.52.0

func (s *Pet) SetUniqueID(val uuid.UUID)

SetUniqueID sets the value of UniqueID.

func (*Pet) UnmarshalJSON

func (s *Pet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Pet) Validate

func (s Pet) Validate() error

type PetFriendsNamesByIDParams

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

type PetGetAvatarByIDOK

type PetGetAvatarByIDOK struct {
	Data io.Reader
}

func (PetGetAvatarByIDOK) Read

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

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type PetGetAvatarByIDParams

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

type PetGetAvatarByIDRes

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

type PetGetAvatarByNameOK

type PetGetAvatarByNameOK struct {
	Data io.Reader
}

func (PetGetAvatarByNameOK) Read

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

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type PetGetAvatarByNameParams

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

type PetGetAvatarByNameRes

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.Encoder)

Encode implements json.Marshaler.

func (PetGetDef) GetMessage added in v0.52.0

func (s PetGetDef) GetMessage() string

GetMessage returns the value of Message.

func (PetGetDef) MarshalJSON

func (s PetGetDef) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetGetDef) SetMessage added in v0.52.0

func (s *PetGetDef) SetMessage(val string)

SetMessage sets the value of Message.

func (*PetGetDef) UnmarshalJSON

func (s *PetGetDef) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PetGetDefStatusCode

type PetGetDefStatusCode struct {
	StatusCode int
	Response   PetGetDef
}

PetGetDefStatusCode wraps PetGetDef with StatusCode.

func (PetGetDefStatusCode) GetResponse added in v0.52.0

func (s PetGetDefStatusCode) GetResponse() PetGetDef

GetResponse returns the value of Response.

func (PetGetDefStatusCode) GetStatusCode added in v0.52.0

func (s PetGetDefStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*PetGetDefStatusCode) SetResponse added in v0.52.0

func (s *PetGetDefStatusCode) SetResponse(val PetGetDef)

SetResponse sets the value of Response.

func (*PetGetDefStatusCode) SetStatusCode added in v0.52.0

func (s *PetGetDefStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of 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.Encoder)

Encode encodes PetKind as json.

func (PetKind) MarshalJSON

func (s PetKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetKind) UnmarshalJSON

func (s *PetKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

Encode encodes PetName as json.

func (PetName) MarshalJSON

func (s PetName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetName) UnmarshalJSON

func (s *PetName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

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.Encoder)

Encode encodes PetType as json.

func (PetType) MarshalJSON

func (s PetType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PetType) UnmarshalJSON

func (s *PetType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PetType) Validate

func (s PetType) Validate() error

type PetUpdateNameAliasPostDef

type PetUpdateNameAliasPostDef struct {
	StatusCode int
}

PetUpdateNameAliasPostDef is default response for PetUpdateNameAliasPost operation.

func (PetUpdateNameAliasPostDef) GetStatusCode added in v0.52.0

func (s PetUpdateNameAliasPostDef) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*PetUpdateNameAliasPostDef) SetStatusCode added in v0.52.0

func (s *PetUpdateNameAliasPostDef) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type PetUpdateNamePostDef

type PetUpdateNamePostDef struct {
	StatusCode int
}

PetUpdateNamePostDef is default response for PetUpdateNamePost operation.

func (PetUpdateNamePostDef) GetStatusCode added in v0.52.0

func (s PetUpdateNamePostDef) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*PetUpdateNamePostDef) SetStatusCode added in v0.52.0

func (s *PetUpdateNamePostDef) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type PetUploadAvatarByIDOK

type PetUploadAvatarByIDOK struct{}

PetUploadAvatarByIDOK is response for PetUploadAvatarByID operation.

type PetUploadAvatarByIDParams

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

type PetUploadAvatarByIDReq

type PetUploadAvatarByIDReq struct {
	Data io.Reader
}

func (PetUploadAvatarByIDReq) Read

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

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type PetUploadAvatarByIDRes

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

type RecursiveArray

type RecursiveArray []RecursiveArray

func (*RecursiveArray) Decode

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

Decode decodes RecursiveArray from json.

func (RecursiveArray) Encode

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

Encode encodes RecursiveArray as json.

func (RecursiveArray) MarshalJSON

func (s RecursiveArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecursiveArray) UnmarshalJSON

func (s *RecursiveArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (RecursiveArray) Validate

func (s RecursiveArray) Validate() error

type RecursiveMap

type RecursiveMap struct {
	OptionalRecursiveField *RecursiveMap `json:"optional_recursive_field"`
	AdditionalProps        RecursiveMapAdditional
}

Ref: #/components/schemas/RecursiveMap

func (*RecursiveMap) Decode

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

Decode decodes RecursiveMap from json.

func (RecursiveMap) Encode

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

Encode implements json.Marshaler.

func (RecursiveMap) GetAdditionalProps added in v0.52.0

func (s RecursiveMap) GetAdditionalProps() RecursiveMapAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (RecursiveMap) GetOptionalRecursiveField added in v0.52.0

func (s RecursiveMap) GetOptionalRecursiveField() *RecursiveMap

GetOptionalRecursiveField returns the value of OptionalRecursiveField.

func (RecursiveMap) MarshalJSON

func (s RecursiveMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecursiveMap) SetAdditionalProps added in v0.52.0

func (s *RecursiveMap) SetAdditionalProps(val RecursiveMapAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*RecursiveMap) SetOptionalRecursiveField added in v0.52.0

func (s *RecursiveMap) SetOptionalRecursiveField(val *RecursiveMap)

SetOptionalRecursiveField sets the value of OptionalRecursiveField.

func (*RecursiveMap) UnmarshalJSON

func (s *RecursiveMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RecursiveMapAdditional

type RecursiveMapAdditional map[string]RecursiveMap

func (*RecursiveMapAdditional) Decode

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

Decode decodes RecursiveMapAdditional from json.

func (RecursiveMapAdditional) Encode

func (s RecursiveMapAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (RecursiveMapAdditional) MarshalJSON

func (s RecursiveMapAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecursiveMapAdditional) UnmarshalJSON

func (s *RecursiveMapAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name added in v0.46.0

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

type SecurityHandler

type SecurityHandler interface {
	// HandleAPIKey handles api_key security.
	HandleAPIKey(ctx context.Context, operationName string, t APIKey) (context.Context, error)
}

SecurityHandler is handler for security parameters.

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, sec SecurityHandler, opts ...Option) (*Server, error)

NewServer creates new Server.

func (*Server) FindRoute

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 StringIntMap

type StringIntMap struct {
	AdditionalProps StringIntMapAdditional
	// Pattern: "string_.*".
	Pattern0Props StringIntMapPattern0
}

Ref: #/components/schemas/StringIntMap

func (*StringIntMap) Decode

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

Decode decodes StringIntMap from json.

func (StringIntMap) Encode

func (s StringIntMap) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (StringIntMap) GetAdditionalProps added in v0.52.0

func (s StringIntMap) GetAdditionalProps() StringIntMapAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (StringIntMap) GetPattern0Props added in v0.52.0

func (s StringIntMap) GetPattern0Props() StringIntMapPattern0

GetPattern0Props returns the value of Pattern0Props.

func (StringIntMap) MarshalJSON

func (s StringIntMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringIntMap) SetAdditionalProps added in v0.52.0

func (s *StringIntMap) SetAdditionalProps(val StringIntMapAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*StringIntMap) SetPattern0Props added in v0.52.0

func (s *StringIntMap) SetPattern0Props(val StringIntMapPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*StringIntMap) UnmarshalJSON

func (s *StringIntMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StringIntMapAdditional

type StringIntMapAdditional map[string]int

func (*StringIntMapAdditional) Decode

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

Decode decodes StringIntMapAdditional from json.

func (StringIntMapAdditional) Encode

func (s StringIntMapAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (StringIntMapAdditional) MarshalJSON

func (s StringIntMapAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringIntMapAdditional) UnmarshalJSON

func (s *StringIntMapAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StringIntMapPattern0

type StringIntMapPattern0 map[string]string

func (*StringIntMapPattern0) Decode

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

Decode decodes StringIntMapPattern0 from json.

func (StringIntMapPattern0) Encode

func (s StringIntMapPattern0) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (StringIntMapPattern0) MarshalJSON

func (s StringIntMapPattern0) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringIntMapPattern0) UnmarshalJSON

func (s *StringIntMapPattern0) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StringMap

type StringMap map[string]string

Ref: #/components/schemas/StringMap

func (*StringMap) Decode

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

Decode decodes StringMap from json.

func (StringMap) Encode

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

Encode implements json.Marshaler.

func (StringMap) MarshalJSON

func (s StringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringMap) UnmarshalJSON

func (s *StringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (StringMap) Validate

func (s StringMap) Validate() error

type StringStringMap

type StringStringMap map[string]StringMap

Ref: #/components/schemas/StringStringMap

func (*StringStringMap) Decode

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

Decode decodes StringStringMap from json.

func (StringStringMap) Encode

func (s StringStringMap) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (StringStringMap) MarshalJSON

func (s StringStringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringStringMap) UnmarshalJSON

func (s *StringStringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (StringStringMap) Validate

func (s StringStringMap) Validate() error

type TestContentParameterParam

type TestContentParameterParam struct {
	Style  string `json:"style"`
	Min    int    `json:"min"`
	Max    int    `json:"max"`
	Filter string `json:"filter"`
}

func (*TestContentParameterParam) Decode

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

Decode decodes TestContentParameterParam from json.

func (TestContentParameterParam) Encode

func (s TestContentParameterParam) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (TestContentParameterParam) GetFilter added in v0.52.0

func (s TestContentParameterParam) GetFilter() string

GetFilter returns the value of Filter.

func (TestContentParameterParam) GetMax added in v0.52.0

func (s TestContentParameterParam) GetMax() int

GetMax returns the value of Max.

func (TestContentParameterParam) GetMin added in v0.52.0

func (s TestContentParameterParam) GetMin() int

GetMin returns the value of Min.

func (TestContentParameterParam) GetStyle added in v0.52.0

func (s TestContentParameterParam) GetStyle() string

GetStyle returns the value of Style.

func (TestContentParameterParam) MarshalJSON

func (s TestContentParameterParam) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestContentParameterParam) SetFilter added in v0.52.0

func (s *TestContentParameterParam) SetFilter(val string)

SetFilter sets the value of Filter.

func (*TestContentParameterParam) SetMax added in v0.52.0

func (s *TestContentParameterParam) SetMax(val int)

SetMax sets the value of Max.

func (*TestContentParameterParam) SetMin added in v0.52.0

func (s *TestContentParameterParam) SetMin(val int)

SetMin sets the value of Min.

func (*TestContentParameterParam) SetStyle added in v0.52.0

func (s *TestContentParameterParam) SetStyle(val string)

SetStyle sets the value of Style.

func (*TestContentParameterParam) UnmarshalJSON

func (s *TestContentParameterParam) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TestContentParameterParams

type TestContentParameterParams struct {
	Param OptTestContentParameterParam
}

type TestFloatValidation

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

Ref: #/components/schemas/TestFloatValidation

func (*TestFloatValidation) Decode

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

Decode decodes TestFloatValidation from json.

func (TestFloatValidation) Encode

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

Encode implements json.Marshaler.

func (TestFloatValidation) GetMinmax added in v0.52.0

func (s TestFloatValidation) GetMinmax() float64

GetMinmax returns the value of Minmax.

func (TestFloatValidation) GetMultipleOf added in v0.52.0

func (s TestFloatValidation) GetMultipleOf() float64

GetMultipleOf returns the value of MultipleOf.

func (TestFloatValidation) MarshalJSON

func (s TestFloatValidation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestFloatValidation) SetMinmax added in v0.52.0

func (s *TestFloatValidation) SetMinmax(val float64)

SetMinmax sets the value of Minmax.

func (*TestFloatValidation) SetMultipleOf added in v0.52.0

func (s *TestFloatValidation) SetMultipleOf(val float64)

SetMultipleOf sets the value of MultipleOf.

func (*TestFloatValidation) UnmarshalJSON

func (s *TestFloatValidation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (TestFloatValidation) Validate

func (s TestFloatValidation) Validate() error

type TestFloatValidationOK

type TestFloatValidationOK struct{}

TestFloatValidationOK is response for TestFloatValidation operation.

type TestNullableOneofsApplicationJSONCreated

type TestNullableOneofsApplicationJSONCreated OneOfWithNullable

func (*TestNullableOneofsApplicationJSONCreated) Decode

Decode decodes TestNullableOneofsApplicationJSONCreated from json.

func (TestNullableOneofsApplicationJSONCreated) Encode

Encode encodes TestNullableOneofsApplicationJSONCreated as json.

func (TestNullableOneofsApplicationJSONCreated) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*TestNullableOneofsApplicationJSONCreated) UnmarshalJSON

func (s *TestNullableOneofsApplicationJSONCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (TestNullableOneofsApplicationJSONCreated) Validate

type TestNullableOneofsApplicationJSONOK

type TestNullableOneofsApplicationJSONOK OneOfWithNullable

func (*TestNullableOneofsApplicationJSONOK) Decode

Decode decodes TestNullableOneofsApplicationJSONOK from json.

func (TestNullableOneofsApplicationJSONOK) Encode

Encode encodes TestNullableOneofsApplicationJSONOK as json.

func (TestNullableOneofsApplicationJSONOK) MarshalJSON

func (s TestNullableOneofsApplicationJSONOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestNullableOneofsApplicationJSONOK) UnmarshalJSON

func (s *TestNullableOneofsApplicationJSONOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (TestNullableOneofsApplicationJSONOK) Validate

type TestNullableOneofsRes

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

type TestObjectQueryParameterDeepObject

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

func (*TestObjectQueryParameterDeepObject) DecodeURI

DecodeURI decodes TestObjectQueryParameterDeepObject from URI form.

func (TestObjectQueryParameterDeepObject) EncodeURI

EncodeURI encodes TestObjectQueryParameterDeepObject as URI form.

func (TestObjectQueryParameterDeepObject) GetFilter added in v0.52.0

GetFilter returns the value of Filter.

func (TestObjectQueryParameterDeepObject) GetMax added in v0.52.0

GetMax returns the value of Max.

func (TestObjectQueryParameterDeepObject) GetMin added in v0.52.0

GetMin returns the value of Min.

func (*TestObjectQueryParameterDeepObject) SetFilter added in v0.52.0

func (s *TestObjectQueryParameterDeepObject) SetFilter(val string)

SetFilter sets the value of Filter.

func (*TestObjectQueryParameterDeepObject) SetMax added in v0.52.0

func (s *TestObjectQueryParameterDeepObject) SetMax(val int)

SetMax sets the value of Max.

func (*TestObjectQueryParameterDeepObject) SetMin added in v0.52.0

func (s *TestObjectQueryParameterDeepObject) SetMin(val int)

SetMin sets the value of Min.

type TestObjectQueryParameterFormObject

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

func (*TestObjectQueryParameterFormObject) DecodeURI

DecodeURI decodes TestObjectQueryParameterFormObject from URI form.

func (TestObjectQueryParameterFormObject) EncodeURI

EncodeURI encodes TestObjectQueryParameterFormObject as URI form.

func (TestObjectQueryParameterFormObject) GetFilter added in v0.52.0

GetFilter returns the value of Filter.

func (TestObjectQueryParameterFormObject) GetMax added in v0.52.0

GetMax returns the value of Max.

func (TestObjectQueryParameterFormObject) GetMin added in v0.52.0

GetMin returns the value of Min.

func (*TestObjectQueryParameterFormObject) SetFilter added in v0.52.0

func (s *TestObjectQueryParameterFormObject) SetFilter(val string)

SetFilter sets the value of Filter.

func (*TestObjectQueryParameterFormObject) SetMax added in v0.52.0

func (s *TestObjectQueryParameterFormObject) SetMax(val int)

SetMax sets the value of Max.

func (*TestObjectQueryParameterFormObject) SetMin added in v0.52.0

func (s *TestObjectQueryParameterFormObject) SetMin(val int)

SetMin sets the value of Min.

type TestObjectQueryParameterOK

type TestObjectQueryParameterOK struct {
	Style  string `json:"style"`
	Min    int    `json:"min"`
	Max    int    `json:"max"`
	Filter string `json:"filter"`
}

func (*TestObjectQueryParameterOK) Decode

Decode decodes TestObjectQueryParameterOK from json.

func (TestObjectQueryParameterOK) Encode

func (s TestObjectQueryParameterOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (TestObjectQueryParameterOK) GetFilter added in v0.52.0

func (s TestObjectQueryParameterOK) GetFilter() string

GetFilter returns the value of Filter.

func (TestObjectQueryParameterOK) GetMax added in v0.52.0

func (s TestObjectQueryParameterOK) GetMax() int

GetMax returns the value of Max.

func (TestObjectQueryParameterOK) GetMin added in v0.52.0

func (s TestObjectQueryParameterOK) GetMin() int

GetMin returns the value of Min.

func (TestObjectQueryParameterOK) GetStyle added in v0.52.0

func (s TestObjectQueryParameterOK) GetStyle() string

GetStyle returns the value of Style.

func (TestObjectQueryParameterOK) MarshalJSON

func (s TestObjectQueryParameterOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestObjectQueryParameterOK) SetFilter added in v0.52.0

func (s *TestObjectQueryParameterOK) SetFilter(val string)

SetFilter sets the value of Filter.

func (*TestObjectQueryParameterOK) SetMax added in v0.52.0

func (s *TestObjectQueryParameterOK) SetMax(val int)

SetMax sets the value of Max.

func (*TestObjectQueryParameterOK) SetMin added in v0.52.0

func (s *TestObjectQueryParameterOK) SetMin(val int)

SetMin sets the value of Min.

func (*TestObjectQueryParameterOK) SetStyle added in v0.52.0

func (s *TestObjectQueryParameterOK) SetStyle(val string)

SetStyle sets the value of Style.

func (*TestObjectQueryParameterOK) UnmarshalJSON

func (s *TestObjectQueryParameterOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TestObjectQueryParameterParams

type TestObjectQueryParameterParams struct {
	FormObject OptTestObjectQueryParameterFormObject
	DeepObject OptTestObjectQueryParameterDeepObject
}

type UnimplementedHandler

type UnimplementedHandler struct{}

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

func (UnimplementedHandler) DataGetFormat

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

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

DefaultTest implements defaultTest operation.

POST /defaultTest

func (UnimplementedHandler) ErrorGet

ErrorGet implements errorGet operation.

Returns error.

GET /error

func (UnimplementedHandler) FoobarGet

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

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

func (UnimplementedHandler) FoobarPut(ctx context.Context) (r FoobarPutDef, _ error)

FoobarPut implements PUT /foobar operation.

PUT /foobar

func (UnimplementedHandler) GetHeader

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

GetHeader implements getHeader operation.

Test for header param.

GET /test/header

func (UnimplementedHandler) NoAdditionalPropertiesTest

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

NoAdditionalPropertiesTest implements noAdditionalPropertiesTest operation.

GET /noAdditionalPropertiesTest

func (UnimplementedHandler) NullableDefaultResponse

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

NullableDefaultResponse implements nullableDefaultResponse operation.

GET /nullableDefaultResponse

func (UnimplementedHandler) OneofBug

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

OneofBug implements oneofBug operation.

POST /oneofBug

func (UnimplementedHandler) PatternRecursiveMapGet

func (UnimplementedHandler) PatternRecursiveMapGet(ctx context.Context) (r PatternRecursiveMap, _ error)

PatternRecursiveMapGet implements GET /patternRecursiveMap operation.

GET /patternRecursiveMap

func (UnimplementedHandler) PetCreate

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

PetCreate implements petCreate operation.

Creates pet.

POST /pet

func (UnimplementedHandler) PetFriendsNamesByID

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

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

PetGetAvatarByID implements petGetAvatarByID operation.

Returns pet avatar by id.

GET /pet/avatar

func (UnimplementedHandler) PetGetAvatarByName

PetGetAvatarByName implements petGetAvatarByName operation.

Returns pet's avatar by name.

GET /pet/{name}/avatar

func (UnimplementedHandler) PetGetByName

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

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

func (UnimplementedHandler) PetUpdateNameAliasPost(ctx context.Context, req OptPetName) (r PetUpdateNameAliasPostDef, _ error)

PetUpdateNameAliasPost implements POST /pet/updateNameAlias operation.

POST /pet/updateNameAlias

func (UnimplementedHandler) PetUpdateNamePost

func (UnimplementedHandler) PetUpdateNamePost(ctx context.Context, req OptString) (r PetUpdateNamePostDef, _ error)

PetUpdateNamePost implements POST /pet/updateName operation.

POST /pet/updateName

func (UnimplementedHandler) PetUploadAvatarByID

PetUploadAvatarByID implements petUploadAvatarByID operation.

Uploads pet avatar by id.

POST /pet/avatar

func (UnimplementedHandler) RecursiveArrayGet

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

RecursiveArrayGet implements GET /recursiveArray operation.

GET /recursiveArray

func (UnimplementedHandler) RecursiveMapGet

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

RecursiveMapGet implements GET /recursiveMap operation.

GET /recursiveMap

func (UnimplementedHandler) SecurityTest

func (UnimplementedHandler) SecurityTest(ctx context.Context) (r string, _ error)

SecurityTest implements securityTest operation.

GET /securityTest

func (UnimplementedHandler) StringIntMapGet

func (UnimplementedHandler) StringIntMapGet(ctx context.Context) (r StringIntMap, _ error)

StringIntMapGet implements GET /stringIntMap operation.

GET /stringIntMap

func (UnimplementedHandler) TestContentParameter

func (UnimplementedHandler) TestContentParameter(ctx context.Context, params TestContentParameterParams) (r string, _ error)

TestContentParameter implements testContentParameter operation.

GET /testContentParameter

func (UnimplementedHandler) TestFloatValidation

TestFloatValidation implements testFloatValidation operation.

POST /testFloatValidation

func (UnimplementedHandler) TestNullableOneofs

func (UnimplementedHandler) TestNullableOneofs(ctx context.Context) (r TestNullableOneofsRes, _ error)

TestNullableOneofs implements testNullableOneofs operation.

GET /testNullableOneofs

func (UnimplementedHandler) TestObjectQueryParameter

TestObjectQueryParameter implements testObjectQueryParameter operation.

GET /testObjectQueryParameter

type ValidationStringMap

type ValidationStringMap map[string]string

Ref: #/components/schemas/ValidationStringMap

func (*ValidationStringMap) Decode

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

Decode decodes ValidationStringMap from json.

func (ValidationStringMap) Encode

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

Encode implements json.Marshaler.

func (ValidationStringMap) MarshalJSON

func (s ValidationStringMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidationStringMap) UnmarshalJSON

func (s *ValidationStringMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ValidationStringMap) Validate

func (s ValidationStringMap) Validate() error

Jump to

Keyboard shortcuts

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