Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dart/Flutter] Dart files generated not working on flutter platform #7367

Closed
joernahrens opened this issue Jan 11, 2018 · 0 comments · Fixed by #7418
Closed

[Dart/Flutter] Dart files generated not working on flutter platform #7367

joernahrens opened this issue Jan 11, 2018 · 0 comments · Fixed by #7418

Comments

@joernahrens
Copy link
Contributor

joernahrens commented Jan 11, 2018

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
java -jar swagger-codegen-cli.jar generate -l dart -i swagger.yaml  \
        -o ./api-client -DbrowserClient=false
Suggest a fix/enhancement

As mentioned above I'd try to add a new generator which generates dart code compatible to flutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant