Documentation
¶
Overview ¶
Package openapi compiles an OpenAPI 3.x document into a clic spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyFields ¶ added in v0.7.0
BodyFields maps an OpenAPI request-body schema into a UI-agnostic form.Field tree. It is a pure transformation: feed it a parsed schema and it yields the fields a renderer (a huh form today, a richer TUI later) can present.
An object schema expands into one field per property, in alphabetical order (OpenAPI property order is not preserved by the parser). A non-object schema is represented as a single field named "body".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.