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
This is due to this PR that now also checks whether a null type is included in the array of types. However, with the OpenAPI 3.1 specification, nullable properties are declared by adding the null type to the type array in the property, rather than specifying nullable: true. As such, the nullable variable is now true for the property where it was false before. I'm not entirely sure where the second | null is coming from however.
What are the steps to reproduce this issue?
What happens?
The type is generated as follows:
What were you expecting to happen?
Type type is generated as follows:
Any logs, error output, etc?
N/A
Any other comments?
This is due to this PR that now also checks whether a
null
type is included in the array of types. However, with the OpenAPI 3.1 specification, nullable properties are declared by adding thenull
type to the type array in the property, rather than specifyingnullable: true
. As such, thenullable
variable is nowtrue
for the property where it wasfalse
before. I'm not entirely sure where the second| null
is coming from however.What versions are you using?
I'm using Orval 7.4.1, but this issue was introduced in 7.4.0.
The text was updated successfully, but these errors were encountered: