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: 9 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 AdditionalPropertiesObject1

type AdditionalPropertiesObject1 struct {
	Name                 string         `form:"name" json:"name"`
	ID                   int            `form:"id" json:"id"`
	Optional             *string        `form:"optional,omitempty" json:"optional,omitempty"`
	AdditionalProperties map[string]int `json:"-"`
}

#/components/schemas/AdditionalPropertiesObject1 Has additional properties of type int

func (*AdditionalPropertiesObject1) ApplyDefaults

func (s *AdditionalPropertiesObject1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropertiesObject1) Get

func (a AdditionalPropertiesObject1) Get(fieldName string) (value int, found bool)

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

func (AdditionalPropertiesObject1) MarshalJSON

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

func (*AdditionalPropertiesObject1) Set

func (a *AdditionalPropertiesObject1) Set(fieldName string, value int)

Set sets an additional property value.

func (*AdditionalPropertiesObject1) UnmarshalJSON

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

type AdditionalPropertiesObject2

type AdditionalPropertiesObject2 struct {
	Name                 string         `form:"name" json:"name"`
	ID                   int            `form:"id" json:"id"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/AdditionalPropertiesObject2 Does not allow additional properties

func (*AdditionalPropertiesObject2) ApplyDefaults

func (s *AdditionalPropertiesObject2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropertiesObject2) Get

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

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

func (AdditionalPropertiesObject2) MarshalJSON

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

func (*AdditionalPropertiesObject2) Set

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

Set sets an additional property value.

func (*AdditionalPropertiesObject2) UnmarshalJSON

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

type AdditionalPropertiesObject3

type AdditionalPropertiesObject3 struct {
	Name                 string         `form:"name" json:"name"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/AdditionalPropertiesObject3 Allows any additional property

func (*AdditionalPropertiesObject3) ApplyDefaults

func (s *AdditionalPropertiesObject3) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropertiesObject3) Get

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

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

func (AdditionalPropertiesObject3) MarshalJSON

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

func (*AdditionalPropertiesObject3) Set

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

Set sets an additional property value.

func (*AdditionalPropertiesObject3) UnmarshalJSON

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

type AdditionalPropertiesObject4

type AdditionalPropertiesObject4 struct {
	Name                 string                           `form:"name" json:"name"`
	Inner                AdditionalPropertiesObject4Inner `form:"inner" json:"inner"`
	AdditionalProperties map[string]any                   `json:"-"`
}

#/components/schemas/AdditionalPropertiesObject4 Has anonymous field which has additional properties

func (*AdditionalPropertiesObject4) ApplyDefaults

func (s *AdditionalPropertiesObject4) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropertiesObject4) Get

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

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

func (AdditionalPropertiesObject4) MarshalJSON

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

func (*AdditionalPropertiesObject4) Set

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

Set sets an additional property value.

func (*AdditionalPropertiesObject4) UnmarshalJSON

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

type AdditionalPropertiesObject4Inner

