output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPISpecJSON

func GetOpenAPISpecJSON() ([]byte, error)

GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.

Types

type AdditionalPropsAny

type AdditionalPropsAny = map[string]any

#/components/schemas/AdditionalPropsAny

type AdditionalPropsNone

type AdditionalPropsNone struct {
	Known                *string        `form:"known,omitempty" json:"known,omitempty"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/AdditionalPropsNone

func (*AdditionalPropsNone) ApplyDefaults

func (s *AdditionalPropsNone) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropsNone) Get

func (a AdditionalPropsNone) Get(fieldName string) (value any, found bool)

Get returns the specified additional property value and whether it was found.

func (AdditionalPropsNone) MarshalJSON

func (a AdditionalPropsNone) MarshalJSON() ([]byte, error)

func (*AdditionalPropsNone) Set

func (a *AdditionalPropsNone) Set(fieldName string, value any)

Set sets an additional property value.

func (*AdditionalPropsNone) UnmarshalJSON

func (a *AdditionalPropsNone) UnmarshalJSON(b []byte) error

type AdditionalPropsObject

type AdditionalPropsObject = map[string]any

#/components/schemas/AdditionalPropsObject

type AdditionalPropsTyped

type AdditionalPropsTyped = map[string]int

#/components/schemas/AdditionalPropsTyped

type AdditionalPropsWithProps

type AdditionalPropsWithProps struct {
	ID                   *int              `form:"id,omitempty" json:"id,omitempty"`
	AdditionalProperties map[string]string `json:"-"`
}

#/components/schemas/AdditionalPropsWithProps

func (*AdditionalPropsWithProps) ApplyDefaults

func (s *AdditionalPropsWithProps) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropsWithProps) Get

func (a AdditionalPropsWithProps) Get(fieldName string) (value string, found bool)

Get returns the specified additional property value and whether it was found.

func (AdditionalPropsWithProps) MarshalJSON

func (a AdditionalPropsWithProps) MarshalJSON() ([]byte, error)

func (*AdditionalPropsWithProps) Set

func (a *AdditionalPropsWithProps) Set(fieldName string, value string)

Set sets an additional property value.

func (*AdditionalPropsWithProps) UnmarshalJSON

func (a *AdditionalPropsWithProps) UnmarshalJSON(b []byte) error

type AllOfInlineOnly

type AllOfInlineOnly struct {
	First  *string `form:"first,omitempty" json:"first,omitempty"`
	Second *int    `form:"second,omitempty" json:"second,omitempty"`
}

#/components/schemas/AllOfInlineOnly

func (*AllOfInlineOnly) ApplyDefaults

func (s *AllOfInlineOnly) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllOfMultipleRefs

type AllOfMultipleRefs struct {
	ID        int        `form:"id" json:"id"`
	CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Name      *string    `form:"name,omitempty" json:"name,omitempty"`
	Merged    *bool      `form:"merged,omitempty" json:"merged,omitempty"`
}

#/components/schemas/AllOfMultipleRefs

func (*AllOfMultipleRefs) ApplyDefaults

func (s *AllOfMultipleRefs) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllOfWithOneOf

type AllOfWithOneOf struct {
	ID                   *int                  `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt            *time.Time            `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	AllOfWithOneOfAllOf1 *AllOfWithOneOfAllOf1 `json:"-"`
}

#/components/schemas/AllOfWithOneOf

func (*AllOfWithOneOf) ApplyDefaults

func (s *AllOfWithOneOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AllOfWithOneOf) MarshalJSON

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

func (*AllOfWithOneOf) UnmarshalJSON

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

type AllOfWithOneOfAllOf1

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

func (*AllOfWithOneOfAllOf1) ApplyDefaults

func (t *AllOfWithOneOfAllOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AllOfWithOneOfAllOf1) AsCat

func (t AllOfWithOneOfAllOf1) AsCat() (Cat, error)

AsCat returns the union data inside the AllOfWithOneOfAllOf1 as a Cat.

func (AllOfWithOneOfAllOf1) AsDog

func (t AllOfWithOneOfAllOf1) AsDog() (Dog, error)

AsDog returns the union data inside the AllOfWithOneOfAllOf1 as a Dog.

func (AllOfWithOneOfAllOf1) Discriminator

func (t AllOfWithOneOfAllOf1) Discriminator() (string, error)

Discriminator extracts the discriminator property value from the union data.

func (*AllOfWithOneOfAllOf1) FromCat

func (t *AllOfWithOneOfAllOf1) FromCat(v Cat) error

FromCat overwrites any union data inside the AllOfWithOneOfAllOf1 as the provided Cat.

func (*AllOfWithOneOfAllOf1) FromDog

func (t *AllOfWithOneOfAllOf1) FromDog(v Dog) error

FromDog overwrites any union data inside the AllOfWithOneOfAllOf1 as the provided Dog.

func (AllOfWithOneOfAllOf1) MarshalJSON

func (t AllOfWithOneOfAllOf1) MarshalJSON() ([]byte, error)

func (*AllOfWithOneOfAllOf1) MergeCat

func (t *AllOfWithOneOfAllOf1) MergeCat(v Cat) error

MergeCat performs a merge with any union data inside the AllOfWithOneOfAllOf1, using the provided Cat.

func (*AllOfWithOneOfAllOf1) MergeDog

func (t *AllOfWithOneOfAllOf1) MergeDog(v Dog) error

MergeDog performs a merge with any union data inside the AllOfWithOneOfAllOf1, using the provided Dog.

func (*AllOfWithOneOfAllOf1) UnmarshalJSON

func (t *AllOfWithOneOfAllOf1) UnmarshalJSON(b []byte) error

func (AllOfWithOneOfAllOf1) ValueByDiscriminator

func (t AllOfWithOneOfAllOf1) ValueByDiscriminator() (any, error)

ValueByDiscriminator returns the union member based on the discriminator value.

type AllTypesOptional

type AllTypesOptional struct {
	IntField      *int                       `form:"intField,omitempty" json:"intField,omitempty"`
	Int32Field    *int32                     `form:"int32Field,omitempty" json:"int32Field,omitempty"`
	Int64Field    *int64                     `form:"int64Field,omitempty" json:"int64Field,omitempty"`
	FloatField    *float32                   `form:"floatField,omitempty" json:"floatField,omitempty"`
	DoubleField   *float64                   `form:"doubleField,omitempty" json:"doubleField,omitempty"`
	NumberField   *float32                   `form:"numberField,omitempty" json:"numberField,omitempty"`
	StringField   *string                    `form:"stringField,omitempty" json:"stringField,omitempty"`
	BoolField     *bool                      `form:"boolField,omitempty" json:"boolField,omitempty"`
	DateField     *oapiCodegenTypesPkg.Date  `form:"dateField,omitempty" json:"dateField,omitempty"`
	DateTimeField *time.Time                 `form:"dateTimeField,omitempty" json:"dateTimeField,omitempty"`
	UUIDField     *oapiCodegenTypesPkg.UUID  `form:"uuidField,omitempty" json:"uuidField,omitempty"`
	EmailField    *oapiCodegenTypesPkg.Email `form:"emailField,omitempty" json:"emailField,omitempty"`
}

#/components/schemas/AllTypesOptional

func (*AllTypesOptional) ApplyDefaults

func (s *AllTypesOptional) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllTypesRequired

type AllTypesRequired struct {
	IntField      int                       `form:"intField" json:"intField"`
	Int32Field    int32                     `form:"int32Field" json:"int32Field"`
	Int64Field    int64                     `form:"int64Field" json:"int64Field"`
	FloatField    float32                   `form:"floatField" json:"floatField"`
	DoubleField   float64                   `form:"doubleField" json:"doubleField"`
	NumberField   float32                   `form:"numberField" json:"numberField"`
	StringField   string                    `form:"stringField" json:"stringField"`
	BoolField     bool                      `form:"boolField" json:"boolField"`
	DateField     oapiCodegenTypesPkg.Date  `form:"dateField" json:"dateField"`
	DateTimeField time.Time                 `form:"dateTimeField" json:"dateTimeField"`
	UUIDField     oapiCodegenTypesPkg.UUID  `form:"uuidField" json:"uuidField"`
	EmailField    oapiCodegenTypesPkg.Email `form:"emailField" json:"emailField"`
	URIField      string                    `form:"uriField" json:"uriField"`
	HostnameField string                    `form:"hostnameField" json:"hostnameField"`
	Ipv4Field     string                    `form:"ipv4Field" json:"ipv4Field"`
	Ipv6Field     string                    `form:"ipv6Field" json:"ipv6Field"`
	ByteField     []byte                    `form:"byteField" json:"byteField"`
	BinaryField   oapiCodegenTypesPkg.File  `form:"binaryField" json:"binaryField"`
	PasswordField string                    `form:"passwordField" json:"passwordField"`
}

#/components/schemas/AllTypesRequired

func (*AllTypesRequired) ApplyDefaults

func (s *AllTypesRequired) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfMixed

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

func (*AnyOfMixed) ApplyDefaults

func (t *AnyOfMixed) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfMixed) AsAnyOfMixedAnyOf2

func (t AnyOfMixed) AsAnyOfMixedAnyOf2() (AnyOfMixedAnyOf2, error)

AsAnyOfMixedAnyOf2 returns the union data inside the AnyOfMixed as a AnyOfMixedAnyOf2.

func (AnyOfMixed) AsSimpleObject

func (t AnyOfMixed) AsSimpleObject() (SimpleObject, error)

AsSimpleObject returns the union data inside the AnyOfMixed as a SimpleObject.

func (AnyOfMixed) AsString0

func (t AnyOfMixed) AsString0() (string, error)

AsString0 returns the union data inside the AnyOfMixed as a string.

func (*AnyOfMixed) FromAnyOfMixedAnyOf2

func (t *AnyOfMixed) FromAnyOfMixedAnyOf2(v AnyOfMixedAnyOf2) error

FromAnyOfMixedAnyOf2 overwrites any union data inside the AnyOfMixed as the provided AnyOfMixedAnyOf2.

func (*AnyOfMixed) FromSimpleObject

func (t *AnyOfMixed) FromSimpleObject(v SimpleObject) error

FromSimpleObject overwrites any union data inside the AnyOfMixed as the provided SimpleObject.

func (*AnyOfMixed) FromString0

func (t *AnyOfMixed) FromString0(v string) error

FromString0 overwrites any union data inside the AnyOfMixed as the provided string.

func (AnyOfMixed) MarshalJSON

func (t AnyOfMixed) MarshalJSON() ([]byte, error)

func (*AnyOfMixed) MergeAnyOfMixedAnyOf2

func (t *AnyOfMixed) MergeAnyOfMixedAnyOf2(v AnyOfMixedAnyOf2) error

MergeAnyOfMixedAnyOf2 performs a merge with any union data inside the AnyOfMixed, using the provided AnyOfMixedAnyOf2.

func (*AnyOfMixed) MergeSimpleObject

func (t *AnyOfMixed) MergeSimpleObject(v SimpleObject) error

MergeSimpleObject performs a merge with any union data inside the AnyOfMixed, using the provided SimpleObject.

func (*AnyOfMixed) MergeString0

func (t *AnyOfMixed) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the AnyOfMixed, using the provided string.

func (*AnyOfMixed) UnmarshalJSON

func (t *AnyOfMixed) UnmarshalJSON(b []byte) error

type AnyOfMixedAnyOf2

type AnyOfMixedAnyOf2 struct {
	Inline *bool `form:"inline,omitempty" json:"inline,omitempty"`
}

#/components/schemas/AnyOfMixed/anyOf/2

func (*AnyOfMixedAnyOf2) ApplyDefaults

func (s *AnyOfMixedAnyOf2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfNullable

type AnyOfNullable = oapiCodegenTypesPkg.Nullable[string]

#/components/schemas/AnyOfNullable

type AnyOfObjects

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

func (*AnyOfObjects) ApplyDefaults

func (t *AnyOfObjects) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfObjects) AsBaseProperties

func (t AnyOfObjects) AsBaseProperties() (BaseProperties, error)

AsBaseProperties returns the union data inside the AnyOfObjects as a BaseProperties.

func (AnyOfObjects) AsSimpleObject

func (t AnyOfObjects) AsSimpleObject() (SimpleObject, error)

AsSimpleObject returns the union data inside the AnyOfObjects as a SimpleObject.

func (*AnyOfObjects) FromBaseProperties

func (t *AnyOfObjects) FromBaseProperties(v BaseProperties) error

FromBaseProperties overwrites any union data inside the AnyOfObjects as the provided BaseProperties.

func (*AnyOfObjects) FromSimpleObject

func (t *AnyOfObjects) FromSimpleObject(v SimpleObject) error

FromSimpleObject overwrites any union data inside the AnyOfObjects as the provided SimpleObject.

func (AnyOfObjects) MarshalJSON

func (t AnyOfObjects) MarshalJSON() ([]byte, error)

func (*AnyOfObjects) MergeBaseProperties

func (t *AnyOfObjects) MergeBaseProperties(v BaseProperties) error

MergeBaseProperties performs a merge with any union data inside the AnyOfObjects, using the provided BaseProperties.

func (*AnyOfObjects) MergeSimpleObject

func (t *AnyOfObjects) MergeSimpleObject(v SimpleObject) error

MergeSimpleObject performs a merge with any union data inside the AnyOfObjects, using the provided SimpleObject.

func (*AnyOfObjects) UnmarshalJSON

func (t *AnyOfObjects) UnmarshalJSON(b []byte) error

type AnyOfPrimitives

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

func (*AnyOfPrimitives) ApplyDefaults

func (t *AnyOfPrimitives) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfPrimitives) AsInt1

func (t AnyOfPrimitives) AsInt1() (int, error)

AsInt1 returns the union data inside the AnyOfPrimitives as a int.

func (AnyOfPrimitives) AsString0

func (t AnyOfPrimitives) AsString0() (string, error)

AsString0 returns the union data inside the AnyOfPrimitives as a string.

func (*AnyOfPrimitives) FromInt1

func (t *AnyOfPrimitives) FromInt1(v int) error

FromInt1 overwrites any union data inside the AnyOfPrimitives as the provided int.

func (*AnyOfPrimitives) FromString0

func (t *AnyOfPrimitives) FromString0(v string) error

FromString0 overwrites any union data inside the AnyOfPrimitives as the provided string.

func (AnyOfPrimitives) MarshalJSON

func (t AnyOfPrimitives) MarshalJSON() ([]byte, error)

func (*AnyOfPrimitives) MergeInt1

func (t *AnyOfPrimitives) MergeInt1(v int) error

MergeInt1 performs a merge with any union data inside the AnyOfPrimitives, using the provided int.

func (*AnyOfPrimitives) MergeString0

func (t *AnyOfPrimitives) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the AnyOfPrimitives, using the provided string.

func (*AnyOfPrimitives) UnmarshalJSON

func (t *AnyOfPrimitives) UnmarshalJSON(b []byte) error

type AnyValue

type AnyValue = any

#/components/schemas/AnyValue Accepts any JSON value

type ArrayOfAnyOf

type ArrayOfAnyOf = []ArrayOfAnyOfItem

#/components/schemas/ArrayOfAnyOf

type ArrayOfAnyOfItem

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

func (*ArrayOfAnyOfItem) ApplyDefaults

func (t *ArrayOfAnyOfItem) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ArrayOfAnyOfItem) AsBaseProperties

func (t ArrayOfAnyOfItem) AsBaseProperties() (BaseProperties, error)

AsBaseProperties returns the union data inside the ArrayOfAnyOfItem as a BaseProperties.

func (ArrayOfAnyOfItem) AsSimpleObject

func (t ArrayOfAnyOfItem) AsSimpleObject() (SimpleObject, error)

AsSimpleObject returns the union data inside the ArrayOfAnyOfItem as a SimpleObject.

func (*ArrayOfAnyOfItem) FromBaseProperties

func (t *ArrayOfAnyOfItem) FromBaseProperties(v BaseProperties) error

FromBaseProperties overwrites any union data inside the ArrayOfAnyOfItem as the provided BaseProperties.

func (*ArrayOfAnyOfItem) FromSimpleObject

func (t *ArrayOfAnyOfItem) FromSimpleObject(v SimpleObject) error

FromSimpleObject overwrites any union data inside the ArrayOfAnyOfItem as the provided SimpleObject.

func (ArrayOfAnyOfItem) MarshalJSON

func (t ArrayOfAnyOfItem) MarshalJSON() ([]byte, error)

func (*ArrayOfAnyOfItem) MergeBaseProperties

func (t *ArrayOfAnyOfItem) MergeBaseProperties(v BaseProperties) error

MergeBaseProperties performs a merge with any union data inside the ArrayOfAnyOfItem, using the provided BaseProperties.

func (*ArrayOfAnyOfItem) MergeSimpleObject

func (t *ArrayOfAnyOfItem) MergeSimpleObject(v SimpleObject) error

MergeSimpleObject performs a merge with any union data inside the ArrayOfAnyOfItem, using the provided SimpleObject.

func (*ArrayOfAnyOfItem) UnmarshalJSON

func (t *ArrayOfAnyOfItem) UnmarshalJSON(b []byte) error

type ArrayTypes

type ArrayTypes struct {
	StringArray          []string                          `form:"stringArray,omitempty" json:"stringArray,omitempty"`
	IntArray             []int                             `form:"intArray,omitempty" json:"intArray,omitempty"`
	ObjectArray          []SimpleObject                    `form:"objectArray,omitempty" json:"objectArray,omitempty"`
	InlineObjectArray    []ArrayTypesInlineObjectArrayItem `form:"inlineObjectArray,omitempty" json:"inlineObjectArray,omitempty"`
	NestedArray          [][]string                        `form:"nestedArray,omitempty" json:"nestedArray,omitempty"`
	NullableArray        []string                          `form:"nullableArray,omitempty" json:"nullableArray,omitempty"`
	ArrayWithConstraints []string                          `form:"arrayWithConstraints,omitempty" json:"arrayWithConstraints,omitempty"`
}

#/components/schemas/ArrayTypes

func (*ArrayTypes) ApplyDefaults

func (s *ArrayTypes) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ArrayTypesInlineObjectArray

type ArrayTypesInlineObjectArray = []ArrayTypesInlineObjectArrayItem

#/components/schemas/ArrayTypes/properties/inlineObjectArray

type ArrayTypesInlineObjectArrayItem

type ArrayTypesInlineObjectArrayItem struct {
	ID   *int    `form:"id,omitempty" json:"id,omitempty"`
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/ArrayTypes/properties/inlineObjectArray/items

func (*ArrayTypesInlineObjectArrayItem) ApplyDefaults

func (s *ArrayTypesInlineObjectArrayItem) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ArrayTypesObjectArray

type ArrayTypesObjectArray = []SimpleObject

#/components/schemas/ArrayTypes/properties/objectArray

type BaseProperties

type BaseProperties struct {
	ID        *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
}

#/components/schemas/BaseProperties

func (*BaseProperties) ApplyDefaults

func (s *BaseProperties) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Cat

type Cat struct {
	PetType       string   `form:"petType" json:"petType"`
	Meow          string   `form:"meow" json:"meow"`
	WhiskerLength *float32 `form:"whiskerLength,omitempty" json:"whiskerLength,omitempty"`
}

#/components/schemas/Cat

func (*Cat) ApplyDefaults

func (s *Cat) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexNested

type ComplexNested struct {
	Metadata map[string]any          `form:"metadata,omitempty" json:"metadata,omitempty"`
	Items    []ComplexNestedItemItem `form:"items,omitempty" json:"items,omitempty"`
	Config   *ComplexNestedConfig    `form:"config,omitempty" json:"config,omitempty"`
}

#/components/schemas/ComplexNested

func (*ComplexNested) ApplyDefaults

func (s *ComplexNested) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexNestedConfig

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

func (*ComplexNestedConfig) ApplyDefaults

func (t *ComplexNestedConfig) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ComplexNestedConfig) AsComplexNestedConfigOneOf0

func (t ComplexNestedConfig) AsComplexNestedConfigOneOf0() (ComplexNestedConfigOneOf0, error)

AsComplexNestedConfigOneOf0 returns the union data inside the ComplexNestedConfig as a ComplexNestedConfigOneOf0.

func (ComplexNestedConfig) AsComplexNestedConfigOneOf1

func (t ComplexNestedConfig) AsComplexNestedConfigOneOf1() (ComplexNestedConfigOneOf1, error)

AsComplexNestedConfigOneOf1 returns the union data inside the ComplexNestedConfig as a ComplexNestedConfigOneOf1.

func (*ComplexNestedConfig) FromComplexNestedConfigOneOf0

func (t *ComplexNestedConfig) FromComplexNestedConfigOneOf0(v ComplexNestedConfigOneOf0) error

FromComplexNestedConfigOneOf0 overwrites any union data inside the ComplexNestedConfig as the provided ComplexNestedConfigOneOf0.

func (*ComplexNestedConfig) FromComplexNestedConfigOneOf1

func (t *ComplexNestedConfig) FromComplexNestedConfigOneOf1(v ComplexNestedConfigOneOf1) error

FromComplexNestedConfigOneOf1 overwrites any union data inside the ComplexNestedConfig as the provided ComplexNestedConfigOneOf1.

func (ComplexNestedConfig) MarshalJSON

func (t ComplexNestedConfig) MarshalJSON() ([]byte, error)

func (*ComplexNestedConfig) MergeComplexNestedConfigOneOf0

func (t *ComplexNestedConfig) MergeComplexNestedConfigOneOf0(v ComplexNestedConfigOneOf0) error

MergeComplexNestedConfigOneOf0 performs a merge with any union data inside the ComplexNestedConfig, using the provided ComplexNestedConfigOneOf0.

func (*ComplexNestedConfig) MergeComplexNestedConfigOneOf1

func (t *ComplexNestedConfig) MergeComplexNestedConfigOneOf1(v ComplexNestedConfigOneOf1) error

MergeComplexNestedConfigOneOf1 performs a merge with any union data inside the ComplexNestedConfig, using the provided ComplexNestedConfigOneOf1.

func (*ComplexNestedConfig) UnmarshalJSON

func (t *ComplexNestedConfig) UnmarshalJSON(b []byte) error

type ComplexNestedConfigOneOf0

type ComplexNestedConfigOneOf0 struct {
	Mode  *string `form:"mode,omitempty" json:"mode,omitempty"`
	Value *string `form:"value,omitempty" json:"value,omitempty"`
}

#/components/schemas/ComplexNested/properties/config/oneOf/0

func (*ComplexNestedConfigOneOf0) ApplyDefaults

func (s *ComplexNestedConfigOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexNestedConfigOneOf1

type ComplexNestedConfigOneOf1 struct {
	Mode    *string           `form:"mode,omitempty" json:"mode,omitempty"`
	Options map[string]string `form:"options,omitempty" json:"options,omitempty"`
}

#/components/schemas/ComplexNested/properties/config/oneOf/1

func (*ComplexNestedConfigOneOf1) ApplyDefaults

func (s *ComplexNestedConfigOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexNestedConfigOneOf1Options

type ComplexNestedConfigOneOf1Options = map[string]string

#/components/schemas/ComplexNested/properties/config/oneOf/1/properties/options

type ComplexNestedItem

type ComplexNestedItem = []ComplexNestedItemItem

#/components/schemas/ComplexNested/properties/items

type ComplexNestedItemItem

type ComplexNestedItemItem struct {
	ID        *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Tags      []string   `form:"tags,omitempty" json:"tags,omitempty"`
}

#/components/schemas/ComplexNested/properties/items/items

func (*ComplexNestedItemItem) ApplyDefaults

func (s *ComplexNestedItemItem) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexNestedMetadata

type ComplexNestedMetadata = map[string]any

#/components/schemas/ComplexNested/properties/metadata

type ComplexNestedMetadataValue

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

func (*ComplexNestedMetadataValue) ApplyDefaults

func (t *ComplexNestedMetadataValue) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ComplexNestedMetadataValue) AsInt1

func (t ComplexNestedMetadataValue) AsInt1() (int, error)

AsInt1 returns the union data inside the ComplexNestedMetadataValue as a int.

func (ComplexNestedMetadataValue) AsLBracketString2

func (t ComplexNestedMetadataValue) AsLBracketString2() ([]string, error)

AsLBracketString2 returns the union data inside the ComplexNestedMetadataValue as a []string.

func (ComplexNestedMetadataValue) AsString0

func (t ComplexNestedMetadataValue) AsString0() (string, error)

AsString0 returns the union data inside the ComplexNestedMetadataValue as a string.

func (*ComplexNestedMetadataValue) FromInt1

func (t *ComplexNestedMetadataValue) FromInt1(v int) error

FromInt1 overwrites any union data inside the ComplexNestedMetadataValue as the provided int.

func (*ComplexNestedMetadataValue) FromLBracketString2

func (t *ComplexNestedMetadataValue) FromLBracketString2(v []string) error

FromLBracketString2 overwrites any union data inside the ComplexNestedMetadataValue as the provided []string.

func (*ComplexNestedMetadataValue) FromString0

func (t *ComplexNestedMetadataValue) FromString0(v string) error

FromString0 overwrites any union data inside the ComplexNestedMetadataValue as the provided string.

func (ComplexNestedMetadataValue) MarshalJSON

func (t ComplexNestedMetadataValue) MarshalJSON() ([]byte, error)

func (*ComplexNestedMetadataValue) MergeInt1

func (t *ComplexNestedMetadataValue) MergeInt1(v int) error

MergeInt1 performs a merge with any union data inside the ComplexNestedMetadataValue, using the provided int.

func (*ComplexNestedMetadataValue) MergeLBracketString2

func (t *ComplexNestedMetadataValue) MergeLBracketString2(v []string) error

MergeLBracketString2 performs a merge with any union data inside the ComplexNestedMetadataValue, using the provided []string.

func (*ComplexNestedMetadataValue) MergeString0

func (t *ComplexNestedMetadataValue) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the ComplexNestedMetadataValue, using the provided string.

func (*ComplexNestedMetadataValue) UnmarshalJSON

func (t *ComplexNestedMetadataValue) UnmarshalJSON(b []byte) error

type DeepInheritance

type DeepInheritance struct {
	ID          *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt   *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Name        string     `form:"name" json:"name"`
	Description *string    `form:"description,omitempty" json:"description,omitempty"`
	Extra       *string    `form:"extra,omitempty" json:"extra,omitempty"`
}

#/components/schemas/DeepInheritance

func (*DeepInheritance) ApplyDefaults

func (s *DeepInheritance) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Dog

type Dog struct {
	PetType    string   `form:"petType" json:"petType"`
	Bark       string   `form:"bark" json:"bark"`
	TailLength *float32 `form:"tailLength,omitempty" json:"tailLength,omitempty"`
}

#/components/schemas/Dog

func (*Dog) ApplyDefaults

func (s *Dog) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EmptySchema

type EmptySchema = any

#/components/schemas/EmptySchema

type ExplicitAny

type ExplicitAny = oapiCodegenTypesPkg.Nullable[string]

#/components/schemas/ExplicitAny

type ExtendedObject

type ExtendedObject struct {
	ID          *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt   *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Name        string     `form:"name" json:"name"`
	Description *string    `form:"description,omitempty" json:"description,omitempty"`
}

#/components/schemas/ExtendedObject

func (*ExtendedObject) ApplyDefaults

func (s *ExtendedObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type GetInlineResponseJSONResponse

type GetInlineResponseJSONResponse struct {
	ID   int    `form:"id" json:"id"`
	Name string `form:"name" json:"name"`
}

#/paths//inline-response/get/responses/200/content/application/json/schema

func (*GetInlineResponseJSONResponse) ApplyDefaults

func (s *GetInlineResponseJSONResponse) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type InlineEnumInProperty

type InlineEnumInProperty struct {
	InlineStatus *string `form:"inlineStatus,omitempty" json:"inlineStatus,omitempty"`
}

#/components/schemas/InlineEnumInProperty

func (*InlineEnumInProperty) ApplyDefaults

func (s *InlineEnumInProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type InlineEnumInPropertyInlineStatus

type InlineEnumInPropertyInlineStatus string

#/components/schemas/InlineEnumInProperty/properties/inlineStatus

type IntegerEnum

type IntegerEnum int

#/components/schemas/IntegerEnum

const (
	IntegerEnumN1 IntegerEnum = 1
	IntegerEnumN2 IntegerEnum = 2
	IntegerEnumN3 IntegerEnum = 3
)

type LinkedListNode

type LinkedListNode struct {
	Value *int            `form:"value,omitempty" json:"value,omitempty"`
	Next  *LinkedListNode `form:"next,omitempty" json:"next,omitempty"`
}

#/components/schemas/LinkedListNode

func (*LinkedListNode) ApplyDefaults

func (s *LinkedListNode) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NestedMap

type NestedMap = map[string]map[string]string

#/components/schemas/NestedMap

type NestedMapValue

type NestedMapValue = map[string]string

#/components/schemas/NestedMap/additionalProperties

type NestedObject

type NestedObject struct {
	Outer *NestedObjectOuter `form:"outer,omitempty" json:"outer,omitempty"`
}

#/components/schemas/NestedObject

func (*NestedObject) ApplyDefaults

func (s *NestedObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NestedObjectOuter

type NestedObjectOuter struct {
	Inner *NestedObjectOuterInner `form:"inner,omitempty" json:"inner,omitempty"`
}

#/components/schemas/NestedObject/properties/outer

func (*NestedObjectOuter) ApplyDefaults

func (s *NestedObjectOuter) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NestedObjectOuterInner

type NestedObjectOuterInner struct {
	Value *string `form:"value,omitempty" json:"value,omitempty"`
}

#/components/schemas/NestedObject/properties/outer/properties/inner

func (*NestedObjectOuterInner) ApplyDefaults

func (s *NestedObjectOuterInner) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableOptional

type NullableOptional struct {
	NullableString oapiCodegenTypesPkg.Nullable[string] `form:"nullableString,omitempty" json:"nullableString,omitempty"`
	NullableInt    oapiCodegenTypesPkg.Nullable[int]    `form:"nullableInt,omitempty" json:"nullableInt,omitempty"`
}

#/components/schemas/NullableOptional

func (*NullableOptional) ApplyDefaults

func (s *NullableOptional) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableRefAnyOf

type NullableRefAnyOf struct {
	NullableObject oapiCodegenTypesPkg.Nullable[SimpleObject] `form:"nullableObject" json:"nullableObject"`
}

#/components/schemas/NullableRefAnyOf

func (*NullableRefAnyOf) ApplyDefaults

func (s *NullableRefAnyOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableRefOneOf

type NullableRefOneOf struct {
	NullableObject         oapiCodegenTypesPkg.Nullable[SimpleObject] `form:"nullableObject" json:"nullableObject"`
	NullableObjectOptional oapiCodegenTypesPkg.Nullable[SimpleObject] `form:"nullableObjectOptional,omitempty" json:"nullableObjectOptional,omitempty"`
}

#/components/schemas/NullableRefOneOf

func (*NullableRefOneOf) ApplyDefaults

func (s *NullableRefOneOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableRequired

type NullableRequired struct {
	NullableString oapiCodegenTypesPkg.Nullable[string]                         `form:"nullableString" json:"nullableString"`
	NullableInt    oapiCodegenTypesPkg.Nullable[int]                            `form:"nullableInt" json:"nullableInt"`
	NullableObject oapiCodegenTypesPkg.Nullable[NullableRequiredNullableObject] `form:"nullableObject" json:"nullableObject"`
}

#/components/schemas/NullableRequired

func (*NullableRequired) ApplyDefaults

func (s *NullableRequired) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableRequiredNullableObject

type NullableRequiredNullableObject struct {
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/NullableRequired/properties/nullableObject

func (*NullableRequiredNullableObject) ApplyDefaults

func (s *NullableRequiredNullableObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectMap

type ObjectMap = map[string]any

#/components/schemas/ObjectMap

type ObjectWithAnyOfProperty

type ObjectWithAnyOfProperty struct {
	Value *ObjectWithAnyOfPropertyValue `form:"value,omitempty" json:"value,omitempty"`
}

#/components/schemas/ObjectWithAnyOfProperty

func (*ObjectWithAnyOfProperty) ApplyDefaults

func (s *ObjectWithAnyOfProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithAnyOfPropertyValue

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

func (*ObjectWithAnyOfPropertyValue) ApplyDefaults

func (t *ObjectWithAnyOfPropertyValue) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ObjectWithAnyOfPropertyValue) AsBool2

func (t ObjectWithAnyOfPropertyValue) AsBool2() (bool, error)

AsBool2 returns the union data inside the ObjectWithAnyOfPropertyValue as a bool.

func (ObjectWithAnyOfPropertyValue) AsInt1

func (t ObjectWithAnyOfPropertyValue) AsInt1() (int, error)

AsInt1 returns the union data inside the ObjectWithAnyOfPropertyValue as a int.

func (ObjectWithAnyOfPropertyValue) AsString0

func (t ObjectWithAnyOfPropertyValue) AsString0() (string, error)

AsString0 returns the union data inside the ObjectWithAnyOfPropertyValue as a string.

func (*ObjectWithAnyOfPropertyValue) FromBool2

func (t *ObjectWithAnyOfPropertyValue) FromBool2(v bool) error

FromBool2 overwrites any union data inside the ObjectWithAnyOfPropertyValue as the provided bool.

func (*ObjectWithAnyOfPropertyValue) FromInt1

func (t *ObjectWithAnyOfPropertyValue) FromInt1(v int) error

FromInt1 overwrites any union data inside the ObjectWithAnyOfPropertyValue as the provided int.

func (*ObjectWithAnyOfPropertyValue) FromString0

func (t *ObjectWithAnyOfPropertyValue) FromString0(v string) error

FromString0 overwrites any union data inside the ObjectWithAnyOfPropertyValue as the provided string.

func (ObjectWithAnyOfPropertyValue) MarshalJSON

func (t ObjectWithAnyOfPropertyValue) MarshalJSON() ([]byte, error)

func (*ObjectWithAnyOfPropertyValue) MergeBool2

func (t *ObjectWithAnyOfPropertyValue) MergeBool2(v bool) error

MergeBool2 performs a merge with any union data inside the ObjectWithAnyOfPropertyValue, using the provided bool.

func (*ObjectWithAnyOfPropertyValue) MergeInt1

func (t *ObjectWithAnyOfPropertyValue) MergeInt1(v int) error

MergeInt1 performs a merge with any union data inside the ObjectWithAnyOfPropertyValue, using the provided int.

func (*ObjectWithAnyOfPropertyValue) MergeString0

func (t *ObjectWithAnyOfPropertyValue) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the ObjectWithAnyOfPropertyValue, using the provided string.

func (*ObjectWithAnyOfPropertyValue) UnmarshalJSON

func (t *ObjectWithAnyOfPropertyValue) UnmarshalJSON(b []byte) error

type ObjectWithEnum

type ObjectWithEnum struct {
	Status   *string `form:"status,omitempty" json:"status,omitempty"`
	Priority *int    `form:"priority,omitempty" json:"priority,omitempty"`
}

#/components/schemas/ObjectWithEnum

func (*ObjectWithEnum) ApplyDefaults

func (s *ObjectWithEnum) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithEnumPriority

type ObjectWithEnumPriority int

#/components/schemas/ObjectWithEnum/properties/priority

const (
	ObjectWithEnumPriorityN1 ObjectWithEnumPriority = 1
	ObjectWithEnumPriorityN2 ObjectWithEnumPriority = 2
	ObjectWithEnumPriorityN3 ObjectWithEnumPriority = 3
)

type ObjectWithEnumStatus

type ObjectWithEnumStatus string

#/components/schemas/ObjectWithEnum/properties/status

const (
	Pending   ObjectWithEnumStatus = "pending"
	Active    ObjectWithEnumStatus = "active"
	Completed ObjectWithEnumStatus = "completed"
)

type ObjectWithOneOfProperty

type ObjectWithOneOfProperty struct {
	ID      *int                            `form:"id,omitempty" json:"id,omitempty"`
	Variant *ObjectWithOneOfPropertyVariant `form:"variant,omitempty" json:"variant,omitempty"`
}

#/components/schemas/ObjectWithOneOfProperty

func (*ObjectWithOneOfProperty) ApplyDefaults

func (s *ObjectWithOneOfProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithOneOfPropertyVariant

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

func (*ObjectWithOneOfPropertyVariant) ApplyDefaults

func (t *ObjectWithOneOfPropertyVariant) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ObjectWithOneOfPropertyVariant) AsCat

AsCat returns the union data inside the ObjectWithOneOfPropertyVariant as a Cat.

func (ObjectWithOneOfPropertyVariant) AsDog

AsDog returns the union data inside the ObjectWithOneOfPropertyVariant as a Dog.

func (ObjectWithOneOfPropertyVariant) Discriminator

func (t ObjectWithOneOfPropertyVariant) Discriminator() (string, error)

Discriminator extracts the discriminator property value from the union data.

func (*ObjectWithOneOfPropertyVariant) FromCat

FromCat overwrites any union data inside the ObjectWithOneOfPropertyVariant as the provided Cat.

func (*ObjectWithOneOfPropertyVariant) FromDog

FromDog overwrites any union data inside the ObjectWithOneOfPropertyVariant as the provided Dog.

func (ObjectWithOneOfPropertyVariant) MarshalJSON

func (t ObjectWithOneOfPropertyVariant) MarshalJSON() ([]byte, error)

func (*ObjectWithOneOfPropertyVariant) MergeCat

func (t *ObjectWithOneOfPropertyVariant) MergeCat(v Cat) error

MergeCat performs a merge with any union data inside the ObjectWithOneOfPropertyVariant, using the provided Cat.

func (*ObjectWithOneOfPropertyVariant) MergeDog

func (t *ObjectWithOneOfPropertyVariant) MergeDog(v Dog) error

MergeDog performs a merge with any union data inside the ObjectWithOneOfPropertyVariant, using the provided Dog.

func (*ObjectWithOneOfPropertyVariant) UnmarshalJSON

func (t *ObjectWithOneOfPropertyVariant) UnmarshalJSON(b []byte) error

func (ObjectWithOneOfPropertyVariant) ValueByDiscriminator

func (t ObjectWithOneOfPropertyVariant) ValueByDiscriminator() (any, error)

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfInline

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

func (*OneOfInline) ApplyDefaults

func (t *OneOfInline) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfInline) AsOneOfInlineOneOf0

func (t OneOfInline) AsOneOfInlineOneOf0() (OneOfInlineOneOf0, error)

AsOneOfInlineOneOf0 returns the union data inside the OneOfInline as a OneOfInlineOneOf0.

func (OneOfInline) AsOneOfInlineOneOf1

func (t OneOfInline) AsOneOfInlineOneOf1() (OneOfInlineOneOf1, error)

AsOneOfInlineOneOf1 returns the union data inside the OneOfInline as a OneOfInlineOneOf1.

func (*OneOfInline) FromOneOfInlineOneOf0

func (t *OneOfInline) FromOneOfInlineOneOf0(v OneOfInlineOneOf0) error

FromOneOfInlineOneOf0 overwrites any union data inside the OneOfInline as the provided OneOfInlineOneOf0.

func (*OneOfInline) FromOneOfInlineOneOf1

func (t *OneOfInline) FromOneOfInlineOneOf1(v OneOfInlineOneOf1) error

FromOneOfInlineOneOf1 overwrites any union data inside the OneOfInline as the provided OneOfInlineOneOf1.

func (OneOfInline) MarshalJSON

func (t OneOfInline) MarshalJSON() ([]byte, error)

func (*OneOfInline) MergeOneOfInlineOneOf0

func (t *OneOfInline) MergeOneOfInlineOneOf0(v OneOfInlineOneOf0) error

MergeOneOfInlineOneOf0 performs a merge with any union data inside the OneOfInline, using the provided OneOfInlineOneOf0.

func (*OneOfInline) MergeOneOfInlineOneOf1

func (t *OneOfInline) MergeOneOfInlineOneOf1(v OneOfInlineOneOf1) error

MergeOneOfInlineOneOf1 performs a merge with any union data inside the OneOfInline, using the provided OneOfInlineOneOf1.

func (*OneOfInline) UnmarshalJSON

func (t *OneOfInline) UnmarshalJSON(b []byte) error

type OneOfInlineOneOf0

type OneOfInlineOneOf0 struct {
	OptionA *string `form:"optionA,omitempty" json:"optionA,omitempty"`
}

#/components/schemas/OneOfInline/oneOf/0

func (*OneOfInlineOneOf0) ApplyDefaults

func (s *OneOfInlineOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfInlineOneOf1

type OneOfInlineOneOf1 struct {
	OptionB *int `form:"optionB,omitempty" json:"optionB,omitempty"`
}

#/components/schemas/OneOfInline/oneOf/1

func (*OneOfInlineOneOf1) ApplyDefaults

func (s *OneOfInlineOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfPrimitives

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

func (*OneOfPrimitives) ApplyDefaults

func (t *OneOfPrimitives) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfPrimitives) AsBool2

func (t OneOfPrimitives) AsBool2() (bool, error)

AsBool2 returns the union data inside the OneOfPrimitives as a bool.

func (OneOfPrimitives) AsFloat321

func (t OneOfPrimitives) AsFloat321() (float32, error)

AsFloat321 returns the union data inside the OneOfPrimitives as a float32.

func (OneOfPrimitives) AsString0

func (t OneOfPrimitives) AsString0() (string, error)

AsString0 returns the union data inside the OneOfPrimitives as a string.

func (*OneOfPrimitives) FromBool2

func (t *OneOfPrimitives) FromBool2(v bool) error

FromBool2 overwrites any union data inside the OneOfPrimitives as the provided bool.

func (*OneOfPrimitives) FromFloat321

func (t *OneOfPrimitives) FromFloat321(v float32) error

FromFloat321 overwrites any union data inside the OneOfPrimitives as the provided float32.

func (*OneOfPrimitives) FromString0

func (t *OneOfPrimitives) FromString0(v string) error

FromString0 overwrites any union data inside the OneOfPrimitives as the provided string.

func (OneOfPrimitives) MarshalJSON

func (t OneOfPrimitives) MarshalJSON() ([]byte, error)

func (*OneOfPrimitives) MergeBool2

func (t *OneOfPrimitives) MergeBool2(v bool) error

MergeBool2 performs a merge with any union data inside the OneOfPrimitives, using the provided bool.

func (*OneOfPrimitives) MergeFloat321

func (t *OneOfPrimitives) MergeFloat321(v float32) error

MergeFloat321 performs a merge with any union data inside the OneOfPrimitives, using the provided float32.

func (*OneOfPrimitives) MergeString0

func (t *OneOfPrimitives) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the OneOfPrimitives, using the provided string.

func (*OneOfPrimitives) UnmarshalJSON

func (t *OneOfPrimitives) UnmarshalJSON(b []byte) error

type OneOfSimple

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

func (*OneOfSimple) ApplyDefaults

func (t *OneOfSimple) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfSimple) AsBaseProperties

func (t OneOfSimple) AsBaseProperties() (BaseProperties, error)

AsBaseProperties returns the union data inside the OneOfSimple as a BaseProperties.

func (OneOfSimple) AsSimpleObject

func (t OneOfSimple) AsSimpleObject() (SimpleObject, error)

AsSimpleObject returns the union data inside the OneOfSimple as a SimpleObject.

func (*OneOfSimple) FromBaseProperties

func (t *OneOfSimple) FromBaseProperties(v BaseProperties) error

FromBaseProperties overwrites any union data inside the OneOfSimple as the provided BaseProperties.

func (*OneOfSimple) FromSimpleObject

func (t *OneOfSimple) FromSimpleObject(v SimpleObject) error

FromSimpleObject overwrites any union data inside the OneOfSimple as the provided SimpleObject.

func (OneOfSimple) MarshalJSON

func (t OneOfSimple) MarshalJSON() ([]byte, error)

func (*OneOfSimple) MergeBaseProperties

func (t *OneOfSimple) MergeBaseProperties(v BaseProperties) error

MergeBaseProperties performs a merge with any union data inside the OneOfSimple, using the provided BaseProperties.

func (*OneOfSimple) MergeSimpleObject

func (t *OneOfSimple) MergeSimpleObject(v SimpleObject) error

MergeSimpleObject performs a merge with any union data inside the OneOfSimple, using the provided SimpleObject.

func (*OneOfSimple) UnmarshalJSON

func (t *OneOfSimple) UnmarshalJSON(b []byte) error

type OneOfWithAllOf

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

func (*OneOfWithAllOf) ApplyDefaults

func (t *OneOfWithAllOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfWithAllOf) AsOneOfWithAllOfOneOf0

func (t OneOfWithAllOf) AsOneOfWithAllOfOneOf0() (OneOfWithAllOfOneOf0, error)

AsOneOfWithAllOfOneOf0 returns the union data inside the OneOfWithAllOf as a OneOfWithAllOfOneOf0.

func (OneOfWithAllOf) AsOneOfWithAllOfOneOf1

func (t OneOfWithAllOf) AsOneOfWithAllOfOneOf1() (OneOfWithAllOfOneOf1, error)

AsOneOfWithAllOfOneOf1 returns the union data inside the OneOfWithAllOf as a OneOfWithAllOfOneOf1.

func (*OneOfWithAllOf) FromOneOfWithAllOfOneOf0

func (t *OneOfWithAllOf) FromOneOfWithAllOfOneOf0(v OneOfWithAllOfOneOf0) error

FromOneOfWithAllOfOneOf0 overwrites any union data inside the OneOfWithAllOf as the provided OneOfWithAllOfOneOf0.

func (*OneOfWithAllOf) FromOneOfWithAllOfOneOf1

func (t *OneOfWithAllOf) FromOneOfWithAllOfOneOf1(v OneOfWithAllOfOneOf1) error

FromOneOfWithAllOfOneOf1 overwrites any union data inside the OneOfWithAllOf as the provided OneOfWithAllOfOneOf1.

func (OneOfWithAllOf) MarshalJSON

func (t OneOfWithAllOf) MarshalJSON() ([]byte, error)

func (*OneOfWithAllOf) MergeOneOfWithAllOfOneOf0

func (t *OneOfWithAllOf) MergeOneOfWithAllOfOneOf0(v OneOfWithAllOfOneOf0) error

MergeOneOfWithAllOfOneOf0 performs a merge with any union data inside the OneOfWithAllOf, using the provided OneOfWithAllOfOneOf0.

func (*OneOfWithAllOf) MergeOneOfWithAllOfOneOf1

func (t *OneOfWithAllOf) MergeOneOfWithAllOfOneOf1(v OneOfWithAllOfOneOf1) error

MergeOneOfWithAllOfOneOf1 performs a merge with any union data inside the OneOfWithAllOf, using the provided OneOfWithAllOfOneOf1.

func (*OneOfWithAllOf) UnmarshalJSON

func (t *OneOfWithAllOf) UnmarshalJSON(b []byte) error

type OneOfWithAllOfOneOf0

type OneOfWithAllOfOneOf0 struct {
	ID        *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Variant   *string    `form:"variant,omitempty" json:"variant,omitempty"`
}

#/components/schemas/OneOfWithAllOf/oneOf/0

func (*OneOfWithAllOfOneOf0) ApplyDefaults

func (s *OneOfWithAllOfOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithAllOfOneOf1

type OneOfWithAllOfOneOf1 struct {
	ID        *int       `form:"id,omitempty" json:"id,omitempty"`
	CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty"`
	Variant   *string    `form:"variant,omitempty" json:"variant,omitempty"`
}

#/components/schemas/OneOfWithAllOf/oneOf/1

func (*OneOfWithAllOfOneOf1) ApplyDefaults

func (s *OneOfWithAllOfOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDiscriminator

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

func (*OneOfWithDiscriminator) ApplyDefaults

func (t *OneOfWithDiscriminator) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfWithDiscriminator) AsCat

func (t OneOfWithDiscriminator) AsCat() (Cat, error)

AsCat returns the union data inside the OneOfWithDiscriminator as a Cat.

func (OneOfWithDiscriminator) AsDog

func (t OneOfWithDiscriminator) AsDog() (Dog, error)

AsDog returns the union data inside the OneOfWithDiscriminator as a Dog.

func (OneOfWithDiscriminator) Discriminator

func (t OneOfWithDiscriminator) Discriminator() (string, error)

Discriminator extracts the discriminator property value from the union data.

func (*OneOfWithDiscriminator) FromCat

func (t *OneOfWithDiscriminator) FromCat(v Cat) error

FromCat overwrites any union data inside the OneOfWithDiscriminator as the provided Cat.

func (*OneOfWithDiscriminator) FromDog

func (t *OneOfWithDiscriminator) FromDog(v Dog) error

FromDog overwrites any union data inside the OneOfWithDiscriminator as the provided Dog.

