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
Hey @DanDeMicco, thank you for submitting an issue. I think I came across the same bug as you (not sure if it is related to this issue though, if not I'll open a new one).
Context
According to OpenAPI specs, nullable enums must contain null value in the enum array as well as nullable: true key/value.
If I don't specify the null value into the enum array, it generates the enum declaration properly but forgets to declare nullable for Test (though the generated doc clearly mention it can be string|null):
Description
A brief description of the bug.
I have a nullable enum yaml file (Open API 3.1) defined like:
which i have in my schema as
This will output in the TS schema output:
with no enum emitted
openapi-typescript
7.3.0
v18.20.4
macOS 14.6.1
Reproduction
How can this be reproduced / when did the error occur?
Expected result
export enum Values ...
values: Values | null
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: