output

package
v0.0.0-...-bb4e2af Latest Latest
Warning

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

Go to latest
Published: Feb 14, 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 GetTestParameter

type GetTestParameter = []Test2

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

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 Test2

type Test2 struct {
	Int0    *int
	String1 *string
}

#/components/schemas/test2

func (*Test2) ApplyDefaults

func (u *Test2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (Test2) MarshalJSON

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

func (*Test2) UnmarshalJSON

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

type TestAnyOf0

type TestAnyOf0 struct {
	Item1 string `json:"item1" form:"item1"`
	Item2 string `json:"item2" form:"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 `json:"item2,omitempty" form:"item2,omitempty"`
	Item3 *string `json:"item3,omitempty" form:"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