-
Notifications
You must be signed in to change notification settings - Fork 2
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
Optional properties are assigned inverse? #7
Comments
Which library are you using the translate the decorators in openapi definition ? Could you share the definition to be able to reproduce the issue ? |
Of course. I'm using NestJS which includes the package I created a gist with my swagger.json file here. |
Indeed this should be reversed from the openapi definition. Do you know if you have time to investigate this ? |
I think that it would probably take me some time to figure out what's going in this project. If it's just a super quick fix like a missing inversion, the library creator or maintainer might be kind enough to quickly fix it. Alternatively, I might find some time in the future to poke around in the code but can't make that commitment as of now. |
I was asking because i know that he's in holiday right now so if that was blocking/urgent, that may have been faster to make a PR direclty but no worries |
Hello, It should be fixed in the |
Hey @Eywek , I can confirm that the fix works. Thank you! |
This is such a great library that saves me a ton of time. I'm super grateful it exists! I have a small issue as illustrated below:
profile.entitiy.ts
Generated type
It seems to be as if the optional
?
is appended inverse to the way it should be {required: false} should result in the type being optional and vice versa.This happens to all my types (the above is just an example).
The text was updated successfully, but these errors were encountered: