Help us shape the future of Go! Take the 2026 Go Developer Survey

packagea

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: 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_f78891b2.Name       `form:"name" json:"name"`
	Address    ext_f78891b2.Address    `form:"address" json:"address"`
	Occupation ext_f78891b2.Occupation `form:"occupation" json:"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_f78891b2.Name       `form:"name" json:"name"`
	Address    ext_f78891b2.Address    `form:"address" json:"address"`
	Occupation ext_f78891b2.Occupation `form:"occupation" json:"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_f78891b2.Name       `form:"name" json:"name"`
	Address    ext_f78891b2.Address    `form:"address" json:"address"`
	Occupation ext_f78891b2.Occupation `form:"occupation" json:"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               `form:"name,omitempty" json:"name,omitempty"`
	ObjectB *ext_f78891b2.ObjectB `form:"object_b,omitempty" json:"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