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
Enable validation: true in the input configuration.
Use Orval to generate typescript from an OpenAPI JSON file
What happens?
I had an error in my OpenAPI specification and Orval did generate invalid type declaration (The property name was there, but the actual type was missing).
Even after enabling validation, Orval still generated the invalid typescript code.
Afterwards i used the IBM OpenAPI Validator without any custom configuration and it detected that error and also a lot of others regarding the wrong casing for parameter names, etc.
What were you expecting to happen?
I expected Orval to through an error and not generate invalid typescript code.
Any other comments?
I would appreciate it, if you could tell me, if this is the expected behaviour and if i should validate the OpenAPI file before using Orval. Thanks!
What are the steps to reproduce this issue?
validation: true
in the input configuration.What happens?
I had an error in my OpenAPI specification and Orval did generate invalid type declaration (The property name was there, but the actual type was missing).
Even after enabling validation, Orval still generated the invalid typescript code.
The part in the OpenAPI File looked like this:
And the generated type was:
whiteBalanceSettingsLeft: ;
Afterwards i used the IBM OpenAPI Validator without any custom configuration and it detected that error and also a lot of others regarding the wrong casing for parameter names, etc.
What were you expecting to happen?
I expected Orval to through an error and not generate invalid typescript code.
Any other comments?
I would appreciate it, if you could tell me, if this is the expected behaviour and if i should validate the OpenAPI file before using Orval. Thanks!
What versions are you using?
Operating System: Ubuntu
Package Version: 6.31.0
Browser Version: …
The text was updated successfully, but these errors were encountered: