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 Test

type Test struct {
	TestAnyOf0 *TestAnyOf0
	TestAnyOf1 *TestAnyOf1
}

#/components/schemas/test

func (*Test) ApplyDefaults

func (u *Test) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (Test) MarshalJSON

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

func (*Test) UnmarshalJSON

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

type TestAnyOf0

type TestAnyOf0 struct {
	FieldA *string `json:"fieldA,omitempty" form:"fieldA,omitempty"`
}

#/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 {
	FieldA *string `json:"fieldA,omitempty" form:"fieldA,omitempty"`
}

#/components/schemas/test/anyOf/1

func (*TestAnyOf1) ApplyDefaults

func (s *TestAnyOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type TestAnyOf1FieldA

type TestAnyOf1FieldA string

#/components/schemas/test/anyOf/1/properties/fieldA

const (
	Foo TestAnyOf1FieldA = "foo"
	Bar TestAnyOf1FieldA = "bar"
)

Jump to

Keyboard shortcuts

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