func (OneOfWithDiscriminator) MarshalJSON

func (t OneOfWithDiscriminator) MarshalJSON() ([]byte, error)

func (*OneOfWithDiscriminator) MergeCat

func (t *OneOfWithDiscriminator) MergeCat(v Cat) error

MergeCat performs a merge with any union data inside the OneOfWithDiscriminator, using the provided Cat.

func (*OneOfWithDiscriminator) MergeDog

func (t *OneOfWithDiscriminator) MergeDog(v Dog) error

MergeDog performs a merge with any union data inside the OneOfWithDiscriminator, using the provided Dog.

func (*OneOfWithDiscriminator) UnmarshalJSON

func (t *OneOfWithDiscriminator) UnmarshalJSON(b []byte) error

func (OneOfWithDiscriminator) ValueByDiscriminator

func (t OneOfWithDiscriminator) ValueByDiscriminator() (any, error)

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfWithDiscriminatorMapping

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

func (*OneOfWithDiscriminatorMapping) ApplyDefaults

func (t *OneOfWithDiscriminatorMapping) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfWithDiscriminatorMapping) AsCat

AsCat returns the union data inside the OneOfWithDiscriminatorMapping as a Cat.

func (OneOfWithDiscriminatorMapping) AsDog

AsDog returns the union data inside the OneOfWithDiscriminatorMapping as a Dog.

func (OneOfWithDiscriminatorMapping) Discriminator

func (t OneOfWithDiscriminatorMapping) Discriminator() (string, error)

Discriminator extracts the discriminator property value from the union data.

func (*OneOfWithDiscriminatorMapping) FromCat

func (t *OneOfWithDiscriminatorMapping) FromCat(v Cat) error

FromCat overwrites any union data inside the OneOfWithDiscriminatorMapping as the provided Cat.

func (*OneOfWithDiscriminatorMapping) FromDog

func (t *OneOfWithDiscriminatorMapping) FromDog(v Dog) error

FromDog overwrites any union data inside the OneOfWithDiscriminatorMapping as the provided Dog.

func (OneOfWithDiscriminatorMapping) MarshalJSON

func (t OneOfWithDiscriminatorMapping) MarshalJSON() ([]byte, error)

func (*OneOfWithDiscriminatorMapping) MergeCat

func (t *OneOfWithDiscriminatorMapping) MergeCat(v Cat) error

MergeCat performs a merge with any union data inside the OneOfWithDiscriminatorMapping, using the provided Cat.

func (*OneOfWithDiscriminatorMapping) MergeDog

func (t *OneOfWithDiscriminatorMapping) MergeDog(v Dog) error

MergeDog performs a merge with any union data inside the OneOfWithDiscriminatorMapping, using the provided Dog.

