components

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package components provides primitives to interact with the openapi HTTP API.

Code generated by bitbucket.org/tin_gimranoff/oapi-codegen version (devel) DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalPropertiesObject1

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

AdditionalPropertiesObject1 Has additional properties of type int

func (AdditionalPropertiesObject1) Get

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

Getter for additional properties for AdditionalPropertiesObject1. Returns the specified element and whether it was found

func (AdditionalPropertiesObject1) MarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject1 to handle AdditionalProperties

func (*AdditionalPropertiesObject1) Set

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

Setter for additional properties for AdditionalPropertiesObject1

func (*AdditionalPropertiesObject1) UnmarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject1 to handle AdditionalProperties

type AdditionalPropertiesObject2

type AdditionalPropertiesObject2 struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

AdditionalPropertiesObject2 Does not allow additional properties

type AdditionalPropertiesObject3

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

AdditionalPropertiesObject3 Allows any additional property

func (AdditionalPropertiesObject3) Get

func (a AdditionalPropertiesObject3) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AdditionalPropertiesObject3. Returns the specified element and whether it was found

func (AdditionalPropertiesObject3) MarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject3 to handle AdditionalProperties

func (*AdditionalPropertiesObject3) Set

func (a *AdditionalPropertiesObject3) Set(fieldName string, value interface{})

Setter for additional properties for AdditionalPropertiesObject3

func (*AdditionalPropertiesObject3) UnmarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject3 to handle AdditionalProperties

type AdditionalPropertiesObject4

type AdditionalPropertiesObject4 struct {
	Inner                AdditionalPropertiesObject4_Inner `json:"inner"`
	Name                 string                            `json:"name"`
	AdditionalProperties map[string]interface{}            `json:"-"`
}

AdditionalPropertiesObject4 Has anonymous field which has additional properties

func (AdditionalPropertiesObject4) Get

func (a AdditionalPropertiesObject4) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AdditionalPropertiesObject4. Returns the specified element and whether it was found

func (AdditionalPropertiesObject4) MarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject4 to handle AdditionalProperties

func (*AdditionalPropertiesObject4) Set

func (a *AdditionalPropertiesObject4) Set(fieldName string, value interface{})

Setter for additional properties for AdditionalPropertiesObject4

func (*AdditionalPropertiesObject4) UnmarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject4 to handle AdditionalProperties

type AdditionalPropertiesObject4_Inner

