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
I couldn’t find any explicit statement about 3.1 support, but I’m unable to generate DTOs when using the 3.1 format. I get an error if I use a type array. I need to mark a field as optional, but in 3.1 the nullable: true parameter was removed in favor of a multi-type approach that includes null.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I couldn’t find any explicit statement about 3.1 support, but I’m unable to generate DTOs when using the 3.1 format. I get an error if I use a type array. I need to mark a field as optional, but in 3.1 the
nullable: true
parameter was removed in favor of a multi-type approach that includes null.OAI/OpenAPI-Specification#2244
https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
This code causes this error:
Beta Was this translation helpful? Give feedback.
All reactions