Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type HeaderParameter ¶
type Operation ¶
type Operation struct { PathItem *PathItem HTTPMethod string Method string Operation *openapi3.Operation Parameters struct { Path PathParameters Query []QueryParameter Headers []*HeaderParameter } DefaultResponse *Response Responses []*Response }
type Path ¶
type Path struct { Spec string Dirs []*PathDir Params PathParameters }
type PathDir ¶
type PathDir struct { Raw Prefix ParamRef *PathParameter }
type PathParameter ¶
type PathParameters ¶
type PathParameters []*PathParameter
func (PathParameters) Get ¶
func (ps PathParameters) Get(name string) (*PathParameter, bool)
type QueryParameter ¶
type Response ¶
type Response struct { StatusCode string Operation *Operation Spec *openapi3.Response RefName string Headers []Header }
func NewResponse ¶
func NewResponse(responseStatusCode string, o *Operation, r *openapi3.ResponseRef) *Response
Click to show internal directories.
Click to hide internal directories.