type AdditionalPropertiesObject4_Inner struct {
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AdditionalPropertiesObject4_Inner defines model for AdditionalPropertiesObject4.Inner.

func (AdditionalPropertiesObject4_Inner) Get

func (a AdditionalPropertiesObject4_Inner) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AdditionalPropertiesObject4_Inner. Returns the specified element and whether it was found

func (AdditionalPropertiesObject4_Inner) MarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject4_Inner to handle AdditionalProperties

func (*AdditionalPropertiesObject4_Inner) Set

func (a *AdditionalPropertiesObject4_Inner) Set(fieldName string, value interface{})

Setter for additional properties for AdditionalPropertiesObject4_Inner

func (*AdditionalPropertiesObject4_Inner) UnmarshalJSON

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

Override default JSON handling for AdditionalPropertiesObject4_Inner to handle AdditionalProperties

type AdditionalPropertiesObject5

type AdditionalPropertiesObject5 map[string]SchemaObject

AdditionalPropertiesObject5 Has additional properties with schema for dictionaries

type AdditionalPropertiesObject6

type AdditionalPropertiesObject6 = []map[string]SchemaObject

AdditionalPropertiesObject6 Array of object with additional properties

type AdditionalPropertiesObject7

type AdditionalPropertiesObject7 map[string]*SchemaObjectNullable

AdditionalPropertiesObject7 Has additional properties with schema for dictionaries

type AnyOfObject1

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

AnyOfObject1 simple anyOf case

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 BodyWithAddPropsJSONBody

type BodyWithAddPropsJSONBody struct {
	Inner                map[string]int         `json:"inner"`
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BodyWithAddPropsJSONBody defines parameters for BodyWithAddProps.

func (BodyWithAddPropsJSONBody) Get

func (a BodyWithAddPropsJSONBody) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for BodyWithAddPropsJSONBody. Returns the specified element and whether it was found

func (BodyWithAddPropsJSONBody) MarshalJSON

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

Override default JSON handling for BodyWithAddPropsJSONBody to handle AdditionalProperties

func (*BodyWithAddPropsJSONBody) Set

func (a *BodyWithAddPropsJSONBody) Set(fieldName string, value interface{})

Setter for additional properties for BodyWithAddPropsJSONBody

func (*BodyWithAddPropsJSONBody) UnmarshalJSON

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

Override default JSON handling for BodyWithAddPropsJSONBody to handle AdditionalProperties

type BodyWithAddPropsJSONRequestBody

type BodyWithAddPropsJSONRequestBody BodyWithAddPropsJSONBody

BodyWithAddPropsJSONRequestBody defines body for BodyWithAddProps for application/json ContentType.

type EnsureEverythingIsReferencedJSONBody

type EnsureEverythingIsReferencedJSONBody struct {
	Field SchemaObject `json:"Field"`
}

EnsureEverythingIsReferencedJSONBody defines parameters for EnsureEverythingIsReferenced.

type EnsureEverythingIsReferencedJSONRequestBody

type EnsureEverythingIsReferencedJSONRequestBody EnsureEverythingIsReferencedJSONBody

EnsureEverythingIsReferencedJSONRequestBody defines body for EnsureEverythingIsReferenced for application/json ContentType.

type EnsureEverythingIsReferencedTextBody

type EnsureEverythingIsReferencedTextBody = string

EnsureEverythingIsReferencedTextBody defines parameters for EnsureEverythingIsReferenced.

type EnsureEverythingIsReferencedTextRequestBody

type EnsureEverythingIsReferencedTextRequestBody = EnsureEverythingIsReferencedTextBody

EnsureEverythingIsReferencedTextRequestBody defines body for EnsureEverythingIsReferenced for text/plain ContentType.

type Enum1

type Enum1 string

Enum1 Conflicts with Enum2, enum values need to be prefixed with type name.

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

Defines values for Enum1.

type Enum2

type Enum2 string

Enum2 Conflicts with Enum1, enum values need to be prefixed with type name.

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

Defines values for Enum2.

type Enum3

type Enum3 string

Enum3 Enum values conflict with Enums above, need to be prefixed with type name.

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

Defines values for Enum3.

type Enum4

type Enum4 string

Enum4 No conflicts here, should have unmodified enums

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

Defines values for Enum4.

type Enum5

type Enum5 int

Enum5 Numerical enum

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

Defines values for Enum5.

type EnumParam1

type EnumParam1 string

EnumParam1 defines model for EnumParam1.

const (
	EnumParam1Both EnumParam1 = "both"
	EnumParam1Off  EnumParam1 = "off"
	EnumParam1On   EnumParam1 = "on"
)

Defines values for EnumParam1.

type EnumParam2

type EnumParam2 string

EnumParam2 defines model for EnumParam2.

const (
	EnumParam2Both EnumParam2 = "both"
	EnumParam2Off  EnumParam2 = "off"
	EnumParam2On   EnumParam2 = "on"
)

Defines values for EnumParam2.

type EnumParam3

type EnumParam3 string

EnumParam3 defines model for EnumParam3.

const (
	Alice EnumParam3 = "alice"
	Bob   EnumParam3 = "bob"
	Eve   EnumParam3 = "eve"
)

Defines values for EnumParam3.

type EnumUnion

type EnumUnion string

EnumUnion defines model for EnumUnion.

const (
	EnumUnionFour  EnumUnion = "Four"
	EnumUnionOne   EnumUnion = "One"
	EnumUnionThree EnumUnion = "Three"
	EnumUnionTwo   EnumUnion = "Two"
)

Defines values for EnumUnion.

type EnumUnion2

type EnumUnion2 string

EnumUnion2 defines model for EnumUnion2.

const (
	EnumUnion2One   EnumUnion2 = "One"
	EnumUnion2Seven EnumUnion2 = "Seven"
	EnumUnion2Three EnumUnion2 = "Three"
	EnumUnion2Two   EnumUnion2 = "Two"
)

Defines values for EnumUnion2.

type FunnyValues

type FunnyValues string

FunnyValues Edge cases for enum names

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

Defines values for FunnyValues.

type NewName

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

NewName This schema should be renamed via x-go-name when generating

type ObjectWithJsonField

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

ObjectWithJsonField defines model for ObjectWithJsonField.

type OneOfObject1

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

OneOfObject1 oneOf with references and no discriminator

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 OneOfObject10

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

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

func (OneOfObject10) AsOneOfObject100

func (t OneOfObject10) AsOneOfObject100() (OneOfObject100, error)

AsOneOfObject100 returns the union data inside the OneOfObject10 as a OneOfObject100

func (OneOfObject10) AsOneOfObject101

func (t OneOfObject10) AsOneOfObject101() (OneOfObject101, error)

AsOneOfObject101 returns the union data inside the OneOfObject10 as a OneOfObject101

func (*OneOfObject10) FromOneOfObject100

func (t *OneOfObject10) FromOneOfObject100(v OneOfObject100) error

FromOneOfObject100 overwrites any union data inside the OneOfObject10 as the provided OneOfObject100

func (*OneOfObject10) FromOneOfObject101

func (t *OneOfObject10) FromOneOfObject101(v OneOfObject101) error

FromOneOfObject101 overwrites any union data inside the OneOfObject10 as the provided OneOfObject101

func (OneOfObject10) MarshalJSON

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

func (*OneOfObject10) MergeOneOfObject100

func (t *OneOfObject10) MergeOneOfObject100(v OneOfObject100) error

MergeOneOfObject100 performs a merge with any union data inside the OneOfObject10, using the provided OneOfObject100

func (*OneOfObject10) MergeOneOfObject101

func (t *OneOfObject10) MergeOneOfObject101(v OneOfObject101) error

MergeOneOfObject101 performs a merge with any union data inside the OneOfObject10, using the provided OneOfObject101

func (*OneOfObject10) UnmarshalJSON

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

type OneOfObject100

type OneOfObject100 = interface{}

OneOfObject100 defines model for .

type OneOfObject101

type OneOfObject101 = interface{}

OneOfObject101 defines model for .

type OneOfObject11

OneOfObject11 additional properties of oneOf

type OneOfObject110

type OneOfObject110 = bool

OneOfObject110 defines model for .

type OneOfObject111

type OneOfObject111 = float32

OneOfObject111 defines model for .

type OneOfObject112

type OneOfObject112 = string

OneOfObject112 defines model for .

type OneOfObject11_AdditionalProperties

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

OneOfObject11_AdditionalProperties defines model for OneOfObject11.AdditionalProperties.

func (OneOfObject11_AdditionalProperties) AsOneOfObject110

AsOneOfObject110 returns the union data inside the OneOfObject11_AdditionalProperties as a OneOfObject110

func (OneOfObject11_AdditionalProperties) AsOneOfObject111

AsOneOfObject111 returns the union data inside the OneOfObject11_AdditionalProperties as a OneOfObject111

func (OneOfObject11_AdditionalProperties) AsOneOfObject112

AsOneOfObject112 returns the union data inside the OneOfObject11_AdditionalProperties as a OneOfObject112

func (*OneOfObject11_AdditionalProperties) FromOneOfObject110

func (t *OneOfObject11_AdditionalProperties) FromOneOfObject110(v OneOfObject110) error

FromOneOfObject110 overwrites any union data inside the OneOfObject11_AdditionalProperties as the provided OneOfObject110

func (*OneOfObject11_AdditionalProperties) FromOneOfObject111

func (t *OneOfObject11_AdditionalProperties) FromOneOfObject111(v OneOfObject111) error

FromOneOfObject111 overwrites any union data inside the OneOfObject11_AdditionalProperties as the provided OneOfObject111

func (*OneOfObject11_AdditionalProperties) FromOneOfObject112

func (t *OneOfObject11_AdditionalProperties) FromOneOfObject112(v OneOfObject112) error

FromOneOfObject112 overwrites any union data inside the OneOfObject11_AdditionalProperties as the provided OneOfObject112

func (OneOfObject11_AdditionalProperties) MarshalJSON

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

func (*OneOfObject11_AdditionalProperties) MergeOneOfObject110

func (t *OneOfObject11_AdditionalProperties) MergeOneOfObject110(v OneOfObject110) error

MergeOneOfObject110 performs a merge with any union data inside the OneOfObject11_AdditionalProperties, using the provided OneOfObject110

func (*OneOfObject11_AdditionalProperties) MergeOneOfObject111

func (t *OneOfObject11_AdditionalProperties) MergeOneOfObject111(v OneOfObject111) error

MergeOneOfObject111 performs a merge with any union data inside the OneOfObject11_AdditionalProperties, using the provided OneOfObject111

func (*OneOfObject11_AdditionalProperties) MergeOneOfObject112

func (t *OneOfObject11_AdditionalProperties) MergeOneOfObject112(v OneOfObject112) error

MergeOneOfObject112 performs a merge with any union data inside the OneOfObject11_AdditionalProperties, using the provided OneOfObject112

func (*OneOfObject11_AdditionalProperties) UnmarshalJSON

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

type OneOfObject12

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

OneOfObject12 defines model for OneOfObject12.

func (OneOfObject12) AsOneOfObject120

func (t OneOfObject12) AsOneOfObject120() (OneOfObject120, error)

AsOneOfObject120 returns the union data inside the OneOfObject12 as a OneOfObject120

func (OneOfObject12) AsOneOfObject121

func (t OneOfObject12) AsOneOfObject121() (OneOfObject121, error)

AsOneOfObject121 returns the union data inside the OneOfObject12 as a OneOfObject121

func (OneOfObject12) AsOneOfVariant3

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

AsOneOfVariant3 returns the union data inside the OneOfObject12 as a OneOfVariant3

func (OneOfObject12) AsOneOfVariant4

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

AsOneOfVariant4 returns the union data inside the OneOfObject12 as a OneOfVariant4

func (*OneOfObject12) FromOneOfObject120

func (t *OneOfObject12) FromOneOfObject120(v OneOfObject120) error

FromOneOfObject120 overwrites any union data inside the OneOfObject12 as the provided OneOfObject120

func (*OneOfObject12) FromOneOfObject121

func (t *OneOfObject12) FromOneOfObject121(v OneOfObject121) error

FromOneOfObject121 overwrites any union data inside the OneOfObject12 as the provided OneOfObject121

func (*OneOfObject12) FromOneOfVariant3

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

FromOneOfVariant3 overwrites any union data inside the OneOfObject12 as the provided OneOfVariant3

func (*OneOfObject12) FromOneOfVariant4

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

FromOneOfVariant4 overwrites any union data inside the OneOfObject12 as the provided OneOfVariant4

func (OneOfObject12) MarshalJSON

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

func (*OneOfObject12) MergeOneOfObject120

func (t *OneOfObject12) MergeOneOfObject120(v OneOfObject120) error

MergeOneOfObject120 performs a merge with any union data inside the OneOfObject12, using the provided OneOfObject120

func (*OneOfObject12) MergeOneOfObject121

func (t *OneOfObject12) MergeOneOfObject121(v OneOfObject121) error

MergeOneOfObject121 performs a merge with any union data inside the OneOfObject12, using the provided OneOfObject121

func (*OneOfObject12) MergeOneOfVariant3

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

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

func (*OneOfObject12) MergeOneOfVariant4

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

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

func (*OneOfObject12) UnmarshalJSON

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

type OneOfObject120

type OneOfObject120 = string

OneOfObject120 defines model for .

type OneOfObject121

type OneOfObject121 = float32

OneOfObject121 defines model for .

type OneOfObject13

type OneOfObject13 struct {
	Type                 string                 `json:"type"`
	AdditionalProperties map[string]interface{} `json:"-"`
	// contains filtered or unexported fields
}

OneOfObject13 oneOf with fixed discriminator and other fields allowed

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)

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) Get

