Documentation
¶
Overview ¶
Package codegen defines the intermediate representation used by generate parsers before template rendering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthScheme ¶
AuthScheme describes one supported authentication scheme.
type BodySchema ¶
type BodySchema struct {
Name string
Type string
Format string
Required bool
Fields []BodySchema
Items *BodySchema
}
BodySchema captures a recursive request body schema tree.
type Request ¶
type Request struct {
Method string
Path string
Name string
Summary string
Headers []Header
Params []Param
Body *BodySchema
Responses []Response
}
Request describes one generated API request shape.
Click to show internal directories.
Click to hide internal directories.