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: 6 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 Bar

type Bar struct {
	Bar string `form:"bar" json:"bar"`
	Foo string `form:"foo" json:"foo"`
}

#/components/schemas/Bar

func (*Bar) ApplyDefaults

func (s *Bar) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Foo

type Foo struct {
	Foo string `form:"foo" json:"foo"`
}

#/components/schemas/Foo

func (*Foo) ApplyDefaults

func (s *Foo) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type X

type X struct {
	A         *string `form:"a,omitempty" json:"a,omitempty"`
	B         *int    `form:"b,omitempty" json:"b,omitempty"`
	BaseField *string `form:"baseField,omitempty" json:"baseField,omitempty"`
}

#/components/schemas/X

func (*X) ApplyDefaults

func (s *X) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type YBase

type YBase struct {
	BaseField *string `form:"baseField,omitempty" json:"baseField,omitempty"`
}

#/components/schemas/YBase

func (*YBase) ApplyDefaults

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