output

package
v0.0.0-...-da2a1ef Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllOfWithDefaults

type AllOfWithDefaults = AllOfWithDefaultsSchemaComponent

type AllOfWithDefaultsN0AllOfSchemaComponent

type AllOfWithDefaultsN0AllOfSchemaComponent struct {
	Base *string `json:"base,omitempty" form:"base,omitempty"`
}

#/components/schemas/AllOfWithDefaults/allOf/0

func (*AllOfWithDefaultsN0AllOfSchemaComponent) ApplyDefaults

func (s *AllOfWithDefaultsN0AllOfSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllOfWithDefaultsN1AllOfSchemaComponent

type AllOfWithDefaultsN1AllOfSchemaComponent struct {
	Extended *int `json:"extended,omitempty" form:"extended,omitempty"`
}

#/components/schemas/AllOfWithDefaults/allOf/1

func (*AllOfWithDefaultsN1AllOfSchemaComponent) ApplyDefaults

func (s *AllOfWithDefaultsN1AllOfSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllOfWithDefaultsSchemaComponent

type AllOfWithDefaultsSchemaComponent struct {
	Base     *string `json:"base,omitempty" form:"base,omitempty"`
	Extended *int    `json:"extended,omitempty" form:"extended,omitempty"`
}

#/components/schemas/AllOfWithDefaults

func (*AllOfWithDefaultsSchemaComponent) ApplyDefaults

func (s *AllOfWithDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaults

type AnyOfWithDefaults = AnyOfWithDefaultsSchemaComponent

type AnyOfWithDefaultsSchemaComponent

type AnyOfWithDefaultsSchemaComponent struct {
	Value *AnyOfWithDefaultsValue `json:"value,omitempty" form:"value,omitempty"`
}

#/components/schemas/AnyOfWithDefaults

func (*AnyOfWithDefaultsSchemaComponent) ApplyDefaults

func (s *AnyOfWithDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent

type AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent struct {
	StringVal *string `json:"stringVal,omitempty" form:"stringVal,omitempty"`
}

#/components/schemas/AnyOfWithDefaults/properties/value/anyOf/0

func (*AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaultsValueN1AnyOfPropertySchemaComponent

type AnyOfWithDefaultsValueN1AnyOfPropertySchemaComponent struct {
	IntVal *int `json:"intVal,omitempty" form:"intVal,omitempty"`
}

#/components/schemas/AnyOfWithDefaults/properties/value/anyOf/1

func (*AnyOfWithDefaultsValueN1AnyOfPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaultsValuePropertySchemaComponent

type AnyOfWithDefaultsValuePropertySchemaComponent struct {
	AnyOfWithDefaultsValueAnyOf0 *AnyOfWithDefaultsValueAnyOf0
	AnyOfWithDefaultsValueAnyOf1 *AnyOfWithDefaultsValueAnyOf1
}

#/components/schemas/AnyOfWithDefaults/properties/value

func (*AnyOfWithDefaultsValuePropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

func (AnyOfWithDefaultsValuePropertySchemaComponent) MarshalJSON

func (*AnyOfWithDefaultsValuePropertySchemaComponent) UnmarshalJSON

func (u *AnyOfWithDefaultsValuePropertySchemaComponent) UnmarshalJSON(data []byte) error

type ArrayDefaults

type ArrayDefaults = ArrayDefaultsSchemaComponent

type ArrayDefaultsSchemaComponent

type ArrayDefaultsSchemaComponent struct {
	Items []string `json:"items,omitempty" form:"items,omitempty"`
	Count *int     `json:"count,omitempty" form:"count,omitempty"`
}

#/components/schemas/ArrayDefaults

func (*ArrayDefaultsSchemaComponent) ApplyDefaults

func (s *ArrayDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNesting

type DeepNesting = DeepNestingSchemaComponent

type DeepNestingLevel1Level2Level3PropertyPropertyPropertySchemaComponent

type DeepNestingLevel1Level2Level3PropertyPropertyPropertySchemaComponent struct {
	Enabled *bool `json:"enabled,omitempty" form:"enabled,omitempty"`
}

#/components/schemas/DeepNesting/properties/level1/properties/level2/properties/level3

func (*DeepNestingLevel1Level2Level3PropertyPropertyPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type DeepNestingLevel1Level2PropertyPropertySchemaComponent

type DeepNestingLevel1Level2PropertyPropertySchemaComponent struct {
	Count  *int                           `json:"count,omitempty" form:"count,omitempty"`
	Level3 *DeepNestingLevel1Level2Level3 `json:"level3,omitempty" form:"level3,omitempty"`
}

#/components/schemas/DeepNesting/properties/level1/properties/level2

func (*DeepNestingLevel1Level2PropertyPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type DeepNestingLevel1PropertySchemaComponent

type DeepNestingLevel1PropertySchemaComponent struct {
	Name   *string                  `json:"name,omitempty" form:"name,omitempty"`
	Level2 *DeepNestingLevel1Level2 `json:"level2,omitempty" form:"level2,omitempty"`
}

#/components/schemas/DeepNesting/properties/level1

func (*DeepNestingLevel1PropertySchemaComponent) ApplyDefaults

func (s *DeepNestingLevel1PropertySchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNestingSchemaComponent

type DeepNestingSchemaComponent struct {
	Level1 *DeepNestingLevel1 `json:"level1,omitempty" form:"level1,omitempty"`
}

#/components/schemas/DeepNesting

func (*DeepNestingSchemaComponent) ApplyDefaults

func (s *DeepNestingSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MapWithDefaults

type MapWithDefaults = MapWithDefaultsSchemaComponent

type MapWithDefaultsSchemaComponent

type MapWithDefaultsSchemaComponent struct {
	Prefix               *string           `json:"prefix,omitempty" form:"prefix,omitempty"`
	AdditionalProperties map[string]string `json:"-"`
}

#/components/schemas/MapWithDefaults

func (*MapWithDefaultsSchemaComponent) ApplyDefaults

func (s *MapWithDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (MapWithDefaultsSchemaComponent) MarshalJSON

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

func (*MapWithDefaultsSchemaComponent) UnmarshalJSON

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

type NestedDefaults

type NestedDefaults = NestedDefaultsSchemaComponent

type NestedDefaultsInlineChildPropertySchemaComponent

type NestedDefaultsInlineChildPropertySchemaComponent struct {
	Label *string `json:"label,omitempty" form:"label,omitempty"`
	Value *int    `json:"value,omitempty" form:"value,omitempty"`
}

#/components/schemas/NestedDefaults/properties/inlineChild

func (*NestedDefaultsInlineChildPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type NestedDefaultsSchemaComponent

type NestedDefaultsSchemaComponent struct {
	Name        *string                    `json:"name,omitempty" form:"name,omitempty"`
	Child       *SimpleDefaults            `json:"child,omitempty" form:"child,omitempty"`
	InlineChild *NestedDefaultsInlineChild `json:"inlineChild,omitempty" form:"inlineChild,omitempty"`
}

#/components/schemas/NestedDefaults

func (*NestedDefaultsSchemaComponent) ApplyDefaults

func (s *NestedDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaults

type OneOfWithDefaults = OneOfWithDefaultsSchemaComponent

type OneOfWithDefaultsSchemaComponent

type OneOfWithDefaultsSchemaComponent struct {
	Variant *OneOfWithDefaultsVariant `json:"variant,omitempty" form:"variant,omitempty"`
}

#/components/schemas/OneOfWithDefaults

func (*OneOfWithDefaultsSchemaComponent) ApplyDefaults

func (s *OneOfWithDefaultsSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent

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

#/components/schemas/OneOfWithDefaults/properties/variant/oneOf/0

func (*OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaultsVariantN1OneOfPropertySchemaComponent

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

#/components/schemas/OneOfWithDefaults/properties/variant/oneOf/1

func (*OneOfWithDefaultsVariantN1OneOfPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaultsVariantPropertySchemaComponent

type OneOfWithDefaultsVariantPropertySchemaComponent struct {
	OneOfWithDefaultsVariantOneOf0 *OneOfWithDefaultsVariantOneOf0
	OneOfWithDefaultsVariantOneOf1 *OneOfWithDefaultsVariantOneOf1
}

#/components/schemas/OneOfWithDefaults/properties/variant

func (*OneOfWithDefaultsVariantPropertySchemaComponent) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

func (OneOfWithDefaultsVariantPropertySchemaComponent) MarshalJSON

func (*OneOfWithDefaultsVariantPropertySchemaComponent) UnmarshalJSON

type RequiredAndOptionalSchemaComponent

type RequiredAndOptionalSchemaComponent struct {
	RequiredWithDefault string  `json:"requiredWithDefault" form:"requiredWithDefault"`
	RequiredNoDefault   string  `json:"requiredNoDefault" form:"requiredNoDefault"`
	OptionalWithDefault *string `json:"optionalWithDefault,omitempty" form:"optionalWithDefault,omitempty"`
	OptionalNoDefault   *string `json:"optionalNoDefault,omitempty" form:"optionalNoDefault,omitempty"`
}

#/components/schemas/RequiredAndOptional

func (*RequiredAndOptionalSchemaComponent) ApplyDefaults

func (s *RequiredAndOptionalSchemaComponent) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type SimpleDefaults

type SimpleDefaults = SimpleDefaultsSchemaComponent

type SimpleDefaultsSchemaComponent

type SimpleDefaultsSchemaComponent struct {
	StringField *string  `json:"stringField,omitempty" form:"stringField,omitempty"`
	IntField    *int     `json:"intField,omitempty" form:"intField,omitempty"`
	BoolField   *bool    `json:"boolField,omitempty" form:"boolField,omitempty"`
	FloatField  *float32 `json:"floatField,omitempty" form:"floatField,omitempty"`
	Int64Field  *int64   `json:"int64Field,omitempty" form:"int64Field,omitempty"`
}

#/components/schemas/SimpleDefaults

func (*SimpleDefaultsSchemaComponent) ApplyDefaults

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