openapi command is an alias for sn swagger. It accepts the same arguments and produces the same output.Alias for swagger — generate manifests from an OpenAPI spec.
openapi command is an alias for sn swagger. It accepts the same arguments and produces the same output.sn openapi <spec> Alias for swagger — generate manifests from OpenAPI spec.
| Name | Required | Description |
|---|---|---|
| spec | Yes | Path to a .json or .yaml OpenAPI spec file. |
sn openapi ./petstore.yaml