Documentation
¶
Index ¶
- func GenerateAuth(w io.Writer, api *spec.OpenAPI, pkg string) error
- func GenerateBodyTypes(w io.Writer, api *spec.OpenAPI, pkg string) error
- func GenerateClient(w io.Writer, api *spec.OpenAPI, pkg string) error
- func GenerateServer(w io.Writer, api *spec.OpenAPI, pkg string) error
- func GenerateTypes(w io.Writer, api *spec.OpenAPI, pkg string) error
- type MethodOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuth ¶
GenerateAuth writes the authentication helpers file. The generic helpers (BasicAuth, BearerToken, APIKey, …) are emitted unconditionally; when the spec defines components.securitySchemes, one typed wrapper per scheme is also emitted so call sites match spec naming.
func GenerateBodyTypes ¶
GenerateBodyTypes writes inline request body structs (for operations whose requestBody schema is not a $ref to a named component).
func GenerateClient ¶
GenerateClient writes the HTTP client file.
func GenerateServer ¶
GenerateServer writes the server interface + chi handler registration file.
Types ¶
Click to show internal directories.
Click to hide internal directories.