Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
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 ¶
func (s *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.
Click to show internal directories.
Click to hide internal directories.