-
-
Notifications
You must be signed in to change notification settings - Fork 627
Open
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library
Description
openapi-typescript version
7.13.0
Node.js version
22.22.0
OS + version
macOS 26.3
Description
Hi,
In documentation there is said that CLI flags can be passed in redocly.yaml, but it seems to not work. It seems that the code is merged to main branch but is not released as the code was merged 2 weeks ago 27.02.2026 but the last release for openapi-typescript was 11.02.2026. Are there plans to create a release or some workarounds?
Reproduction
Create a new project and try to use CLI flags in redocly.yaml
apis:
myApi@v1:
root: https://myApi/docs
x-openapi-ts:
output: ./apiSchema.ts
properties-required-by-default: true
Expected result
Running with npx openapi-typescript should produce output where properties are required by default. It works when I pass the flag via CLI, but since I have multiple API-s and schemas I need to granually control each API flags.
Required
- My OpenAPI schema is valid and passes the Redocly validator (
npx @redocly/cli@latest lint)
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library