func (*OneOfWithDiscriminatorMapping) UnmarshalJSON

func (t *OneOfWithDiscriminatorMapping) UnmarshalJSON(b []byte) error

func (OneOfWithDiscriminatorMapping) ValueByDiscriminator

func (t OneOfWithDiscriminatorMapping) ValueByDiscriminator() (any, error)

ValueByDiscriminator returns the union member based on the discriminator value.

type PrefixItems31

type PrefixItems31 = []string

#/components/schemas/PrefixItems31

type ReadWriteOnly

type ReadWriteOnly struct {
	ID       int     `form:"id" json:"id"`
	Password string  `form:"password" json:"password"`
	Name     *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/ReadWriteOnly

func (*ReadWriteOnly) ApplyDefaults

func (s *ReadWriteOnly) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type RecursiveOneOf

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

func (*RecursiveOneOf) ApplyDefaults

func (t *RecursiveOneOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (RecursiveOneOf) AsRecursiveOneOfOneOf1

func (t RecursiveOneOf) AsRecursiveOneOfOneOf1() (RecursiveOneOfOneOf1, error)

AsRecursiveOneOfOneOf1 returns the union data inside the RecursiveOneOf as a RecursiveOneOfOneOf1.

func (RecursiveOneOf) AsString0

func (t RecursiveOneOf) AsString0() (string, error)

AsString0 returns the union data inside the RecursiveOneOf as a string.

func (*RecursiveOneOf) FromRecursiveOneOfOneOf1

func (t *RecursiveOneOf) FromRecursiveOneOfOneOf1(v RecursiveOneOfOneOf1) error

FromRecursiveOneOfOneOf1 overwrites any union data inside the RecursiveOneOf as the provided RecursiveOneOfOneOf1.

func (*RecursiveOneOf) FromString0

func (t *RecursiveOneOf) FromString0(v string) error

FromString0 overwrites any union data inside the RecursiveOneOf as the provided string.

func (RecursiveOneOf) MarshalJSON

func (t RecursiveOneOf) MarshalJSON() ([]byte, error)

func (*RecursiveOneOf) MergeRecursiveOneOfOneOf1

func (t *RecursiveOneOf) MergeRecursiveOneOfOneOf1(v RecursiveOneOfOneOf1) error

MergeRecursiveOneOfOneOf1 performs a merge with any union data inside the RecursiveOneOf, using the provided RecursiveOneOfOneOf1.

func (*RecursiveOneOf) MergeString0

func (t *RecursiveOneOf) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the RecursiveOneOf, using the provided string.

func (*RecursiveOneOf) UnmarshalJSON

func (t *RecursiveOneOf) UnmarshalJSON(b []byte) error

type RecursiveOneOfOneOf1

type RecursiveOneOfOneOf1 struct {
	Nested *RecursiveOneOf `form:"nested,omitempty" json:"nested,omitempty"`
}

#/components/schemas/RecursiveOneOf/oneOf/1

func (*RecursiveOneOfOneOf1) ApplyDefaults

func (s *RecursiveOneOfOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type SimpleObject

type SimpleObject struct {
	ID   int     `form:"id" json:"id"`
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/SimpleObject

func (*SimpleObject) ApplyDefaults

func (s *SimpleObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type StringEnum

type StringEnum string

#/components/schemas/StringEnum

const (
	Value1 StringEnum = "value1"
	Value2 StringEnum = "value2"
	Value3 StringEnum = "value3"
)

type StringMap

type StringMap = map[string]string

#/components/schemas/StringMap

type TreeNode

type TreeNode struct {
	Value    *string    `form:"value,omitempty" json:"value,omitempty"`
	Children []TreeNode `form:"children,omitempty" json:"children,omitempty"`
}

#/components/schemas/TreeNode

func (*TreeNode) ApplyDefaults

func (s *TreeNode) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type TreeNodeChildren

type TreeNodeChildren = []TreeNode

#/components/schemas/TreeNode/properties/children

type TypeArray31

type TypeArray31 struct {
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/TypeArray31

func (*TypeArray31) ApplyDefaults

func (s *TypeArray31) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type WithConst

type WithConst struct {
	Version *string `form:"version,omitempty" json:"version,omitempty"`
	Type    *string `form:"type,omitempty" json:"type,omitempty"`
}

#/components/schemas/WithConst

func (*WithConst) ApplyDefaults

func (s *WithConst) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type WithConstraints

type WithConstraints struct {
	BoundedInt          *int     `form:"boundedInt,omitempty" json:"boundedInt,omitempty"`
	ExclusiveBoundedInt *int     `form:"exclusiveBoundedInt,omitempty" json:"exclusiveBoundedInt,omitempty"`
	MultipleOf          *int     `form:"multipleOf,omitempty" json:"multipleOf,omitempty"`
	BoundedString       *string  `form:"boundedString,omitempty" json:"boundedString,omitempty"`
	PatternString       *string  `form:"patternString,omitempty" json:"patternString,omitempty"`
	BoundedArray        []string `form:"boundedArray,omitempty" json:"boundedArray,omitempty"`
	UniqueArray         []string `form:"uniqueArray,omitempty" json:"uniqueArray,omitempty"`
}

#/components/schemas/WithConstraints

func (*WithConstraints) ApplyDefaults

func (s *WithConstraints) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type WithDefaults

type WithDefaults struct {
	StringWithDefault *string  `form:"stringWithDefault,omitempty" json:"stringWithDefault,omitempty"`
	IntWithDefault    *int     `form:"intWithDefault,omitempty" json:"intWithDefault,omitempty"`
	BoolWithDefault   *bool    `form:"boolWithDefault,omitempty" json:"boolWithDefault,omitempty"`
	ArrayWithDefault  []string `form:"arrayWithDefault,omitempty" json:"arrayWithDefault,omitempty"`
}

#/components/schemas/WithDefaults

func (*WithDefaults) ApplyDefaults

func (s *WithDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

Jump to

Keyboard shortcuts

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