Skip to content
Status

CLI

format

speakeasy openapi transform format

Format an OpenAPI document using a selected output style

Format an OpenAPI document using either the readable style or the sorted style. The sorted style accepts JSON or YAML, emits deterministic JSON, and reorders arrays under required, parameters, oneOf, anyOf, and allOf; those array orders can affect generated method signatures, union ordering, or order-sensitive tooling.

speakeasy openapi transform format [flags]
-h, --help help for format
-o, --out string write directly to a file instead of stdout
-s, --schema string the schema to transform
--style string formatting style to apply (readable or sorted) (default "readable")
--logLevel string the log level (available options: [info, warn, error]) (default "info")