func (a OneOfObject13) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for OneOfObject13. Returns the specified element and whether it was found

func (OneOfObject13) MarshalJSON

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

Override default JSON handling for OneOfObject13 to handle AdditionalProperties and union

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) Set

func (a *OneOfObject13) Set(fieldName string, value interface{})

Setter for additional properties for OneOfObject13

func (*OneOfObject13) UnmarshalJSON

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

Override default JSON handling for OneOfObject13 to handle AdditionalProperties and union

func (OneOfObject13) ValueByDiscriminator

func (t OneOfObject13) ValueByDiscriminator() (interface{}, error)

type OneOfObject2

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

OneOfObject2 oneOf with inline elements

func (OneOfObject2) AsOneOfObject20

func (t OneOfObject2) AsOneOfObject20() (OneOfObject20, error)

AsOneOfObject20 returns the union data inside the OneOfObject2 as a OneOfObject20

func (OneOfObject2) AsOneOfObject21

func (t OneOfObject2) AsOneOfObject21() (OneOfObject21, error)

AsOneOfObject21 returns the union data inside the OneOfObject2 as a OneOfObject21

func (OneOfObject2) AsOneOfObject22

func (t OneOfObject2) AsOneOfObject22() (OneOfObject22, error)

AsOneOfObject22 returns the union data inside the OneOfObject2 as a OneOfObject22