type AdditionalPropertiesObject4Inner struct {
	Name                 string         `form:"name" json:"name"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/AdditionalPropertiesObject4/properties/inner

func (*AdditionalPropertiesObject4Inner) ApplyDefaults

func (s *AdditionalPropertiesObject4Inner) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AdditionalPropertiesObject4Inner) Get

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

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

func (AdditionalPropertiesObject4Inner) MarshalJSON

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

func (*AdditionalPropertiesObject4Inner) Set

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

Set sets an additional property value.

func (*AdditionalPropertiesObject4Inner) UnmarshalJSON

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

type AdditionalPropertiesObject5

type AdditionalPropertiesObject5 = map[string]any

#/components/schemas/AdditionalPropertiesObject5 Has additional properties with schema for dictionaries

type AdditionalPropertiesObject6

type AdditionalPropertiesObject6 = []AdditionalPropertiesObject6Item

#/components/schemas/AdditionalPropertiesObject6 Array of object with additional properties

type AdditionalPropertiesObject6Item

type AdditionalPropertiesObject6Item = map[string]any

#/components/schemas/AdditionalPropertiesObject6/items

type AdditionalPropertiesObject7

type AdditionalPropertiesObject7 = map[string]any

#/components/schemas/AdditionalPropertiesObject7 Has additional properties with schema for dictionaries

type AnyOfObject1

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

simple anyOf case

func (*AnyOfObject1) ApplyDefaults

func (t *AnyOfObject1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfObject1) AsOneOfVariant4

func (t AnyOfObject1) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the AnyOfObject1 as a OneOfVariant4.

func (AnyOfObject1) AsOneOfVariant5

func (t AnyOfObject1) AsOneOfVariant5() (OneOfVariant5, error)

AsOneOfVariant5 returns the union data inside the AnyOfObject1 as a OneOfVariant5.

func (*AnyOfObject1) FromOneOfVariant4

func (t *AnyOfObject1) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the AnyOfObject1 as the provided OneOfVariant4.

func (*AnyOfObject1) FromOneOfVariant5

func (t *AnyOfObject1) FromOneOfVariant5(v OneOfVariant5) error

FromOneOfVariant5 overwrites any union data inside the AnyOfObject1 as the provided OneOfVariant5.

func (AnyOfObject1) MarshalJSON

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

func (*AnyOfObject1) MergeOneOfVariant4

func (t *AnyOfObject1) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the AnyOfObject1, using the provided OneOfVariant4.

func (*AnyOfObject1) MergeOneOfVariant5

func (t *AnyOfObject1) MergeOneOfVariant5(v OneOfVariant5) error

MergeOneOfVariant5 performs a merge with any union data inside the AnyOfObject1, using the provided OneOfVariant5.

func (*AnyOfObject1) UnmarshalJSON

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

type BodyWithAddPropsJSONRequest

type BodyWithAddPropsJSONRequest struct {
	Name                 string         `form:"name" json:"name"`
	Inner                map[string]int `form:"inner" json:"inner"`
	AdditionalProperties map[string]any `json:"-"`
}

#/paths//params_with_add_props/post/requestBody/content/application/json/schema

func (*BodyWithAddPropsJSONRequest) ApplyDefaults

func (s *BodyWithAddPropsJSONRequest) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (BodyWithAddPropsJSONRequest) Get

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

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

func (BodyWithAddPropsJSONRequest) MarshalJSON

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

func (*BodyWithAddPropsJSONRequest) Set

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

Set sets an additional property value.

func (*BodyWithAddPropsJSONRequest) UnmarshalJSON

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

type EnsureEverythingIsReferencedJSONRequest

type EnsureEverythingIsReferencedJSONRequest struct {
	Field SchemaObject `form:"Field" json:"Field"`
}

#/paths//ensure-everything-is-referenced/get/requestBody/content/application/json/schema

func (*EnsureEverythingIsReferencedJSONRequest) ApplyDefaults

func (s *EnsureEverythingIsReferencedJSONRequest) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EnsureEverythingIsReferencedJSONResponse

type EnsureEverythingIsReferencedJSONResponse struct {
	One       *AdditionalPropertiesObject1 `form:"one,omitempty" json:"one,omitempty"`
	Two       *AdditionalPropertiesObject2 `form:"two,omitempty" json:"two,omitempty"`
	Three     *AdditionalPropertiesObject3 `form:"three,omitempty" json:"three,omitempty"`
	Four      *AdditionalPropertiesObject4 `form:"four,omitempty" json:"four,omitempty"`
	Five      *AdditionalPropertiesObject5 `form:"five,omitempty" json:"five,omitempty"`
	Six       *AdditionalPropertiesObject6 `form:"six,omitempty" json:"six,omitempty"`
	OneOf1    *OneOfObject1                `form:"oneOf1,omitempty" json:"oneOf1,omitempty"`
	OneOf2    *OneOfObject2                `form:"oneOf2,omitempty" json:"oneOf2,omitempty"`
	OneOf3    *OneOfObject3                `form:"oneOf3,omitempty" json:"oneOf3,omitempty"`
	OneOf4    *OneOfObject4                `form:"oneOf4,omitempty" json:"oneOf4,omitempty"`
	OneOf5    *OneOfObject5                `form:"oneOf5,omitempty" json:"oneOf5,omitempty"`
	OneOf6    *OneOfObject6                `form:"oneOf6,omitempty" json:"oneOf6,omitempty"`
	OneOf7    *OneOfObject7                `form:"oneOf7,omitempty" json:"oneOf7,omitempty"`
	OneOf8    *OneOfObject8                `form:"oneOf8,omitempty" json:"oneOf8,omitempty"`
	OneOf9    *OneOfObject9                `form:"oneOf9,omitempty" json:"oneOf9,omitempty"`
	OneOf10   *OneOfObject10               `form:"oneOf10,omitempty" json:"oneOf10,omitempty"`
	OneOf11   *OneOfObject11               `form:"oneOf11,omitempty" json:"oneOf11,omitempty"`
	OneOf12   *OneOfObject12               `form:"oneOf12,omitempty" json:"oneOf12,omitempty"`
	AnyOf1    *AnyOfObject1                `form:"anyOf1,omitempty" json:"anyOf1,omitempty"`
	JSONField *ObjectWithJSONField         `form:"jsonField,omitempty" json:"jsonField,omitempty"`
}

#/paths//ensure-everything-is-referenced/get/responses/200/content/application/json/schema

func (*EnsureEverythingIsReferencedJSONResponse) ApplyDefaults

func (s *EnsureEverythingIsReferencedJSONResponse) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Enum1

type Enum1 string

#/components/schemas/Enum1 Conflicts with Enum2, enum values need to be prefixed with type name.

const (
	Enum1One   Enum1 = "One"
	Enum1Two   Enum1 = "Two"
	Enum1Three Enum1 = "Three"
)

type Enum2

type Enum2 string

#/components/schemas/Enum2 Conflicts with Enum1, enum values need to be prefixed with type name.

const (
	Enum2Two   Enum2 = "Two"
	Enum2Three Enum2 = "Three"
	Enum2Four  Enum2 = "Four"
)

type Enum3

type Enum3 string

#/components/schemas/Enum3 Enum values conflict with Enums above, need to be prefixed with type name.

const (
	Enum3Enum1One Enum3 = "Enum1One"
	Enum3Foo      Enum3 = "Foo"
	Enum3Bar      Enum3 = "Bar"
)

type Enum4

type Enum4 string

#/components/schemas/Enum4 No conflicts here, should have unmodified enums

const (
	Cat   Enum4 = "Cat"
	Dog   Enum4 = "Dog"
	Mouse Enum4 = "Mouse"
)

type Enum5

type Enum5 int

#/components/schemas/Enum5 Numerical enum

const (
	Enum5N5 Enum5 = 5
	Enum5N6 Enum5 = 6
	Enum5N7 Enum5 = 7
)

type EnumUnion

type EnumUnion struct {
}

#/components/schemas/EnumUnion Two enums of the same type combined with allOf.

func (*EnumUnion) ApplyDefaults

func (s *EnumUnion) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EnumUnion2

type EnumUnion2 struct {
}

#/components/schemas/EnumUnion2 Two enums of the same type combined with allOf.

func (*EnumUnion2) ApplyDefaults

func (s *EnumUnion2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type FunnyValues

type FunnyValues string

#/components/schemas/FunnyValues Edge cases for enum names

const (
	FunnyValuesAsterisk FunnyValues = "*"
	FunnyValuesN5       FunnyValues = "5"
	FunnyValuesAnd      FunnyValues = "&"
	FunnyValuesPercent  FunnyValues = "%"
	FunnyValuesEmpty    FunnyValues = ""
)

type GetParamsWithAddPropsParameter0

type GetParamsWithAddPropsParameter0 = map[string]any

#/paths//params_with_add_props/get/parameters/0/schema

type GetParamsWithAddPropsParameter11

type GetParamsWithAddPropsParameter11 struct {
	Inner map[string]string `form:"inner" json:"inner"`
}

#/paths//params_with_add_props/get/parameters/1/schema

func (*GetParamsWithAddPropsParameter11) ApplyDefaults

func (s *GetParamsWithAddPropsParameter11) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type GetParamsWithAddPropsParameter12

type GetParamsWithAddPropsParameter12 = map[string]string

#/paths//params_with_add_props/get/parameters/1/schema/properties/inner

type ObjectWithJSONField

type ObjectWithJSONField struct {
	Name   string           `form:"name" json:"name"`
	Value1 json.RawMessage  `form:"value1" json:"value1"`
	Value2 *json.RawMessage `form:"value2,omitempty" json:"value2,omitempty"`
}

#/components/schemas/ObjectWithJsonField

func (*ObjectWithJSONField) ApplyDefaults

func (s *ObjectWithJSONField) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfObject1

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

oneOf with references and no discriminator

func (*OneOfObject1) ApplyDefaults

func (t *OneOfObject1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject1) AsOneOfVariant1

func (t OneOfObject1) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject1 as a OneOfVariant1.

func (OneOfObject1) AsOneOfVariant2

func (t OneOfObject1) AsOneOfVariant2() (OneOfVariant2, error)

AsOneOfVariant2 returns the union data inside the OneOfObject1 as a OneOfVariant2.

func (OneOfObject1) AsOneOfVariant3

func (t OneOfObject1) AsOneOfVariant3() (OneOfVariant3, error)

AsOneOfVariant3 returns the union data inside the OneOfObject1 as a OneOfVariant3.

func (*OneOfObject1) FromOneOfVariant1

func (t *OneOfObject1) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject1 as the provided OneOfVariant1.

func (*OneOfObject1) FromOneOfVariant2

func (t *OneOfObject1) FromOneOfVariant2(v OneOfVariant2) error

FromOneOfVariant2 overwrites any union data inside the OneOfObject1 as the provided OneOfVariant2.

func (*OneOfObject1) FromOneOfVariant3

func (t *OneOfObject1) FromOneOfVariant3(v OneOfVariant3) error

FromOneOfVariant3 overwrites any union data inside the OneOfObject1 as the provided OneOfVariant3.

func (OneOfObject1) MarshalJSON

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

func (*OneOfObject1) MergeOneOfVariant1

func (t *OneOfObject1) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject1, using the provided OneOfVariant1.

func (*OneOfObject1) MergeOneOfVariant2

func (t *OneOfObject1) MergeOneOfVariant2(v OneOfVariant2) error

MergeOneOfVariant2 performs a merge with any union data inside the OneOfObject1, using the provided OneOfVariant2.

func (*OneOfObject1) MergeOneOfVariant3

func (t *OneOfObject1) MergeOneOfVariant3(v OneOfVariant3) error

MergeOneOfVariant3 performs a merge with any union data inside the OneOfObject1, using the provided OneOfVariant3.

func (*OneOfObject1) UnmarshalJSON

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

type OneOfObject2

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

oneOf with inline elements

func (*OneOfObject2) ApplyDefaults

func (t *OneOfObject2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject2) AsBool2

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

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

func (OneOfObject2) AsLBracketFloat321

func (t OneOfObject2) AsLBracketFloat321() ([]float32, error)

AsLBracketFloat321 returns the union data inside the OneOfObject2 as a []float32.

func (OneOfObject2) AsOneOfObject2OneOf0

func (t OneOfObject2) AsOneOfObject2OneOf0() (OneOfObject2OneOf0, error)

AsOneOfObject2OneOf0 returns the union data inside the OneOfObject2 as a OneOfObject2OneOf0.

func (*OneOfObject2) FromBool2

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

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

func (*OneOfObject2) FromLBracketFloat321

func (t *OneOfObject2) FromLBracketFloat321(v []float32) error

FromLBracketFloat321 overwrites any union data inside the OneOfObject2 as the provided []float32.

func (*OneOfObject2) FromOneOfObject2OneOf0

func (t *OneOfObject2) FromOneOfObject2OneOf0(v OneOfObject2OneOf0) error

FromOneOfObject2OneOf0 overwrites any union data inside the OneOfObject2 as the provided OneOfObject2OneOf0.

func (OneOfObject2) MarshalJSON

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

func (*OneOfObject2) MergeBool2

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

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

func (*OneOfObject2) MergeLBracketFloat321

func (t *OneOfObject2) MergeLBracketFloat321(v []float32) error

MergeLBracketFloat321 performs a merge with any union data inside the OneOfObject2, using the provided []float32.

func (*OneOfObject2) MergeOneOfObject2OneOf0

func (t *OneOfObject2) MergeOneOfObject2OneOf0(v OneOfObject2OneOf0) error

MergeOneOfObject2OneOf0 performs a merge with any union data inside the OneOfObject2, using the provided OneOfObject2OneOf0.

func (*OneOfObject2) UnmarshalJSON

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

type OneOfObject2OneOf0

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

#/components/schemas/OneOfObject2/oneOf/0

func (*OneOfObject2OneOf0) ApplyDefaults

func (s *OneOfObject2OneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfObject3

type OneOfObject3 struct {
	Union *OneOfObject3Union `form:"union,omitempty" json:"union,omitempty"`
}

#/components/schemas/OneOfObject3 inline OneOf

func (*OneOfObject3) ApplyDefaults

func (s *OneOfObject3) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfObject3Union

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

func (*OneOfObject3Union) ApplyDefaults

func (t *OneOfObject3Union) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject3Union) AsOneOfVariant1

func (t OneOfObject3Union) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject3Union as a OneOfVariant1.

func (OneOfObject3Union) AsOneOfVariant2

func (t OneOfObject3Union) AsOneOfVariant2() (OneOfVariant2, error)

AsOneOfVariant2 returns the union data inside the OneOfObject3Union as a OneOfVariant2.

func (OneOfObject3Union) AsOneOfVariant3

func (t OneOfObject3Union) AsOneOfVariant3() (OneOfVariant3, error)

AsOneOfVariant3 returns the union data inside the OneOfObject3Union as a OneOfVariant3.

func (*OneOfObject3Union) FromOneOfVariant1

func (t *OneOfObject3Union) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject3Union as the provided OneOfVariant1.

func (*OneOfObject3Union) FromOneOfVariant2

func (t *OneOfObject3Union) FromOneOfVariant2(v OneOfVariant2) error

FromOneOfVariant2 overwrites any union data inside the OneOfObject3Union as the provided OneOfVariant2.

func (*OneOfObject3Union) FromOneOfVariant3

func (t *OneOfObject3Union) FromOneOfVariant3(v OneOfVariant3) error

FromOneOfVariant3 overwrites any union data inside the OneOfObject3Union as the provided OneOfVariant3.

func (OneOfObject3Union) MarshalJSON

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

func (*OneOfObject3Union) MergeOneOfVariant1

func (t *OneOfObject3Union) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject3Union, using the provided OneOfVariant1.

func (*OneOfObject3Union) MergeOneOfVariant2

func (t *OneOfObject3Union) MergeOneOfVariant2(v OneOfVariant2) error

MergeOneOfVariant2 performs a merge with any union data inside the OneOfObject3Union, using the provided OneOfVariant2.

func (*OneOfObject3Union) MergeOneOfVariant3

func (t *OneOfObject3Union) MergeOneOfVariant3(v OneOfVariant3) error

MergeOneOfVariant3 performs a merge with any union data inside the OneOfObject3Union, using the provided OneOfVariant3.

func (*OneOfObject3Union) UnmarshalJSON

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

type OneOfObject4

type OneOfObject4 struct {
	FixedProperty *string `form:"fixedProperty,omitempty" json:"fixedProperty,omitempty"`
	// contains filtered or unexported fields
}

oneOf plus fixed type - custom marshaling/unmarshaling

func (*OneOfObject4) ApplyDefaults

func (t *OneOfObject4) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject4) AsOneOfVariant1

func (t OneOfObject4) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject4 as a OneOfVariant1.

func (OneOfObject4) AsOneOfVariant2

func (t OneOfObject4) AsOneOfVariant2() (OneOfVariant2, error)

AsOneOfVariant2 returns the union data inside the OneOfObject4 as a OneOfVariant2.

func (OneOfObject4) AsOneOfVariant3

func (t OneOfObject4) AsOneOfVariant3() (OneOfVariant3, error)

AsOneOfVariant3 returns the union data inside the OneOfObject4 as a OneOfVariant3.

func (*OneOfObject4) FromOneOfVariant1

func (t *OneOfObject4) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject4 as the provided OneOfVariant1.

func (*OneOfObject4) FromOneOfVariant2

func (t *OneOfObject4) FromOneOfVariant2(v OneOfVariant2) error

FromOneOfVariant2 overwrites any union data inside the OneOfObject4 as the provided OneOfVariant2.

func (*OneOfObject4) FromOneOfVariant3

func (t *OneOfObject4) FromOneOfVariant3(v OneOfVariant3) error

FromOneOfVariant3 overwrites any union data inside the OneOfObject4 as the provided OneOfVariant3.

func (OneOfObject4) MarshalJSON

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

func (*OneOfObject4) MergeOneOfVariant1

func (t *OneOfObject4) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject4, using the provided OneOfVariant1.

func (*OneOfObject4) MergeOneOfVariant2

func (t *OneOfObject4) MergeOneOfVariant2(v OneOfVariant2) error

MergeOneOfVariant2 performs a merge with any union data inside the OneOfObject4, using the provided OneOfVariant2.

func (*OneOfObject4) MergeOneOfVariant3

func (t *OneOfObject4) MergeOneOfVariant3(v OneOfVariant3) error

MergeOneOfVariant3 performs a merge with any union data inside the OneOfObject4, using the provided OneOfVariant3.

func (*OneOfObject4) UnmarshalJSON

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

type OneOfObject5

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

oneOf with discriminator but no mapping

func (*OneOfObject5) ApplyDefaults

func (t *OneOfObject5) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject5) AsOneOfVariant4

func (t OneOfObject5) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the OneOfObject5 as a OneOfVariant4.

func (OneOfObject5) AsOneOfVariant5

func (t OneOfObject5) AsOneOfVariant5() (OneOfVariant5, error)

AsOneOfVariant5 returns the union data inside the OneOfObject5 as a OneOfVariant5.

func (OneOfObject5) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject5) FromOneOfVariant4

func (t *OneOfObject5) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the OneOfObject5 as the provided OneOfVariant4.

func (*OneOfObject5) FromOneOfVariant5

func (t *OneOfObject5) FromOneOfVariant5(v OneOfVariant5) error

FromOneOfVariant5 overwrites any union data inside the OneOfObject5 as the provided OneOfVariant5.

func (OneOfObject5) MarshalJSON

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

func (*OneOfObject5) MergeOneOfVariant4

func (t *OneOfObject5) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the OneOfObject5, using the provided OneOfVariant4.

func (*OneOfObject5) MergeOneOfVariant5

func (t *OneOfObject5) MergeOneOfVariant5(v OneOfVariant5) error

MergeOneOfVariant5 performs a merge with any union data inside the OneOfObject5, using the provided OneOfVariant5.

func (*OneOfObject5) UnmarshalJSON

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

func (OneOfObject5) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfObject6

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

oneOf with discriminator and mapping

func (*OneOfObject6) ApplyDefaults

func (t *OneOfObject6) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject6) AsOneOfVariant4

func (t OneOfObject6) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the OneOfObject6 as a OneOfVariant4.

func (OneOfObject6) AsOneOfVariant5

func (t OneOfObject6) AsOneOfVariant5() (OneOfVariant5, error)

AsOneOfVariant5 returns the union data inside the OneOfObject6 as a OneOfVariant5.

func (OneOfObject6) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject6) FromOneOfVariant4

func (t *OneOfObject6) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the OneOfObject6 as the provided OneOfVariant4.

func (*OneOfObject6) FromOneOfVariant5

func (t *OneOfObject6) FromOneOfVariant5(v OneOfVariant5) error

FromOneOfVariant5 overwrites any union data inside the OneOfObject6 as the provided OneOfVariant5.

func (OneOfObject6) MarshalJSON

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

func (*OneOfObject6) MergeOneOfVariant4

func (t *OneOfObject6) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the OneOfObject6, using the provided OneOfVariant4.

func (*OneOfObject6) MergeOneOfVariant5

func (t *OneOfObject6) MergeOneOfVariant5(v OneOfVariant5) error

MergeOneOfVariant5 performs a merge with any union data inside the OneOfObject6, using the provided OneOfVariant5.

func (*OneOfObject6) UnmarshalJSON

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

func (OneOfObject6) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfObject7

type OneOfObject7 = []OneOfObject7Item

#/components/schemas/OneOfObject7 array of oneOf

type OneOfObject7Item

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

func (*OneOfObject7Item) ApplyDefaults

func (t *OneOfObject7Item) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject7Item) AsOneOfVariant1

func (t OneOfObject7Item) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject7Item as a OneOfVariant1.

func (OneOfObject7Item) AsOneOfVariant2

func (t OneOfObject7Item) AsOneOfVariant2() (OneOfVariant2, error)

AsOneOfVariant2 returns the union data inside the OneOfObject7Item as a OneOfVariant2.

func (*OneOfObject7Item) FromOneOfVariant1

func (t *OneOfObject7Item) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject7Item as the provided OneOfVariant1.

func (*OneOfObject7Item) FromOneOfVariant2

func (t *OneOfObject7Item) FromOneOfVariant2(v OneOfVariant2) error

FromOneOfVariant2 overwrites any union data inside the OneOfObject7Item as the provided OneOfVariant2.

func (OneOfObject7Item) MarshalJSON

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

func (*OneOfObject7Item) MergeOneOfVariant1

func (t *OneOfObject7Item) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject7Item, using the provided OneOfVariant1.

func (*OneOfObject7Item) MergeOneOfVariant2

func (t *OneOfObject7Item) MergeOneOfVariant2(v OneOfVariant2) error

MergeOneOfVariant2 performs a merge with any union data inside the OneOfObject7Item, using the provided OneOfVariant2.

func (*OneOfObject7Item) UnmarshalJSON

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

type OneOfObject8

type OneOfObject8 struct {
	Fixed *string `form:"fixed,omitempty" json:"fixed,omitempty"`
	// contains filtered or unexported fields
}

oneOf with fixed properties

func (*OneOfObject8) ApplyDefaults

func (t *OneOfObject8) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject8) AsOneOfVariant1

func (t OneOfObject8) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject8 as a OneOfVariant1.

func (OneOfObject8) AsOneOfVariant2

func (t OneOfObject8) AsOneOfVariant2() (OneOfVariant2, error)

AsOneOfVariant2 returns the union data inside the OneOfObject8 as a OneOfVariant2.

func (*OneOfObject8) FromOneOfVariant1

func (t *OneOfObject8) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject8 as the provided OneOfVariant1.

func (*OneOfObject8) FromOneOfVariant2

func (t *OneOfObject8) FromOneOfVariant2(v OneOfVariant2) error

FromOneOfVariant2 overwrites any union data inside the OneOfObject8 as the provided OneOfVariant2.

func (OneOfObject8) MarshalJSON

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

func (*OneOfObject8) MergeOneOfVariant1

func (t *OneOfObject8) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject8, using the provided OneOfVariant1.

func (*OneOfObject8) MergeOneOfVariant2

func (t *OneOfObject8) MergeOneOfVariant2(v OneOfVariant2) error

MergeOneOfVariant2 performs a merge with any union data inside the OneOfObject8, using the provided OneOfVariant2.

func (*OneOfObject8) UnmarshalJSON

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

type OneOfObject9

type OneOfObject9 struct {
	Type string `form:"type" json:"type"`
	// contains filtered or unexported fields
}

oneOf with fixed discriminator

func (*OneOfObject9) ApplyDefaults

func (t *OneOfObject9) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject9) AsOneOfVariant1

func (t OneOfObject9) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject9 as a OneOfVariant1.

func (OneOfObject9) AsOneOfVariant6

func (t OneOfObject9) AsOneOfVariant6() (OneOfVariant6, error)

AsOneOfVariant6 returns the union data inside the OneOfObject9 as a OneOfVariant6.

func (OneOfObject9) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject9) FromOneOfVariant1

func (t *OneOfObject9) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject9 as the provided OneOfVariant1.

func (*OneOfObject9) FromOneOfVariant6

func (t *OneOfObject9) FromOneOfVariant6(v OneOfVariant6) error

FromOneOfVariant6 overwrites any union data inside the OneOfObject9 as the provided OneOfVariant6.

func (OneOfObject9) MarshalJSON

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

func (*OneOfObject9) MergeOneOfVariant1

func (t *OneOfObject9) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject9, using the provided OneOfVariant1.

func (*OneOfObject9) MergeOneOfVariant6

func (t *OneOfObject9) MergeOneOfVariant6(v OneOfVariant6) error

MergeOneOfVariant6 performs a merge with any union data inside the OneOfObject9, using the provided OneOfVariant6.

func (*OneOfObject9) UnmarshalJSON

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

func (OneOfObject9) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfObject10

type OneOfObject10 struct {
	One   *string `form:"one,omitempty" json:"one,omitempty"`
	Two   *int    `form:"two,omitempty" json:"two,omitempty"`
	Three *bool   `form:"three,omitempty" json:"three,omitempty"`
	// contains filtered or unexported fields
}

fixed properties, variable required - will compile, but not much sense

func (*OneOfObject10) ApplyDefaults

func (t *OneOfObject10) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject10) AsAny0

func (t OneOfObject10) AsAny0() (any, error)

AsAny0 returns the union data inside the OneOfObject10 as a any.

func (OneOfObject10) AsAny1

func (t OneOfObject10) AsAny1() (any, error)

AsAny1 returns the union data inside the OneOfObject10 as a any.

func (*OneOfObject10) FromAny0

func (t *OneOfObject10) FromAny0(v any) error

FromAny0 overwrites any union data inside the OneOfObject10 as the provided any.

func (*OneOfObject10) FromAny1

func (t *OneOfObject10) FromAny1(v any) error

FromAny1 overwrites any union data inside the OneOfObject10 as the provided any.

func (OneOfObject10) MarshalJSON

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

func (*OneOfObject10) MergeAny0

func (t *OneOfObject10) MergeAny0(v any) error

MergeAny0 performs a merge with any union data inside the OneOfObject10, using the provided any.

func (*OneOfObject10) MergeAny1

func (t *OneOfObject10) MergeAny1(v any) error

MergeAny1 performs a merge with any union data inside the OneOfObject10, using the provided any.

func (*OneOfObject10) UnmarshalJSON

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

type OneOfObject11

type OneOfObject11 = map[string]any

#/components/schemas/OneOfObject11 additional properties of oneOf

type OneOfObject11Value

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

func (*OneOfObject11Value) ApplyDefaults

func (t *OneOfObject11Value) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject11Value) AsBool0

func (t OneOfObject11Value) AsBool0() (bool, error)

AsBool0 returns the union data inside the OneOfObject11Value as a bool.

func (OneOfObject11Value) AsFloat321

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

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

func (OneOfObject11Value) AsString2

func (t OneOfObject11Value) AsString2() (string, error)

AsString2 returns the union data inside the OneOfObject11Value as a string.

func (*OneOfObject11Value) FromBool0

func (t *OneOfObject11Value) FromBool0(v bool) error

FromBool0 overwrites any union data inside the OneOfObject11Value as the provided bool.

func (*OneOfObject11Value) FromFloat321

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

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

func (*OneOfObject11Value) FromString2

func (t *OneOfObject11Value) FromString2(v string) error

FromString2 overwrites any union data inside the OneOfObject11Value as the provided string.

func (OneOfObject11Value) MarshalJSON

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

func (*OneOfObject11Value) MergeBool0

func (t *OneOfObject11Value) MergeBool0(v bool) error

MergeBool0 performs a merge with any union data inside the OneOfObject11Value, using the provided bool.

func (*OneOfObject11Value) MergeFloat321

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

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

func (*OneOfObject11Value) MergeString2

func (t *OneOfObject11Value) MergeString2(v string) error

MergeString2 performs a merge with any union data inside the OneOfObject11Value, using the provided string.

func (*OneOfObject11Value) UnmarshalJSON

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

type OneOfObject12

type OneOfObject12 struct {
	OneOfObject12AllOf0 *OneOfObject12AllOf0 `json:"-"`
	OneOfObject12AllOf1 *OneOfObject12AllOf1 `json:"-"`
}

#/components/schemas/OneOfObject12 allOf of oneOfs

func (*OneOfObject12) ApplyDefaults

func (s *OneOfObject12) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject12) MarshalJSON

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

func (*OneOfObject12) UnmarshalJSON

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

type OneOfObject12AllOf0

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

func (*OneOfObject12AllOf0) ApplyDefaults

func (t *OneOfObject12AllOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject12AllOf0) AsFloat321

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

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

func (OneOfObject12AllOf0) AsString0

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

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

func (*OneOfObject12AllOf0) FromFloat321

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

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

func (*OneOfObject12AllOf0) FromString0

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

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

func (OneOfObject12AllOf0) MarshalJSON

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

func (*OneOfObject12AllOf0) MergeFloat321

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

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

func (*OneOfObject12AllOf0) MergeString0

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

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

func (*OneOfObject12AllOf0) UnmarshalJSON

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

type OneOfObject12AllOf1

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

func (*OneOfObject12AllOf1) ApplyDefaults

func (t *OneOfObject12AllOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject12AllOf1) AsOneOfVariant3

func (t OneOfObject12AllOf1) AsOneOfVariant3() (OneOfVariant3, error)

AsOneOfVariant3 returns the union data inside the OneOfObject12AllOf1 as a OneOfVariant3.

func (OneOfObject12AllOf1) AsOneOfVariant4

func (t OneOfObject12AllOf1) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the OneOfObject12AllOf1 as a OneOfVariant4.

func (*OneOfObject12AllOf1) FromOneOfVariant3

func (t *OneOfObject12AllOf1) FromOneOfVariant3(v OneOfVariant3) error

FromOneOfVariant3 overwrites any union data inside the OneOfObject12AllOf1 as the provided OneOfVariant3.

func (*OneOfObject12AllOf1) FromOneOfVariant4

func (t *OneOfObject12AllOf1) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the OneOfObject12AllOf1 as the provided OneOfVariant4.

func (OneOfObject12AllOf1) MarshalJSON

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

func (*OneOfObject12AllOf1) MergeOneOfVariant3

func (t *OneOfObject12AllOf1) MergeOneOfVariant3(v OneOfVariant3) error

MergeOneOfVariant3 performs a merge with any union data inside the OneOfObject12AllOf1, using the provided OneOfVariant3.

func (*OneOfObject12AllOf1) MergeOneOfVariant4

func (t *OneOfObject12AllOf1) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the OneOfObject12AllOf1, using the provided OneOfVariant4.

func (*OneOfObject12AllOf1) UnmarshalJSON

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

type OneOfObject13

type OneOfObject13 struct {
	Type string `form:"type" json:"type"`
	// contains filtered or unexported fields
}

oneOf with fixed discriminator and other fields allowed

func (*OneOfObject13) ApplyDefaults

func (t *OneOfObject13) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject13) AsOneOfVariant1

func (t OneOfObject13) AsOneOfVariant1() (OneOfVariant1, error)

AsOneOfVariant1 returns the union data inside the OneOfObject13 as a OneOfVariant1.

func (OneOfObject13) AsOneOfVariant6

func (t OneOfObject13) AsOneOfVariant6() (OneOfVariant6, error)

AsOneOfVariant6 returns the union data inside the OneOfObject13 as a OneOfVariant6.

func (OneOfObject13) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject13) FromOneOfVariant1

func (t *OneOfObject13) FromOneOfVariant1(v OneOfVariant1) error

FromOneOfVariant1 overwrites any union data inside the OneOfObject13 as the provided OneOfVariant1.

func (*OneOfObject13) FromOneOfVariant6

func (t *OneOfObject13) FromOneOfVariant6(v OneOfVariant6) error

FromOneOfVariant6 overwrites any union data inside the OneOfObject13 as the provided OneOfVariant6.

func (OneOfObject13) MarshalJSON

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

func (*OneOfObject13) MergeOneOfVariant1

func (t *OneOfObject13) MergeOneOfVariant1(v OneOfVariant1) error

MergeOneOfVariant1 performs a merge with any union data inside the OneOfObject13, using the provided OneOfVariant1.

func (*OneOfObject13) MergeOneOfVariant6

func (t *OneOfObject13) MergeOneOfVariant6(v OneOfVariant6) error

MergeOneOfVariant6 performs a merge with any union data inside the OneOfObject13, using the provided OneOfVariant6.

func (*OneOfObject13) UnmarshalJSON

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

func (OneOfObject13) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfObject61

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

oneOf with discriminator and partial mapping

func (*OneOfObject61) ApplyDefaults

func (t *OneOfObject61) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject61) AsOneOfVariant4

func (t OneOfObject61) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the OneOfObject61 as a OneOfVariant4.

func (OneOfObject61) AsOneOfVariant5

func (t OneOfObject61) AsOneOfVariant5() (OneOfVariant5, error)

AsOneOfVariant5 returns the union data inside the OneOfObject61 as a OneOfVariant5.

func (OneOfObject61) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject61) FromOneOfVariant4

func (t *OneOfObject61) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the OneOfObject61 as the provided OneOfVariant4.

func (*OneOfObject61) FromOneOfVariant5

func (t *OneOfObject61) FromOneOfVariant5(v OneOfVariant5) error

FromOneOfVariant5 overwrites any union data inside the OneOfObject61 as the provided OneOfVariant5.

func (OneOfObject61) MarshalJSON

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

func (*OneOfObject61) MergeOneOfVariant4

func (t *OneOfObject61) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the OneOfObject61, using the provided OneOfVariant4.

func (*OneOfObject61) MergeOneOfVariant5

func (t *OneOfObject61) MergeOneOfVariant5(v OneOfVariant5) error

MergeOneOfVariant5 performs a merge with any union data inside the OneOfObject61, using the provided OneOfVariant5.

func (*OneOfObject61) UnmarshalJSON

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

func (OneOfObject61) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfObject62

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

oneOf with snake_case discriminator and partial snake_case mapping

func (*OneOfObject62) ApplyDefaults

func (t *OneOfObject62) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject62) AsOneOfVariant4

func (t OneOfObject62) AsOneOfVariant4() (OneOfVariant4, error)

AsOneOfVariant4 returns the union data inside the OneOfObject62 as a OneOfVariant4.

func (OneOfObject62) AsOneOfVariant51

func (t OneOfObject62) AsOneOfVariant51() (OneOfVariant51, error)

AsOneOfVariant51 returns the union data inside the OneOfObject62 as a OneOfVariant51.

func (OneOfObject62) Discriminator

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

Discriminator extracts the discriminator property value from the union data.

func (*OneOfObject62) FromOneOfVariant4

func (t *OneOfObject62) FromOneOfVariant4(v OneOfVariant4) error

FromOneOfVariant4 overwrites any union data inside the OneOfObject62 as the provided OneOfVariant4.

func (*OneOfObject62) FromOneOfVariant51

func (t *OneOfObject62) FromOneOfVariant51(v OneOfVariant51) error

FromOneOfVariant51 overwrites any union data inside the OneOfObject62 as the provided OneOfVariant51.

func (OneOfObject62) MarshalJSON

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

func (*OneOfObject62) MergeOneOfVariant4

func (t *OneOfObject62) MergeOneOfVariant4(v OneOfVariant4) error

MergeOneOfVariant4 performs a merge with any union data inside the OneOfObject62, using the provided OneOfVariant4.

func (*OneOfObject62) MergeOneOfVariant51

func (t *OneOfObject62) MergeOneOfVariant51(v OneOfVariant51) error

MergeOneOfVariant51 performs a merge with any union data inside the OneOfObject62, using the provided OneOfVariant51.

func (*OneOfObject62) UnmarshalJSON

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

func (OneOfObject62) ValueByDiscriminator

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

ValueByDiscriminator returns the union member based on the discriminator value.

type OneOfVariant1

type OneOfVariant1 struct {
	Name string `form:"name" json:"name"`
}

#/components/schemas/OneOfVariant1

func (*OneOfVariant1) ApplyDefaults

func (s *OneOfVariant1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfVariant2

type OneOfVariant2 = []int

#/components/schemas/OneOfVariant2

type OneOfVariant3

type OneOfVariant3 = bool

#/components/schemas/OneOfVariant3

type OneOfVariant4

type OneOfVariant4 struct {
	Discriminator string `form:"discriminator" json:"discriminator"`
	Name          string `form:"name" json:"name"`
}

#/components/schemas/OneOfVariant4

func (*OneOfVariant4) ApplyDefaults

func (s *OneOfVariant4) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfVariant5

type OneOfVariant5 struct {
	Discriminator string `form:"discriminator" json:"discriminator"`
	ID            int    `form:"id" json:"id"`
}

#/components/schemas/OneOfVariant5

func (*OneOfVariant5) ApplyDefaults

func (s *OneOfVariant5) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfVariant6

type OneOfVariant6 struct {
	Values OneOfVariant2 `form:"values" json:"values"`
}

#/components/schemas/OneOfVariant6

func (*OneOfVariant6) ApplyDefaults

func (s *OneOfVariant6) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfVariant51

type OneOfVariant51 struct {
	Discriminator string `form:"discriminator" json:"discriminator"`
	ID            int    `form:"id" json:"id"`
}

#/components/schemas/one_of_variant51

func (*OneOfVariant51) ApplyDefaults

func (s *OneOfVariant51) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type PostParamsWithAddPropsRequest

type PostParamsWithAddPropsRequest = map[string]int

#/paths//params_with_add_props/post/requestBody/content/application/json/schema/properties/inner

type ReferenceToRenameMe

type ReferenceToRenameMe struct {
	NewName RenameMe `form:"ToNewName" json:"ToNewName"`
}

#/components/schemas/ReferenceToRenameMe When a Schema is renamed, $ref should refer to the new name

func (*ReferenceToRenameMe) ApplyDefaults

func (s *ReferenceToRenameMe) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type RenameMe

type RenameMe struct {
	Prop1 string `form:"prop1" json:"prop1"`
	Prop2 string `form:"prop2" json:"prop2"`
}

#/components/schemas/RenameMe This schema should be renamed via x-go-name when generating

func (*RenameMe) ApplyDefaults

func (s *RenameMe) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type SchemaObject

type SchemaObject struct {
	Role      string `form:"role" json:"role"`
	FirstName string `form:"firstName" json:"firstName"`
	// This property is required and readOnly, so the go model should have it as a pointer,
	// as it will not be included when it is sent from client to server.
	//
	ReadOnlyRequiredProp  string `form:"readOnlyRequiredProp" json:"readOnlyRequiredProp"`
	WriteOnlyRequiredProp int    `form:"writeOnlyRequiredProp" json:"writeOnlyRequiredProp"`
}

#/components/schemas/SchemaObject

func (*SchemaObject) ApplyDefaults

func (s *SchemaObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type SchemaObjectNullable

type SchemaObjectNullable struct {
	Role      string `form:"role" json:"role"`
	FirstName string `form:"firstName" json:"firstName"`
	// This property is required and readOnly, so the go model should have it as a pointer,
	// as it will not be included when it is sent from client to server.
	//
	ReadOnlyRequiredProp  string `form:"readOnlyRequiredProp" json:"readOnlyRequiredProp"`
	WriteOnlyRequiredProp int    `form:"writeOnlyRequiredProp" json:"writeOnlyRequiredProp"`
}

#/components/schemas/SchemaObjectNullable

func (*SchemaObjectNullable) ApplyDefaults

func (s *SchemaObjectNullable) 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