Skip to content
New issue

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

--properties-required-by-default and --default-non-nullable flags do not work #1651

Open
1 of 2 tasks
cekpowell opened this issue May 1, 2024 · 1 comment
Open
1 of 2 tasks
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library

Comments

@cekpowell
Copy link

Description

The --properties-required-by-default and --default-non-nullable flags do not work. If you include these flag in the CLI, the execution hangs forever. From this issue it also seems like the same thing is happening with --path-params-as-types. If you remove these flags, the execution works fine.

Name Version
openapi-typescript 6.7.5
Node.js 18.18.2
OS + version macOS 14.0

Reproduction

Run any generation command with --properties-required-by-default, --default-non-nullable or --path-params-as-types flags, and you will see the execution hangs.

Checklist

@cekpowell cekpowell added bug Something isn't working openapi-ts Relevant to the openapi-typescript library labels May 1, 2024
@magnattic
Copy link

magnattic commented May 13, 2024

I tried 7.0.0-next.11 in the hopes of this being fixed in the new version, but same problem. Is there an older version where this works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi-ts Relevant to the openapi-typescript library
Projects
None yet
Development

No branches or pull requests

2 participants