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

type Cat struct {
	ID    *string `json:"id,omitempty" form:"id,omitempty"`
	Name  *string `json:"name,omitempty" form:"name,omitempty"`
	Breed *string `json:"breed,omitempty" form:"breed,omitempty"`
	Color *string `json:"color,omitempty" form:"color,omitempty"`
	Purrs *bool   `json:"purrs,omitempty" form:"purrs,omitempty"`
}

#/components/schemas/Cat This is a cat

func (*Cat) ApplyDefaults

func (s *Cat) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Dog

type Dog struct {
	ID    *string `json:"id,omitempty" form:"id,omitempty"`
	Name  *string `json:"name,omitempty" form:"name,omitempty"`
	Breed *string `json:"breed,omitempty" form:"breed,omitempty"`
	Color *string `json:"color,omitempty" form:"color,omitempty"`
	Barks *bool   `json:"barks,omitempty" form:"barks,omitempty"`
}

#/components/schemas/Dog This is a dog

func (*Dog) ApplyDefaults

func (s *Dog) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type GetPets200ResponseJSON1

type GetPets200ResponseJSON1 = []GetPets200ResponseJSON2

#/paths//pets/get/responses/200/content/application/json/schema/properties/data

type GetPets200ResponseJSON2

type GetPets200ResponseJSON2 struct {
	Cat *Cat
	Dog *Dog
	Rat *Rat
}

#/paths//pets/get/responses/200/content/application/json/schema/properties/data/items

func (*GetPets200ResponseJSON2) ApplyDefaults

func (u *GetPets200ResponseJSON2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (GetPets200ResponseJSON2) MarshalJSON

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

func (*GetPets200ResponseJSON2) UnmarshalJSON

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

type GetPetsJSONResponse

type GetPetsJSONResponse struct {
	Data []GetPets200ResponseJSON2 `json:"data,omitempty" form:"data,omitempty"`
}

#/paths//pets/get/responses/200/content/application/json/schema

func (*GetPetsJSONResponse) ApplyDefaults

func (s *GetPetsJSONResponse) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Rat

type Rat struct {
	ID      *string `json:"id,omitempty" form:"id,omitempty"`
	Name    *string `json:"name,omitempty" form:"name,omitempty"`
	Color   *string `json:"color,omitempty" form:"color,omitempty"`
	Squeaks *bool   `json:"squeaks,omitempty" form:"squeaks,omitempty"`
}

#/components/schemas/Rat This is a rat

func (*Rat) ApplyDefaults

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