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: 7 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         `json:"name" form:"name"`
	ID                   int            `json:"id" form:"id"`
	Optional             *string        `json:"optional,omitempty" form:"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) MarshalJSON

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

func (*AdditionalPropertiesObject1) UnmarshalJSON

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

type AdditionalPropertiesObject2

type AdditionalPropertiesObject2 struct {
	Name                 string         `json:"name" form:"name"`
	ID                   int            `json:"id" form:"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) MarshalJSON

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

func (*AdditionalPropertiesObject2) UnmarshalJSON

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

type AdditionalPropertiesObject3

type AdditionalPropertiesObject3 struct {
	Name                 string         `json:"name" form:"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) MarshalJSON

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

func (*AdditionalPropertiesObject3) UnmarshalJSON

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

type AdditionalPropertiesObject4

type AdditionalPropertiesObject4 struct {
	Name                 string                           `json:"name" form:"name"`
	Inner                AdditionalPropertiesObject4Inner `json:"inner" form:"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) MarshalJSON

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

func (*AdditionalPropertiesObject4) UnmarshalJSON

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

type AdditionalPropertiesObject4Inner

type AdditionalPropertiesObject4Inner struct {
	Name                 string         `json:"name" form:"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) MarshalJSON

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

func (*AdditionalPropertiesObject4Inner) UnmarshalJSON

func (s *AdditionalPropertiesObject4Inner) UnmarshalJSON(data []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 {
	OneOfVariant4 *OneOfVariant4
	OneOfVariant5 *OneOfVariant5
}

#/components/schemas/AnyOfObject1 simple anyOf case

func (*AnyOfObject1) ApplyDefaults

func (u *AnyOfObject1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AnyOfObject1) MarshalJSON

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

func (*AnyOfObject1) UnmarshalJSON

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

type BodyWithAddPropsJSONRequest

type BodyWithAddPropsJSONRequest struct {
	Name                 string         `json:"name" form:"name"`
	Inner                map[string]int `json:"inner" form:"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) MarshalJSON

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

func (*BodyWithAddPropsJSONRequest) UnmarshalJSON

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

type EnsureEverythingIsReferencedJSONRequest

type EnsureEverythingIsReferencedJSONRequest struct {
	Field SchemaObject `json:"Field" form:"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 `json:"one,omitempty" form:"one,omitempty"`
	Two       *AdditionalPropertiesObject2 `json:"two,omitempty" form:"two,omitempty"`
	Three     *AdditionalPropertiesObject3 `json:"three,omitempty" form:"three,omitempty"`
	Four      *AdditionalPropertiesObject4 `json:"four,omitempty" form:"four,omitempty"`
	Five      *AdditionalPropertiesObject5 `json:"five,omitempty" form:"five,omitempty"`
	Six       *AdditionalPropertiesObject6 `json:"six,omitempty" form:"six,omitempty"`
	OneOf1    *OneOfObject1                `json:"oneOf1,omitempty" form:"oneOf1,omitempty"`
	OneOf2    *OneOfObject2                `json:"oneOf2,omitempty" form:"oneOf2,omitempty"`
	OneOf3    *OneOfObject3                `json:"oneOf3,omitempty" form:"oneOf3,omitempty"`
	OneOf4    *OneOfObject4                `json:"oneOf4,omitempty" form:"oneOf4,omitempty"`
	OneOf5    *OneOfObject5                `json:"oneOf5,omitempty" form:"oneOf5,omitempty"`
	OneOf6    *OneOfObject6                `json:"oneOf6,omitempty" form:"oneOf6,omitempty"`
	OneOf7    *OneOfObject7                `json:"oneOf7,omitempty" form:"oneOf7,omitempty"`
	OneOf8    *OneOfObject8                `json:"oneOf8,omitempty" form:"oneOf8,omitempty"`
	OneOf9    *OneOfObject9                `json:"oneOf9,omitempty" form:"oneOf9,omitempty"`
	OneOf10   *OneOfObject10               `json:"oneOf10,omitempty" form:"oneOf10,omitempty"`
	OneOf11   *OneOfObject11               `json:"oneOf11,omitempty" form:"oneOf11,omitempty"`
	OneOf12   *OneOfObject12               `json:"oneOf12,omitempty" form:"oneOf12,omitempty"`
	AnyOf1    *AnyOfObject1                `json:"anyOf1,omitempty" form:"anyOf1,omitempty"`
	JSONField *ObjectWithJSONField         `json:"jsonField,omitempty" form:"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 `json:"inner" form:"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           `json:"name" form:"name"`
	Value1 json.RawMessage  `json:"value1" form:"value1"`
	Value2 *json.RawMessage `json:"value2,omitempty" form:"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 {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant2 *OneOfVariant2
	OneOfVariant3 *OneOfVariant3
}

#/components/schemas/OneOfObject1 oneOf with references and no discriminator

func (*OneOfObject1) ApplyDefaults

func (u *OneOfObject1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject1) MarshalJSON

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

func (*OneOfObject1) UnmarshalJSON

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

type OneOfObject2

type OneOfObject2 struct {
	OneOfObject2OneOf0 *OneOfObject2OneOf0
	LBracketFloat321   *[]float32
	Bool2              *bool
}

#/components/schemas/OneOfObject2 oneOf with inline elements

func (*OneOfObject2) ApplyDefaults

func (u *OneOfObject2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject2) MarshalJSON

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

func (*OneOfObject2) UnmarshalJSON

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

type OneOfObject2OneOf0

type OneOfObject2OneOf0 struct {
	Name *string `json:"name,omitempty" form:"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 `json:"union,omitempty" form:"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 {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant2 *OneOfVariant2
	OneOfVariant3 *OneOfVariant3
}

#/components/schemas/OneOfObject3/properties/union

func (*OneOfObject3Union) ApplyDefaults

func (u *OneOfObject3Union) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject3Union) MarshalJSON

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

func (*OneOfObject3Union) UnmarshalJSON

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

type OneOfObject4

type OneOfObject4 struct {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant2 *OneOfVariant2
	OneOfVariant3 *OneOfVariant3
}

#/components/schemas/OneOfObject4 oneOf plus fixed type - custom marshaling/unmarshaling

func (*OneOfObject4) ApplyDefaults

func (u *OneOfObject4) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject4) MarshalJSON

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

func (*OneOfObject4) UnmarshalJSON

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

type OneOfObject5

type OneOfObject5 struct {
	OneOfVariant4 *OneOfVariant4
	OneOfVariant5 *OneOfVariant5
}

#/components/schemas/OneOfObject5 oneOf with discriminator but no mapping

func (*OneOfObject5) ApplyDefaults

func (u *OneOfObject5) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject5) MarshalJSON

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

