-
-
Notifications
You must be signed in to change notification settings - Fork 84
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 build 0.7.1-alpha.1 does not compile #94
Comments
Could you try alpha.3? |
@aeneasr I'm happy to but I'm not seeing that version released yet at https://pub.dev/packages/ory_kratos_client/versions, is that underway? |
Whoops, my bad, looks like I was in the future already. We only released 0.7.1 :D |
I just tried the fix @yholkamp suggested and it works: https://github.com/stack11/sdk |
Probably caused by: swagger-api/swagger-codegen#7418 (comment) |
I just saw that the
I don't know any Dart so I don't know the differences between dio / dio-next and jaguar. From what I see on the forums, dart-dio looks like it's better supported? |
Those are frameworks. I only know dio, but it's pretty good as far as I remember. |
I tried dio and it also seems horribly outdated. Stuff like null-safety is also not there. |
@aeneasr since adding this ticket I've had success with the |
Ah nice! What's the difference between dart and dart2? Is it just the generator or more? |
Dart 1 is deprecated as a whole. Nobody should use it anymore. Maybe that also fixes other issues I/we have been facing? |
Ahhh, ok, that makes sense! Then yeah, all for going with dart2 generator! |
But the generated code is dart 2 compliant (see the |
So should we change to the dart2 generator? It isn't documented yet :/ |
Ok, so I have merged the changes and triggered a release. Let's see if it works now. A few questions from my side:
|
Superseded #109 |
Describe the bug
The 0.7.1-alpha.1 build of the Dart Kratos client library does not compile as it calls an invalid method.
To Reproduce
Steps to reproduce the behavior:
Include the library in a Flutter project
Run
flutter build appbundle
Observe the following errors:
Expected behavior
These lines attempt to deserialize a map of string to object properties from JSON, in the case of Dart the goal should be a Map here and not an Object as the spec dictates. One way to adjust that may be to change such lines in to a
json[r'details'] as Map
cast rather, as the input is already deserialized and maybe in the right format.Environment
Additional context
The root cause seems to be with the code generator:
The text was updated successfully, but these errors were encountered: