Documentation ¶
Overview ¶
Package v2 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/KosyanMedia/oapi-codegen/v2 version (devel) DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
Types ¶
type Person ¶
type Person struct { FirstName string `json:"FirstName" validate:"required"` GovernmentIDNumber *int64 `json:"GovernmentIDNumber,omitempty"` LastName string `json:"LastName" validate:"required"` }
Person defines model for Person.
type PersonProperties ¶
type PersonProperties struct { FirstName *string `json:"FirstName,omitempty"` GovernmentIDNumber *int64 `json:"GovernmentIDNumber,omitempty"` LastName *string `json:"LastName,omitempty"` }
These are fields that specify a person. They are all optional, and would be used by an `Edit` style API endpoint, where each is optional.
type PersonWithID ¶
type PersonWithID struct { FirstName string `json:"FirstName" validate:"required"` GovernmentIDNumber *int64 `json:"GovernmentIDNumber,omitempty"` ID int64 `json:"ID" validate:"required"` LastName string `json:"LastName" validate:"required"` }
PersonWithID defines model for PersonWithID.