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
Describe the bug
When generating code for a model with an array property which does not specify its subtype, the generated type is List<Object> which excludes null. Here is an example of a model definition:
Describe the bug
When generating code for a model with an array property which does not specify its subtype, the generated type is
List<Object>
which excludes null. Here is an example of a model definition:here is the code that gets generated:
*.swagger.dart:
*.swagger.g.dart:
To Reproduce
Please attach swagger and code snippet of generated value
Expected behavior
Since the api spec does not specify the subtype, it should probably be either
dynamic
orObject?
like so:*.swagger.dart:
*.swagger.g.dart:
OR
*.swagger.dart:
*.swagger.g.dart:
Swagger specification link
See model example above
Library version used:
2.8.5
The text was updated successfully, but these errors were encountered: