You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see the Bar and Foobar properties both have the "nullable" comment (but Bar surprisingly isn't nullable nor optional at all) and Foobar is just an optional property.
If I generate with zod client output I get what I expected:
Looks like the change in #1200 is the root cause here. Removed the angular client check and now the models are correctly generated. I suspect a proper fix for this would be to generate non-nullable scalar values only for url params when generating angular code.
I'm using orval 7.9.0 and I have the following component schema:
and the generated model with
angular
client output is as such:As you can see the Bar and Foobar properties both have the "nullable" comment (but Bar surprisingly isn't nullable nor optional at all) and Foobar is just an optional property.
If I generate with
zod
client output I get what I expected:Is there any specific reason for why angular generation works this way or is it just a bug?
The text was updated successfully, but these errors were encountered: