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'm having some issues using the generated json to generate API endpoint for Flutter using the this package. It seems to fail on the notation for nullable types.
It seems as if the following notation for a nullable value (expires_at) which is valid in the openAPI 3.1 editor, is not being generated correctly.
when i change the type to type: string, everything works as expected
error:
type 'List<dynamic>'is not a subtype of type 'String?'in type cast
package:swagger_dart_code_generator/src/swagger_models/responses/swagger_schema.g.dart 11:26_$SwaggerSchemaFromJson
package:swagger_dart_code_generator/src/swagger_models/responses/swagger_schema.dart 118:7newSwaggerSchema.fromJson
package:swagger_dart_code_generator/src/swagger_models/responses/swagger_schema.g.dart 16:43_$SwaggerSchemaFromJson.<fn>
Swagger specification link
3.1.0
Library version used:
2.15.2
The text was updated successfully, but these errors were encountered:
I'm having some issues using the generated json to generate API endpoint for Flutter using the this package. It seems to fail on the notation for nullable types.
It seems as if the following notation for a nullable value (expires_at) which is valid in the openAPI 3.1 editor, is not being generated correctly.
when i change the type to
type: string
, everything works as expectederror:
Swagger specification link
3.1.0
Library version used:
2.15.2
The text was updated successfully, but these errors were encountered: