-
Notifications
You must be signed in to change notification settings - Fork 14
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
Generation of nullable required property #39
Comments
Hi there @christoph-feb22, thanks for filing the issue! I believe the reason the generated type is If the generated type is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Zaid,
I have an API definition which contains a model with an required property with the datatype nullable string.
Hawaii generates the type as string. I expect it to be a string option.
Hawaii/src/OperationParameters.fs
Line 138 in 9b117d2
As I understand it correct, this line is responsible if a type is optional or not.
Maybe the following replacement is an option?
parameter.Required && not nullable
Maybe there is an reason for only checking the required property?
Thanks in advance.
The text was updated successfully, but these errors were encountered: