Documentation
¶
Index ¶
- type AllOfWithDefaults
- type AllOfWithDefaultsAllOf0
- type AllOfWithDefaultsAllOf1
- type AllOfWithDefaultsN0AllOfSchemaComponent
- type AllOfWithDefaultsN1AllOfSchemaComponent
- type AllOfWithDefaultsSchemaComponent
- type AnyOfWithDefaults
- type AnyOfWithDefaultsSchemaComponent
- type AnyOfWithDefaultsValue
- type AnyOfWithDefaultsValueAnyOf0
- type AnyOfWithDefaultsValueAnyOf1
- type AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent
- type AnyOfWithDefaultsValueN1AnyOfPropertySchemaComponent
- type AnyOfWithDefaultsValuePropertySchemaComponent
- type ArrayDefaults
- type ArrayDefaultsSchemaComponent
- type DeepNesting
- type DeepNestingLevel1
- type DeepNestingLevel1Level2
- type DeepNestingLevel1Level2Level3
- type DeepNestingLevel1Level2Level3PropertyPropertyPropertySchemaComponent
- type DeepNestingLevel1Level2PropertyPropertySchemaComponent
- type DeepNestingLevel1PropertySchemaComponent
- type DeepNestingSchemaComponent
- type MapWithDefaults
- type MapWithDefaultsSchemaComponent
- type NestedDefaults
- type NestedDefaultsInlineChild
- type NestedDefaultsInlineChildPropertySchemaComponent
- type NestedDefaultsSchemaComponent
- type OneOfWithDefaults
- type OneOfWithDefaultsSchemaComponent
- type OneOfWithDefaultsVariant
- type OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent
- type OneOfWithDefaultsVariantN1OneOfPropertySchemaComponent
- type OneOfWithDefaultsVariantOneOf0
- type OneOfWithDefaultsVariantOneOf1
- type OneOfWithDefaultsVariantPropertySchemaComponent
- type RequiredAndOptional
- type RequiredAndOptionalSchemaComponent
- type SimpleDefaults
- type SimpleDefaultsSchemaComponent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllOfWithDefaults ¶
type AllOfWithDefaults = AllOfWithDefaultsSchemaComponent
type AllOfWithDefaultsAllOf0 ¶
type AllOfWithDefaultsAllOf0 = AllOfWithDefaultsN0AllOfSchemaComponent
type AllOfWithDefaultsAllOf1 ¶
type AllOfWithDefaultsAllOf1 = AllOfWithDefaultsN1AllOfSchemaComponent
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 AnyOfWithDefaultsValue ¶
type AnyOfWithDefaultsValue = AnyOfWithDefaultsValuePropertySchemaComponent
type AnyOfWithDefaultsValueAnyOf0 ¶
type AnyOfWithDefaultsValueAnyOf0 = AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent
type AnyOfWithDefaultsValueAnyOf1 ¶
type AnyOfWithDefaultsValueAnyOf1 = AnyOfWithDefaultsValueN1AnyOfPropertySchemaComponent
type AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent ¶
type AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent struct {
StringVal *string `json:"stringVal,omitempty" form:"stringVal,omitempty"`
}
#/components/schemas/AnyOfWithDefaults/properties/value/anyOf/0
func (*AnyOfWithDefaultsValueN0AnyOfPropertySchemaComponent) ApplyDefaults ¶
func (s *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 ¶
func (s *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 ¶
func (u *AnyOfWithDefaultsValuePropertySchemaComponent) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (AnyOfWithDefaultsValuePropertySchemaComponent) MarshalJSON ¶
func (u AnyOfWithDefaultsValuePropertySchemaComponent) MarshalJSON() ([]byte, error)
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 DeepNestingLevel1 ¶
type DeepNestingLevel1 = DeepNestingLevel1PropertySchemaComponent
type DeepNestingLevel1Level2 ¶
type DeepNestingLevel1Level2 = DeepNestingLevel1Level2PropertyPropertySchemaComponent
type DeepNestingLevel1Level2Level3 ¶
type DeepNestingLevel1Level2Level3 = DeepNestingLevel1Level2Level3PropertyPropertyPropertySchemaComponent
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 ¶
func (s *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 ¶
func (s *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 NestedDefaultsInlineChild ¶
type NestedDefaultsInlineChild = NestedDefaultsInlineChildPropertySchemaComponent
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 ¶
func (s *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 OneOfWithDefaultsVariant ¶
type OneOfWithDefaultsVariant = OneOfWithDefaultsVariantPropertySchemaComponent
type OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent ¶
type OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent struct {
OptionA *string `json:"optionA,omitempty" form:"optionA,omitempty"`
}
#/components/schemas/OneOfWithDefaults/properties/variant/oneOf/0
func (*OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent) ApplyDefaults ¶
func (s *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 ¶
func (s *OneOfWithDefaultsVariantN1OneOfPropertySchemaComponent) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type OneOfWithDefaultsVariantOneOf0 ¶
type OneOfWithDefaultsVariantOneOf0 = OneOfWithDefaultsVariantN0OneOfPropertySchemaComponent
type OneOfWithDefaultsVariantOneOf1 ¶
type OneOfWithDefaultsVariantOneOf1 = OneOfWithDefaultsVariantN1OneOfPropertySchemaComponent
type OneOfWithDefaultsVariantPropertySchemaComponent ¶
type OneOfWithDefaultsVariantPropertySchemaComponent struct {
OneOfWithDefaultsVariantOneOf0 *OneOfWithDefaultsVariantOneOf0
OneOfWithDefaultsVariantOneOf1 *OneOfWithDefaultsVariantOneOf1
}
#/components/schemas/OneOfWithDefaults/properties/variant
func (*OneOfWithDefaultsVariantPropertySchemaComponent) ApplyDefaults ¶
func (u *OneOfWithDefaultsVariantPropertySchemaComponent) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (OneOfWithDefaultsVariantPropertySchemaComponent) MarshalJSON ¶
func (u OneOfWithDefaultsVariantPropertySchemaComponent) MarshalJSON() ([]byte, error)
func (*OneOfWithDefaultsVariantPropertySchemaComponent) UnmarshalJSON ¶
func (u *OneOfWithDefaultsVariantPropertySchemaComponent) UnmarshalJSON(data []byte) error
type RequiredAndOptional ¶
type RequiredAndOptional = RequiredAndOptionalSchemaComponent
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.