func (*OneOfObject2) FromOneOfObject20

func (t *OneOfObject2) FromOneOfObject20(v OneOfObject20) error

FromOneOfObject20 overwrites any union data inside the OneOfObject2 as the provided OneOfObject20

func (*OneOfObject2) FromOneOfObject21

func (t *OneOfObject2) FromOneOfObject21(v OneOfObject21) error

FromOneOfObject21 overwrites any union data inside the OneOfObject2 as the provided OneOfObject21

func (*OneOfObject2) FromOneOfObject22

func (t *OneOfObject2) FromOneOfObject22(v OneOfObject22) error

FromOneOfObject22 overwrites any union data inside the OneOfObject2 as the provided OneOfObject22

func (OneOfObject2) MarshalJSON

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

func (*OneOfObject2) MergeOneOfObject20

func (t *OneOfObject2) MergeOneOfObject20(v OneOfObject20) error

MergeOneOfObject20 performs a merge with any union data inside the OneOfObject2, using the provided OneOfObject20

func (*OneOfObject2) MergeOneOfObject21

func (t *OneOfObject2) MergeOneOfObject21(v OneOfObject21) error

MergeOneOfObject21 performs a merge with any union data inside the OneOfObject2, using the provided OneOfObject21

func (*OneOfObject2) MergeOneOfObject22

