Documentation ¶
Index ¶
- func GenerateOperationResponseStruct(w generator.Writer, types *types.Types, operation *spec.NamedOperation)
- func NewErrorResponse(response spec.Response, body string) string
- func NewResponse(response *spec.OperationResponse, body string) string
- func ResponseTypeName(operation *spec.NamedOperation) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOperationResponseStruct ¶
func GenerateOperationResponseStruct(w generator.Writer, types *types.Types, operation *spec.NamedOperation)
TODO: This is used from both client and service. This can't be right.
Client is only intersted in success responses and service is interested in all declared responses.
func NewErrorResponse ¶ added in v2.1.2134
func NewResponse ¶
func NewResponse(response *spec.OperationResponse, body string) string
func ResponseTypeName ¶
func ResponseTypeName(operation *spec.NamedOperation) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.