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: 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 `form:"ping" json:"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                                      `form:"required_slice" json:"required_slice"`
	ASlice                    []Pong                                      `form:"a_slice,omitempty" json:"a_slice,omitempty"`
	AMap                      *any                                        `form:"a_map,omitempty" json:"a_map,omitempty"`
	UnknownObject             map[string]any                              `form:"unknown_object,omitempty" json:"unknown_object,omitempty"`
	AdditionalProps           map[string]any                              `form:"additional_props,omitempty" json:"additional_props,omitempty"`
	ASliceWithAdditionalProps []ResponseBodyASliceWithAdditionalPropsItem `form:"a_slice_with_additional_props,omitempty" json:"a_slice_with_additional_props,omitempty"`
	Bytes                     []byte                                      `form:"bytes,omitempty" json:"bytes,omitempty"`
	BytesWithOverride         []byte                                      `form:"bytes_with_override,omitempty" json:"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