responses

package
v2.1.2133-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewErrorResponse(response spec.Response, body string) string

func NewResponse

func NewResponse(response *spec.OperationResponse, body string) string

func ResponseTypeName

func ResponseTypeName(operation *spec.NamedOperation) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL