Documentation
¶
Overview ¶
Package tundraopenapi is the keystone typed model of an OpenAPI 3.0 specification — the single parsed-spec view downstream pleme-io tools (SDK companions, client builders, IaC/Terraform generators, doc emitters) import instead of each re-parsing the spec.
It is a thin, stable, codegen-oriented facade over getkin/kin-openapi: it loads + validates a spec, indexes its operations, and exposes the component schema universe, while Spec.Raw gives advanced consumers the full kin-openapi document. The library is spec-agnostic — point it at any OpenAPI 3.0 document the downstream tooling feeds it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
ID string // operationId
Method string // GET / POST / PUT / DELETE / ...
Path string // templated path, e.g. /v2/auth
Tags []string // OpenAPI tags
Summary string
}
Operation is one API operation, flattened from a path item for codegen.
type Spec ¶
type Spec struct {
Title string
Version string
Operations []Operation // sorted by (path, method) for deterministic codegen
// contains filtered or unexported fields
}
Spec is a parsed, validated, codegen-oriented view of an OpenAPI 3.0 document.
func (*Spec) OperationsByTag ¶
OperationsByTag groups operations by their first tag ("" if untagged), the natural unit for generating one client/file per API group.
func (*Spec) Raw ¶
Raw exposes the underlying kin-openapi document for advanced traversal (request/response bodies, security schemes, extensions, ...).
func (*Spec) SchemaNames ¶
SchemaNames returns the component schema names, sorted, for deterministic codegen.