Use the provided schema file and run the swagger_parser cli command.
Examine the output :)
Expected results
final String? 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
```dart [Paste your code here] ```Logs
No specific logs.
Dart version and used packages versions
Dart version
```console Dart SDK version: 3.3.1 (stable) (Wed Mar 6 13:09:19 2024 +0000) on "macos_arm64" ```