You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently handling this bug with post-processing. I wrote a janky Python script to parse the generated schema.d.ts file and fix the output for the cases described in this issue
Description
An optional field in the openapi schema that includes the
default
property is generated as required in typescriptopenapi-typescript
7.4.3
18.19
macOS 14.2.1
Reproduction
The following openapi schema is used:
Running
npx openapi-typescript ./schema.json -o ./types.ts
The following type for ConfigIn is generated:
Expected result
I expect
interval
to be marked optional as wellChecklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: