components

package
v1.11.1-0...-1d444b7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

Code generated by github.com/deepmap/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:"-"`
}

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"`
}

Does not allow additional properties

type AdditionalPropertiesObject3

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

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:"-"`
}

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

Has additional properties with schema for dictionaries

type AdditionalPropertiesObject6

type AdditionalPropertiesObject6 = []map[string]SchemaObject

Array of object with additional properties

type AnyOfObject1

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

simple anyOf case

func (AnyOfObject1) AsOneOfVariant4

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

func (AnyOfObject1) AsOneOfVariant5

func (t AnyOfObject1) AsOneOfVariant5() (OneOfVariant5, error)

func (*AnyOfObject1) FromOneOfVariant4

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

func (*AnyOfObject1) FromOneOfVariant5

func (t *AnyOfObject1) FromOneOfVariant5(v OneOfVariant5) error

func (AnyOfObject1) MarshalJSON

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

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 EnsureEverythingIsReferencedJSONRequestBody

type EnsureEverythingIsReferencedJSONRequestBody RenamedRequestBody

EnsureEverythingIsReferencedJSONRequestBody defines body for EnsureEverythingIsReferenced for application/json ContentType.

type Enum1

type Enum1 string

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

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

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

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

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"
	EnumParam1False EnumParam1 = "false"
	EnumParam1True  EnumParam1 = "true"
)

Defines values for EnumParam1.

type EnumParam2

type EnumParam2 string

EnumParam2 defines model for EnumParam2.

const (
	EnumParam2Both  EnumParam2 = "both"
	EnumParam2False EnumParam2 = "false"
	EnumParam2True  EnumParam2 = "true"
)

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

Edge cases for enum names

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

Defines values for FunnyValues.

type NewName

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

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
}

oneOf with references and no disciminator

func (OneOfObject1) AsOneOfVariant1

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

func (OneOfObject1) AsOneOfVariant2

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

func (OneOfObject1) AsOneOfVariant3

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

func (*OneOfObject1) FromOneOfVariant1

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

func (*OneOfObject1) FromOneOfVariant2

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

func (*OneOfObject1) FromOneOfVariant3

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

func (OneOfObject1) MarshalJSON

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

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
}

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

func (OneOfObject10) AsOneOfObject100

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

func (OneOfObject10) AsOneOfObject101

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

func (*OneOfObject10) FromOneOfObject100

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

func (*OneOfObject10) FromOneOfObject101

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

func (OneOfObject10) MarshalJSON

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

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

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

func (OneOfObject11_AdditionalProperties) AsOneOfObject111

func (OneOfObject11_AdditionalProperties) AsOneOfObject112

func (*OneOfObject11_AdditionalProperties) FromOneOfObject110

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

func (*OneOfObject11_AdditionalProperties) FromOneOfObject111

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

func (*OneOfObject11_AdditionalProperties) FromOneOfObject112

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

func (OneOfObject11_AdditionalProperties) MarshalJSON

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

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)

func (OneOfObject12) AsOneOfObject121

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

func (OneOfObject12) AsOneOfVariant3

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

func (OneOfObject12) AsOneOfVariant4

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

func (*OneOfObject12) FromOneOfObject120

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

func (*OneOfObject12) FromOneOfObject121

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

func (*OneOfObject12) FromOneOfVariant3

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

func (*OneOfObject12) FromOneOfVariant4

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

func (OneOfObject12) MarshalJSON

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

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 OneOfObject2

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

oneOf with inline elements

func (OneOfObject2) AsOneOfObject20

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

func (OneOfObject2) AsOneOfObject21

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

func (OneOfObject2) AsOneOfObject22

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

func (*OneOfObject2) FromOneOfObject20

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

func (*OneOfObject2) FromOneOfObject21

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

func (*OneOfObject2) FromOneOfObject22

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

func (OneOfObject2) MarshalJSON

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

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"`
}

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)

func (OneOfObject3_Union) AsOneOfVariant2

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

func (OneOfObject3_Union) AsOneOfVariant3

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

func (*OneOfObject3_Union) FromOneOfVariant1

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

func (*OneOfObject3_Union) FromOneOfVariant2

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

func (*OneOfObject3_Union) FromOneOfVariant3

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

func (OneOfObject3_Union) MarshalJSON

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

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
}

oneOf plus fixed type - custom marshaling/unmarshaling

func (OneOfObject4) AsOneOfVariant1

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

func (OneOfObject4) AsOneOfVariant2

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

func (OneOfObject4) AsOneOfVariant3

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

func (*OneOfObject4) FromOneOfVariant1

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

func (*OneOfObject4) FromOneOfVariant2

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

func (*OneOfObject4) FromOneOfVariant3

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

func (OneOfObject4) MarshalJSON

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

func (*OneOfObject4) UnmarshalJSON

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

type OneOfObject5

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

oneOf with disciminator but no mapping

func (OneOfObject5) AsOneOfVariant4

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

func (OneOfObject5) AsOneOfVariant5

func (t OneOfObject5) AsOneOfVariant5() (OneOfVariant5, error)

func (OneOfObject5) Discriminator

func (t OneOfObject5) Discriminator() (string, error)

func (*OneOfObject5) FromOneOfVariant4

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

func (*OneOfObject5) FromOneOfVariant5

func (t *OneOfObject5) FromOneOfVariant5(v OneOfVariant5) error

func (OneOfObject5) MarshalJSON

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

func (*OneOfObject5) UnmarshalJSON

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

type OneOfObject6

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

oneOf with discriminator and mapping

func (OneOfObject6) AsOneOfVariant4

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

func (OneOfObject6) AsOneOfVariant5

func (t OneOfObject6) AsOneOfVariant5() (OneOfVariant5, error)

func (OneOfObject6) Discriminator

func (t OneOfObject6) Discriminator() (string, error)

func (*OneOfObject6) FromOneOfVariant4

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

func (*OneOfObject6) FromOneOfVariant5

func (t *OneOfObject6) FromOneOfVariant5(v OneOfVariant5) error

func (OneOfObject6) MarshalJSON

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

func (*OneOfObject6) UnmarshalJSON

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

func (OneOfObject6) ValueByDiscriminator

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

type OneOfObject7

type OneOfObject7 = []OneOfObject7_Item

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)

func (OneOfObject7_Item) AsOneOfVariant2

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

func (*OneOfObject7_Item) FromOneOfVariant1

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

func (*OneOfObject7_Item) FromOneOfVariant2

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

func (OneOfObject7_Item) MarshalJSON

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

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
}

oneOf with fixed properties

func (OneOfObject8) AsOneOfVariant1

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

func (OneOfObject8) AsOneOfVariant2

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

func (*OneOfObject8) FromOneOfVariant1

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

func (*OneOfObject8) FromOneOfVariant2

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

func (OneOfObject8) MarshalJSON

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

func (*OneOfObject8) UnmarshalJSON

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

type OneOfObject9

type OneOfObject9 struct {
	Type string `json:"type"`
	// contains filtered or unexported fields
}

oneOf with fixed descriminator

func (OneOfObject9) AsOneOfVariant1

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

func (OneOfObject9) AsOneOfVariant6

func (t OneOfObject9) AsOneOfVariant6() (OneOfVariant6, error)

func (OneOfObject9) Discriminator

func (t OneOfObject9) Discriminator() (string, error)

func (*OneOfObject9) FromOneOfVariant1

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

func (*OneOfObject9) FromOneOfVariant6

func (t *OneOfObject9) FromOneOfVariant6(v OneOfVariant6) error

func (OneOfObject9) MarshalJSON

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

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 OneOfVariant6

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

OneOfVariant6 defines model for OneOfVariant6.

type ParamsWithAddPropsParams

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

	// 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 {
	// This schema should be renamed via x-go-name when generating
	NewName NewName `json:"ToNewName"`
}

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

type RenamedParameterObject

type RenamedParameterObject string

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"`

	// 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.

Jump to

Keyboard shortcuts

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