func (*OneOfObject5) UnmarshalJSON

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

type OneOfObject6

type OneOfObject6 struct {
	OneOfVariant4 *OneOfVariant4
	OneOfVariant5 *OneOfVariant5
}

#/components/schemas/OneOfObject6 oneOf with discriminator and mapping

func (*OneOfObject6) ApplyDefaults

func (u *OneOfObject6) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject6) MarshalJSON

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

func (*OneOfObject6) UnmarshalJSON

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

type OneOfObject7

type OneOfObject7 = []OneOfObject7Item

#/components/schemas/OneOfObject7 array of oneOf

type OneOfObject7Item

type OneOfObject7Item struct {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant2 *OneOfVariant2
}

#/components/schemas/OneOfObject7/items

func (*OneOfObject7Item) ApplyDefaults

func (u *OneOfObject7Item) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject7Item) MarshalJSON

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

func (*OneOfObject7Item) UnmarshalJSON

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

type OneOfObject8

type OneOfObject8 struct {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant2 *OneOfVariant2
}

#/components/schemas/OneOfObject8 oneOf with fixed properties

func (*OneOfObject8) ApplyDefaults

func (u *OneOfObject8) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject8) MarshalJSON

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

func (*OneOfObject8) UnmarshalJSON

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

type OneOfObject9

type OneOfObject9 struct {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant6 *OneOfVariant6
}

#/components/schemas/OneOfObject9 oneOf with fixed discriminator

func (*OneOfObject9) ApplyDefaults

func (u *OneOfObject9) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject9) MarshalJSON

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

