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
Use the provided schema file and run the swagger_parser cli command.
Examine the output :)
Expected results
finalString? fieldName;
Actual results
final [string, null]? fieldName;
openapi specification changed from 3.0 to 3.1.
nullable parameter is removed and instead if a field is nullable, it now has an array of types, usually the first type in the array is the type it should be and the second one in 'null' indicating that this is a nullable field.
Steps to reproduce
Expected results
Actual results
openapi specification changed from 3.0 to 3.1.
nullable
parameter is removed and instead if a field is nullable, it now has an array of types, usually the first type in the array is the type it should be and the second one in'null'
indicating that this is a nullable field.you can read more about the 3.1 changes here. migrating from openapi 3.0 to 3.1.
Your OpenApi snippet
Code sample
Code sample
[Paste your code here]
Logs
No specific logs.
Dart version and used packages versions
Dart version
Dart SDK version: 3.3.1 (stable) (Wed Mar 6 13:09:19 2024 +0000) on "macos_arm64"
The text was updated successfully, but these errors were encountered: