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
_data.files.add(MapEntry(
'carRegistration',
// The property 'path' can't be unconditionally accessed because the receiver can be 'null'.Try making the access conditional (using '?.') or adding a null check to the target ('!').
MultipartFile.fromFileSync(
carRegistration.path,
filename: carRegistration.path.split(Platform.pathSeparator).last,
),
));
Steps to reproduce
1: define
nullable
andrequired
File
column.2:
dart run swagger_parser && dart run build_runner build -d
3: export error output
Expected results
if nullable: true column, define like
not required column
Actual results
define
Your OpenApi snippet
Code sample
No response
Logs
Logs
[Paste your logs here]
Dart version and used packages versions
retrofit 4.4.1
carapacik_lints: ^1.9.1
dart_mappable_builder: ^4.3.0
freezed: ^2.5.7
json_serializable: ^6.8.0
retrofit_generator: ^9.1.3
swagger_parser: ^1.19.2
The text was updated successfully, but these errors were encountered: