Help us shape the future of Go! Take the 2026 Go Developer Survey

output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPISpecJSON

func GetOpenAPISpecJSON() ([]byte, error)

GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.

Types

type GetTestParameter

type GetTestParameter = []Test2

#/paths//test/get/parameters/1/schema

type Test

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

func (*Test) ApplyDefaults

func (t *Test) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (Test) AsTestAnyOf0

func (t Test) AsTestAnyOf0() (TestAnyOf0, error)

AsTestAnyOf0 returns the union data inside the Test as a TestAnyOf0.

func (Test) AsTestAnyOf1

func (t Test) AsTestAnyOf1() (TestAnyOf1, error)

AsTestAnyOf1 returns the union data inside the Test as a TestAnyOf1.

func (*Test) FromTestAnyOf0

func (t *Test) FromTestAnyOf0(v TestAnyOf0) error

FromTestAnyOf0 overwrites any union data inside the Test as the provided TestAnyOf0.

func (*Test) FromTestAnyOf1

func (t *Test) FromTestAnyOf1(v TestAnyOf1) error

FromTestAnyOf1 overwrites any union data inside the Test as the provided TestAnyOf1.

func (Test) MarshalJSON

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

func (*Test) MergeTestAnyOf0

func (t *Test) MergeTestAnyOf0(v TestAnyOf0) error

MergeTestAnyOf0 performs a merge with any union data inside the Test, using the provided TestAnyOf0.

func (*Test) MergeTestAnyOf1

func (t *Test) MergeTestAnyOf1(v TestAnyOf1) error

MergeTestAnyOf1 performs a merge with any union data inside the Test, using the provided TestAnyOf1.

func (*Test) UnmarshalJSON

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

type Test2

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

func (*Test2) ApplyDefaults

func (t *Test2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (Test2) AsInt0

func (t Test2) AsInt0() (int, error)

AsInt0 returns the union data inside the Test2 as a int.

func (Test2) AsString1

func (t Test2) AsString1() (string, error)

AsString1 returns the union data inside the Test2 as a string.

func (*Test2) FromInt0

func (t *Test2) FromInt0(v int) error

FromInt0 overwrites any union data inside the Test2 as the provided int.

func (*Test2) FromString1

func (t *Test2) FromString1(v string) error

FromString1 overwrites any union data inside the Test2 as the provided string.

func (Test2) MarshalJSON

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

func (*Test2) MergeInt0

func (t *Test2) MergeInt0(v int) error

MergeInt0 performs a merge with any union data inside the Test2, using the provided int.

func (*Test2) MergeString1

func (t *Test2) MergeString1(v string) error

MergeString1 performs a merge with any union data inside the Test2, using the provided string.

func (*Test2) UnmarshalJSON

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

type TestAnyOf0

type TestAnyOf0 struct {
	Item1 string `form:"item1" json:"item1"`
	Item2 string `form:"item2" json:"item2"`
}

#/components/schemas/test/anyOf/0

func (*TestAnyOf0) ApplyDefaults

func (s *TestAnyOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type TestAnyOf1

type TestAnyOf1 struct {
	Item2 *string `form:"item2,omitempty" json:"item2,omitempty"`
	Item3 *string `form:"item3,omitempty" json:"item3,omitempty"`
}

#/components/schemas/test/anyOf/1

func (*TestAnyOf1) ApplyDefaults

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