Documentation
¶
Overview ¶
Package sdk generates client code from an OpenAPI document.
The output is source the caller owns, in the same spirit as the admin generator: a typed method per operation and a struct/interface per schema, with no runtime dependency beyond the language's standard HTTP client. It is a starting point that compiles, not a framework to configure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Lang is "ts" or "go".
Lang string
// Package names the generated Go package. Ignored for TypeScript.
// Empty means "client".
Package string
// BaseURL is the default server the client calls. Empty falls back to the
// document's first server, and failing that the client requires one at
// construction.
BaseURL string
}
Options selects the output language and names the generated artifact.
Click to show internal directories.
Click to hide internal directories.