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: 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 Pong

type Pong struct {
	Ping string `json:"ping" form:"ping"`
}

#/components/schemas/Pong

func (*Pong) ApplyDefaults

func (s *Pong) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ResponseBody

type ResponseBody struct {
	RequiredSlice             []Pong                                      `json:"required_slice" form:"required_slice"`
	ASlice                    []Pong                                      `json:"a_slice,omitempty" form:"a_slice,omitempty"`
	AMap                      *any                                        `json:"a_map,omitempty" form:"a_map,omitempty"`
	UnknownObject             map[string]any                              `json:"unknown_object,omitempty" form:"unknown_object,omitempty"`
	AdditionalProps           map[string]any                              `json:"additional_props,omitempty" form:"additional_props,omitempty"`
	ASliceWithAdditionalProps []ResponseBodyASliceWithAdditionalPropsItem `json:"a_slice_with_additional_props,omitempty" form:"a_slice_with_additional_props,omitempty"`
	Bytes                     []byte                                      `json:"bytes,omitempty" form:"bytes,omitempty"`
	BytesWithOverride         []byte                                      `json:"bytes_with_override,omitempty" form:"bytes_with_override,omitempty"`
}

#/components/schemas/ResponseBody

func (*ResponseBody) ApplyDefaults

func (s *ResponseBody) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ResponseBodyAMap

type ResponseBodyAMap = any

#/components/schemas/ResponseBody/properties/a_map

type ResponseBodyASlice

type ResponseBodyASlice = []Pong

#/components/schemas/ResponseBody/properties/a_slice

type ResponseBodyASliceWithAdditionalProps

type ResponseBodyASliceWithAdditionalProps = []ResponseBodyASliceWithAdditionalPropsItem

#/components/schemas/ResponseBody/properties/a_slice_with_additional_props

type ResponseBodyASliceWithAdditionalPropsItem

type ResponseBodyASliceWithAdditionalPropsItem = any

#/components/schemas/ResponseBody/properties/a_slice_with_additional_props/items

type ResponseBodyAdditionalProps

type ResponseBodyAdditionalProps = map[string]any

#/components/schemas/ResponseBody/properties/additional_props

type ResponseBodyRequiredSlice

type ResponseBodyRequiredSlice = []Pong

#/components/schemas/ResponseBody/properties/required_slice

type ResponseBodyUnknownObject

type ResponseBodyUnknownObject struct {
}

#/components/schemas/ResponseBody/properties/unknown_object

func (*ResponseBodyUnknownObject) ApplyDefaults

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