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: 8 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 AllOfWithDefaults

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

#/components/schemas/AllOfWithDefaults

func (*AllOfWithDefaults) ApplyDefaults

func (s *AllOfWithDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaults

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

#/components/schemas/AnyOfWithDefaults

func (*AnyOfWithDefaults) ApplyDefaults

func (s *AnyOfWithDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaultsValue

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

func (*AnyOfWithDefaultsValue) ApplyDefaults

func (t *AnyOfWithDefaultsValue) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfWithDefaultsValue) AsAnyOfWithDefaultsValueAnyOf0

func (t AnyOfWithDefaultsValue) AsAnyOfWithDefaultsValueAnyOf0() (AnyOfWithDefaultsValueAnyOf0, error)

AsAnyOfWithDefaultsValueAnyOf0 returns the union data inside the AnyOfWithDefaultsValue as a AnyOfWithDefaultsValueAnyOf0.

func (AnyOfWithDefaultsValue) AsAnyOfWithDefaultsValueAnyOf1

func (t AnyOfWithDefaultsValue) AsAnyOfWithDefaultsValueAnyOf1() (AnyOfWithDefaultsValueAnyOf1, error)

AsAnyOfWithDefaultsValueAnyOf1 returns the union data inside the AnyOfWithDefaultsValue as a AnyOfWithDefaultsValueAnyOf1.

func (*AnyOfWithDefaultsValue) FromAnyOfWithDefaultsValueAnyOf0

func (t *AnyOfWithDefaultsValue) FromAnyOfWithDefaultsValueAnyOf0(v AnyOfWithDefaultsValueAnyOf0) error

FromAnyOfWithDefaultsValueAnyOf0 overwrites any union data inside the AnyOfWithDefaultsValue as the provided AnyOfWithDefaultsValueAnyOf0.

func (*AnyOfWithDefaultsValue) FromAnyOfWithDefaultsValueAnyOf1

func (t *AnyOfWithDefaultsValue) FromAnyOfWithDefaultsValueAnyOf1(v AnyOfWithDefaultsValueAnyOf1) error

FromAnyOfWithDefaultsValueAnyOf1 overwrites any union data inside the AnyOfWithDefaultsValue as the provided AnyOfWithDefaultsValueAnyOf1.

func (AnyOfWithDefaultsValue) MarshalJSON

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

func (*AnyOfWithDefaultsValue) MergeAnyOfWithDefaultsValueAnyOf0

func (t *AnyOfWithDefaultsValue) MergeAnyOfWithDefaultsValueAnyOf0(v AnyOfWithDefaultsValueAnyOf0) error

MergeAnyOfWithDefaultsValueAnyOf0 performs a merge with any union data inside the AnyOfWithDefaultsValue, using the provided AnyOfWithDefaultsValueAnyOf0.

func (*AnyOfWithDefaultsValue) MergeAnyOfWithDefaultsValueAnyOf1

func (t *AnyOfWithDefaultsValue) MergeAnyOfWithDefaultsValueAnyOf1(v AnyOfWithDefaultsValueAnyOf1) error

MergeAnyOfWithDefaultsValueAnyOf1 performs a merge with any union data inside the AnyOfWithDefaultsValue, using the provided AnyOfWithDefaultsValueAnyOf1.

func (*AnyOfWithDefaultsValue) UnmarshalJSON

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

type AnyOfWithDefaultsValueAnyOf0

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

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

func (*AnyOfWithDefaultsValueAnyOf0) ApplyDefaults

func (s *AnyOfWithDefaultsValueAnyOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AnyOfWithDefaultsValueAnyOf1

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

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

func (*AnyOfWithDefaultsValueAnyOf1) ApplyDefaults

func (s *AnyOfWithDefaultsValueAnyOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ArrayDefaults

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

#/components/schemas/ArrayDefaults

func (*ArrayDefaults) ApplyDefaults

func (s *ArrayDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNesting

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

#/components/schemas/DeepNesting

func (*DeepNesting) ApplyDefaults

func (s *DeepNesting) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNestingLevel1

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

#/components/schemas/DeepNesting/properties/level1

func (*DeepNestingLevel1) ApplyDefaults

func (s *DeepNestingLevel1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNestingLevel1Level2

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

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

func (*DeepNestingLevel1Level2) ApplyDefaults

func (s *DeepNestingLevel1Level2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DeepNestingLevel1Level2Level3

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

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

func (*DeepNestingLevel1Level2Level3) ApplyDefaults

func (s *DeepNestingLevel1Level2Level3) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MapWithDefaults

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

#/components/schemas/MapWithDefaults

func (*MapWithDefaults) ApplyDefaults

func (s *MapWithDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (MapWithDefaults) Get

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

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

func (MapWithDefaults) MarshalJSON

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

func (*MapWithDefaults) Set

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

Set sets an additional property value.

func (*MapWithDefaults) UnmarshalJSON

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

type NestedDefaults

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

#/components/schemas/NestedDefaults

func (*NestedDefaults) ApplyDefaults

func (s *NestedDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NestedDefaultsInlineChild

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

#/components/schemas/NestedDefaults/properties/inlineChild

func (*NestedDefaultsInlineChild) ApplyDefaults

func (s *NestedDefaultsInlineChild) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaults

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

#/components/schemas/OneOfWithDefaults

func (*OneOfWithDefaults) ApplyDefaults

func (s *OneOfWithDefaults) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaultsVariant

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

func (*OneOfWithDefaultsVariant) ApplyDefaults

func (t *OneOfWithDefaultsVariant) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfWithDefaultsVariant) AsOneOfWithDefaultsVariantOneOf0

func (t OneOfWithDefaultsVariant) AsOneOfWithDefaultsVariantOneOf0() (OneOfWithDefaultsVariantOneOf0, error)

AsOneOfWithDefaultsVariantOneOf0 returns the union data inside the OneOfWithDefaultsVariant as a OneOfWithDefaultsVariantOneOf0.

func (OneOfWithDefaultsVariant) AsOneOfWithDefaultsVariantOneOf1

func (t OneOfWithDefaultsVariant) AsOneOfWithDefaultsVariantOneOf1() (OneOfWithDefaultsVariantOneOf1, error)

AsOneOfWithDefaultsVariantOneOf1 returns the union data inside the OneOfWithDefaultsVariant as a OneOfWithDefaultsVariantOneOf1.

func (*OneOfWithDefaultsVariant) FromOneOfWithDefaultsVariantOneOf0

func (t *OneOfWithDefaultsVariant) FromOneOfWithDefaultsVariantOneOf0(v OneOfWithDefaultsVariantOneOf0) error

FromOneOfWithDefaultsVariantOneOf0 overwrites any union data inside the OneOfWithDefaultsVariant as the provided OneOfWithDefaultsVariantOneOf0.

func (*OneOfWithDefaultsVariant) FromOneOfWithDefaultsVariantOneOf1

func (t *OneOfWithDefaultsVariant) FromOneOfWithDefaultsVariantOneOf1(v OneOfWithDefaultsVariantOneOf1) error

FromOneOfWithDefaultsVariantOneOf1 overwrites any union data inside the OneOfWithDefaultsVariant as the provided OneOfWithDefaultsVariantOneOf1.

func (OneOfWithDefaultsVariant) MarshalJSON

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

func (*OneOfWithDefaultsVariant) MergeOneOfWithDefaultsVariantOneOf0

func (t *OneOfWithDefaultsVariant) MergeOneOfWithDefaultsVariantOneOf0(v OneOfWithDefaultsVariantOneOf0) error

MergeOneOfWithDefaultsVariantOneOf0 performs a merge with any union data inside the OneOfWithDefaultsVariant, using the provided OneOfWithDefaultsVariantOneOf0.

func (*OneOfWithDefaultsVariant) MergeOneOfWithDefaultsVariantOneOf1

func (t *OneOfWithDefaultsVariant) MergeOneOfWithDefaultsVariantOneOf1(v OneOfWithDefaultsVariantOneOf1) error

MergeOneOfWithDefaultsVariantOneOf1 performs a merge with any union data inside the OneOfWithDefaultsVariant, using the provided OneOfWithDefaultsVariantOneOf1.

func (*OneOfWithDefaultsVariant) UnmarshalJSON

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

type OneOfWithDefaultsVariantOneOf0

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

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

func (*OneOfWithDefaultsVariantOneOf0) ApplyDefaults

func (s *OneOfWithDefaultsVariantOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OneOfWithDefaultsVariantOneOf1

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

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

func (*OneOfWithDefaultsVariantOneOf1) ApplyDefaults

func (s *OneOfWithDefaultsVariantOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type RequiredAndOptional

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

#/components/schemas/RequiredAndOptional

func (*RequiredAndOptional) ApplyDefaults

func (s *RequiredAndOptional) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type SimpleDefaults

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

#/components/schemas/SimpleDefaults

func (*SimpleDefaults) ApplyDefaults

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