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 · 3 comments
Open
1 of 2 tasks
Labels
openapi-ts Relevant to the openapi-typescript library question Further information is requested

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?

@f-ricci
Copy link

f-ricci commented Jun 13, 2024

This is still not working for 7.0.0-rc.0

@drwpow
Copy link
Contributor

drwpow commented Jun 24, 2024

Is anyone able to provide a reproduction of this issue? We have tests for both that test they’re working that are both passing.

@drwpow drwpow added question Further information is requested and removed bug Something isn't working labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi-ts Relevant to the openapi-typescript library question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants