// Paths describes the available paths and operations for the API, more at https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#pathsObject
typePathsstruct{
Pathsmap[string]*Path
spec.VendorExtensible
}
// MarshalJSON is a custom marshal function that knows how to encode Paths as JSON
// Path describes the operations available on a single path, more at https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#pathItemObject
//
// Note that this struct is actually a thin wrapper around PathProps to make it referable and extensible
typePathstruct{
spec.Refable
PathProps
spec.VendorExtensible
}
// MarshalJSON is a custom marshal function that knows how to encode Path as JSON
// PathProps describes the operations available on a single path, more at https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#pathItemObject
typePathPropsstruct{
// Summary holds a summary for all operations in this path
Summarystring`json:"summary,omitempty"`
// Description holds a description for all operations in this path
Descriptionstring`json:"description,omitempty"`
// Get defines GET operation
Get*Operation`json:"get,omitempty"`
// Put defines PUT operation
Put*Operation`json:"put,omitempty"`
// Post defines POST operation
Post*Operation`json:"post,omitempty"`
// Delete defines DELETE operation
Delete*Operation`json:"delete,omitempty"`
// Options defines OPTIONS operation
Options*Operation`json:"options,omitempty"`
// Head defines HEAD operation
Head*Operation`json:"head,omitempty"`
// Patch defines PATCH operation
Patch*Operation`json:"patch,omitempty"`
// Trace defines TRACE operation
Trace*Operation`json:"trace,omitempty"`
// Servers is an alternative server array to service all operations in this path
Servers[]*Server`json:"servers,omitempty"`
// Parameters a list of parameters that are applicable for this operation