func (t *OneOfObject2) MergeOneOfObject22(v OneOfObject22) error

MergeOneOfObject22 performs a merge with any union data inside the OneOfObject2, using the provided OneOfObject22

func (*OneOfObject2) UnmarshalJSON

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

type OneOfObject20

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

OneOfObject20 defines model for .

type OneOfObject21

type OneOfObject21 = []float32

OneOfObject21 defines model for .

type OneOfObject22

type OneOfObject22 = bool

OneOfObject22 defines model for .

type OneOfObject3

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

OneOfObject3 inline OneOf

type OneOfObject3_Union

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

OneOfObject3_Union defines model for OneOfObject3.Union.

func (OneOfObject3_Union) AsOneOfVariant1

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

AsOneOfVariant1 returns the union data inside the OneOfObject3_Union as a OneOfVariant1

func (OneOfObject3_Union) AsOneOfVariant2

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

AsOneOfVariant2 returns the union data inside the OneOfObject3_Union as a OneOfVariant2

func (OneOfObject3_Union) AsOneOfVariant3

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

AsOneOfVariant3 returns the union data inside the OneOfObject3_Union as a OneOfVariant3

func (*OneOfObject3_Union) FromOneOfVariant1

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

FromOneOfVariant1 overwrites any union data inside the OneOfObject3_Union as the provided OneOfVariant1

func (*OneOfObject3_Union) FromOneOfVariant2

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

FromOneOfVariant2 overwrites any union data inside the OneOfObject3_Union as the provided OneOfVariant2

func (*OneOfObject3_Union) FromOneOfVariant3

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

FromOneOfVariant3 overwrites any union data inside the OneOfObject3_Union as the provided OneOfVariant3

func (OneOfObject3_Union) MarshalJSON

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

func (*OneOfObject3_Union) MergeOneOfVariant1

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

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

func (*OneOfObject3_Union) MergeOneOfVariant2

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

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

func (*OneOfObject3_Union) MergeOneOfVariant3

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

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

func (*OneOfObject3_Union) UnmarshalJSON

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

type OneOfObject4

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

OneOfObject4 oneOf plus fixed type - custom marshaling/unmarshaling

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
}

OneOfObject5 oneOf with discriminator but no mapping

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)

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() (interface{}, error)

type OneOfObject6

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

OneOfObject6 oneOf with discriminator and mapping

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)

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() (interface{}, error)

type OneOfObject61

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

OneOfObject61 oneOf with discriminator and partial mapping

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)

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() (interface{}, error)

type OneOfObject62

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

OneOfObject62 oneOf with snake_case discriminator and partial snake_case mapping

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)

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() (interface{}, error)

type OneOfObject7

type OneOfObject7 = []OneOfObject7_Item

OneOfObject7 array of oneOf

type OneOfObject7_Item

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

OneOfObject7_Item defines model for OneOfObject7.Item.

func (OneOfObject7_Item) AsOneOfVariant1

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

AsOneOfVariant1 returns the union data inside the OneOfObject7_Item as a OneOfVariant1

func (OneOfObject7_Item) AsOneOfVariant2

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

AsOneOfVariant2 returns the union data inside the OneOfObject7_Item as a OneOfVariant2

func (*OneOfObject7_Item) FromOneOfVariant1

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

FromOneOfVariant1 overwrites any union data inside the OneOfObject7_Item as the provided OneOfVariant1

func (*OneOfObject7_Item) FromOneOfVariant2

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

FromOneOfVariant2 overwrites any union data inside the OneOfObject7_Item as the provided OneOfVariant2

func (OneOfObject7_Item) MarshalJSON

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

func (*OneOfObject7_Item) MergeOneOfVariant1

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

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

func (*OneOfObject7_Item) MergeOneOfVariant2

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

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

func (*OneOfObject7_Item) UnmarshalJSON

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

type OneOfObject8

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

OneOfObject8 oneOf with fixed properties

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 `json:"type"`
	// contains filtered or unexported fields
}

OneOfObject9 oneOf with fixed descriminator

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)

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() (interface{}, error)

type OneOfVariant1

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

OneOfVariant1 defines model for OneOfVariant1.

type OneOfVariant2

type OneOfVariant2 = []int

OneOfVariant2 defines model for OneOfVariant2.

type OneOfVariant3

type OneOfVariant3 = bool

OneOfVariant3 defines model for OneOfVariant3.

type OneOfVariant4

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

OneOfVariant4 defines model for OneOfVariant4.

type OneOfVariant5

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

OneOfVariant5 defines model for OneOfVariant5.

type OneOfVariant51

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

OneOfVariant51 defines model for one_of_variant51.

type OneOfVariant6

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

OneOfVariant6 defines model for OneOfVariant6.

type ParamsWithAddPropsParams

type ParamsWithAddPropsParams struct {
	// P1 This parameter has additional properties
	P1 map[string]interface{} `json:"p1"`

	// P2 This parameter has an anonymous inner property which needs to be
	// turned into a proper type for additionalProperties to work
	P2 struct {
		Inner map[string]string `json:"inner"`
	} `form:"p2" json:"p2"`
}

ParamsWithAddPropsParams defines parameters for ParamsWithAddProps.

type ReferenceToRenameMe

type ReferenceToRenameMe struct {
	// ToNewName This schema should be renamed via x-go-name when generating
	NewName NewName `json:"ToNewName"`
}

ReferenceToRenameMe When a Schema is renamed, $ref should refer to the new name

type RenamedParameterObject

type RenamedParameterObject string

RenamedParameterObject // a parameter

type RenamedRequestBody

type RenamedRequestBody struct {
	Field SchemaObject `json:"Field"`
}

RenamedRequestBody defines model for RequestBody.

type RenamedResponseObject

type RenamedResponseObject struct {
	Field SchemaObject `json:"Field"`
}

RenamedResponseObject defines model for ResponseObject.

type SchemaObject

type SchemaObject struct {
	FirstName string `json:"firstName"`

	// ReadOnlyRequiredProp 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,omitempty"`
	Role                  string  `json:"role"`
	WriteOnlyRequiredProp *int    `json:"writeOnlyRequiredProp,omitempty"`
}

SchemaObject defines model for SchemaObject.

type SchemaObjectNullable

type SchemaObjectNullable struct {
	FirstName string `json:"firstName"`

	// ReadOnlyRequiredProp 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,omitempty"`
	Role                  string  `json:"role"`
	WriteOnlyRequiredProp *int    `json:"writeOnlyRequiredProp,omitempty"`
}

SchemaObjectNullable defines model for SchemaObjectNullable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL