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
The code generated by the DartClientCodegen is not working in flutter projects since it relies on dartson which relies on dart-mirrors. dart-mirrors is not supported in flutter and maybe never will be.
I'd suggest to either change it or add a new generator specifically for flutter. I started with a new generator for now which I started as a copy of the existing Dart generator.
Swagger-codegen version
2.3.0
Swagger declaration file content or url
Reproducible with any kind of declaration file, since it is a basic serialization/deserialization problem.
Description
The code generated by the DartClientCodegen is not working in flutter projects since it relies on dartson which relies on dart-mirrors. dart-mirrors is not supported in flutter and maybe never will be.
I'd suggest to either change it or add a new generator specifically for flutter. I started with a new generator for now which I started as a copy of the existing Dart generator.
Swagger-codegen version
2.3.0
Swagger declaration file content or url
Reproducible with any kind of declaration file, since it is a basic serialization/deserialization problem.
Command line used for generation
Suggest a fix/enhancement
As mentioned above I'd try to add a new generator which generates dart code compatible to flutter.
The text was updated successfully, but these errors were encountered: