We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
A brief description of the bug.
I have a nullable enum yaml file (Open API 3.1) defined like:
type: - string - 'null' ... enum: - VALUE1 - VALUE2 - null
which i have in my schema as
values: $ref: <relative_path>/values.yaml
This will output in the TS schema output:
values: "VALUE1" | "VALUE2" | null
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?
npx openapi-typescript ./openapi.yaml -o ./src/typings/schema.d.ts --enum --alphabetize --dedupe-enums
Expected result
export enum Values ...
values: Values | null
Checklist
npx @redocly/cli@latest lint
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: