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

type Error struct {
	// Error code
	Code int32 `json:"code" form:"code"`
	// Error message
	Message string `json:"message" form:"message"`
}

#/components/schemas/Error

func (*Error) ApplyDefaults

func (s *Error) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Pet

type Pet struct {
	// The name of the pet.
	Name string `json:"name" form:"name"`
}

#/components/schemas/Pet

func (*Pet) ApplyDefaults

func (s *Pet) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type PetNames

type PetNames struct {
	// The names of the pets.
	Names []string `json:"names" form:"names"`
}

#/components/schemas/PetNames

func (*PetNames) ApplyDefaults

func (s *PetNames) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ValidatePetsJSONResponse

type ValidatePetsJSONResponse = []Pet

#/paths//pets:validate/post/responses/200/content/application/json/schema

Jump to

Keyboard shortcuts

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