func (*OneOfObject9) UnmarshalJSON

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

type OneOfObject10

type OneOfObject10 struct {
	Any0 *any
	Any1 *any
}

#/components/schemas/OneOfObject10 fixed properties, variable required - will compile, but not much sense

func (*OneOfObject10) ApplyDefaults

func (u *OneOfObject10) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject10) MarshalJSON

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

func (*OneOfObject10) UnmarshalJSON

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

type OneOfObject11

type OneOfObject11 = map[string]any

#/components/schemas/OneOfObject11 additional properties of oneOf

type OneOfObject11Value

type OneOfObject11Value struct {
	Bool0    *bool
	Float321 *float32
	String2  *string
}

#/components/schemas/OneOfObject11/additionalProperties

func (*OneOfObject11Value) ApplyDefaults

func (u *OneOfObject11Value) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject11Value) MarshalJSON

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

func (*OneOfObject11Value) UnmarshalJSON

func (u *OneOfObject11Value) UnmarshalJSON(data []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 {
	String0  *string
	Float321 *float32
}

#/components/schemas/OneOfObject12/allOf/0

func (*OneOfObject12AllOf0) ApplyDefaults

func (u *OneOfObject12AllOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject12AllOf0) MarshalJSON

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

func (*OneOfObject12AllOf0) UnmarshalJSON

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

type OneOfObject12AllOf1

type OneOfObject12AllOf1 struct {
	OneOfVariant3 *OneOfVariant3
	OneOfVariant4 *OneOfVariant4
}

#/components/schemas/OneOfObject12/allOf/1

func (*OneOfObject12AllOf1) ApplyDefaults

func (u *OneOfObject12AllOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject12AllOf1) MarshalJSON

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

func (*OneOfObject12AllOf1) UnmarshalJSON

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

type OneOfObject13

type OneOfObject13 struct {
	OneOfVariant1 *OneOfVariant1
	OneOfVariant6 *OneOfVariant6
}

#/components/schemas/OneOfObject13 oneOf with fixed discriminator and other fields allowed

func (*OneOfObject13) ApplyDefaults

func (u *OneOfObject13) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject13) MarshalJSON

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

func (*OneOfObject13) UnmarshalJSON

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

type OneOfObject61

type OneOfObject61 struct {
	OneOfVariant4 *OneOfVariant4
	OneOfVariant5 *OneOfVariant5
}

#/components/schemas/OneOfObject61 oneOf with discriminator and partial mapping

func (*OneOfObject61) ApplyDefaults

func (u *OneOfObject61) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject61) MarshalJSON

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

func (*OneOfObject61) UnmarshalJSON

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

type OneOfObject62

type OneOfObject62 struct {
	OneOfVariant4  *OneOfVariant4
	OneOfVariant51 *OneOfVariant51
}

#/components/schemas/OneOfObject62 oneOf with snake_case discriminator and partial snake_case mapping

func (*OneOfObject62) ApplyDefaults

func (u *OneOfObject62) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (OneOfObject62) MarshalJSON

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

func (*OneOfObject62) UnmarshalJSON

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

type OneOfVariant1

type OneOfVariant1 struct {
	Name string `json:"name" form:"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 `json:"discriminator" form:"discriminator"`
	Name          string `json:"name" form:"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 `json:"discriminator" form:"discriminator"`
	ID            int    `json:"id" form:"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 `json:"values" form:"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 `json:"discriminator" form:"discriminator"`
	ID            int    `json:"id" form:"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 `json:"ToNewName" form:"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 `json:"prop1" form:"prop1"`
	Prop2 string `json:"prop2" form:"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 `json:"role" form:"role"`
	FirstName string `json:"firstName" form:"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 `json:"readOnlyRequiredProp" form:"readOnlyRequiredProp"`
	WriteOnlyRequiredProp int    `json:"writeOnlyRequiredProp" form:"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 `json:"role" form:"role"`
	FirstName string `json:"firstName" form:"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 `json:"readOnlyRequiredProp" form:"readOnlyRequiredProp"`
	WriteOnlyRequiredProp int    `json:"writeOnlyRequiredProp" form:"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