packagea

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: 8 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 DefinesModelsWithExternalFieldsJSONRequest

type DefinesModelsWithExternalFieldsJSONRequest struct {
	Name       ext_cd3e418f.Name       `json:"name" form:"name"`
	Address    ext_cd3e418f.Address    `json:"address" form:"address"`
	Occupation ext_cd3e418f.Occupation `json:"occupation" form:"occupation"`
}

#/paths//defines_models_with_external_fields/post/requestBody/content/application/json/schema

func (*DefinesModelsWithExternalFieldsJSONRequest) ApplyDefaults

func (s *DefinesModelsWithExternalFieldsJSONRequest) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DefinesModelsWithExternalFieldsJSONResponse

type DefinesModelsWithExternalFieldsJSONResponse struct {
	Name       ext_cd3e418f.Name       `json:"name" form:"name"`
	Address    ext_cd3e418f.Address    `json:"address" form:"address"`
	Occupation ext_cd3e418f.Occupation `json:"occupation" form:"occupation"`
}

#/paths//defines_models_with_external_fields/post/responses/200/content/application/json/schema

func (*DefinesModelsWithExternalFieldsJSONResponse) ApplyDefaults

ApplyDefaults sets default values for fields that are nil.

type Employee

type Employee struct {
	Name       ext_cd3e418f.Name       `json:"name" form:"name"`
	Address    ext_cd3e418f.Address    `json:"address" form:"address"`
	Occupation ext_cd3e418f.Occupation `json:"occupation" form:"occupation"`
}

#/components/schemas/Employee

func (*Employee) ApplyDefaults

func (s *Employee) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectA

type ObjectA struct {
	Name    *string               `json:"name,omitempty" form:"name,omitempty"`
	ObjectB *ext_cd3e418f.ObjectB `json:"object_b,omitempty" form:"object_b,omitempty"`
}

#/components/schemas/ObjectA

func (*ObjectA) ApplyDefaults

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