craftr schema import
Import an OpenAPI spec: preview the diff, resolve conflicts, write, and remap. Source may be a file path or URL; omit to use the saved source or piped stdin.
Usage
craftr schema import [source] [--api <api>] [--yes] [--no-persist-source] [--no-auto-clear-caught-up]Flags
| Flag | Description |
|---|---|
--api-a | API slug. |
--yes-y | Skip the apply confirmation (required for non-interactive use). |
--no-persist-source | Do not persist the spec source in api.json when a path or URL is given. Ignored for stdin and for a saved source. |
--no-auto-clear-caught-up | Keep overrides whose value already matches the new source. |
Examples
craftr schema import ./openapi.json -a petstore-apicraftr schema import https://petstore3.swagger.io/api/v3/openapi.json -a petstore-api --yes