Closed harsimranmaan closed 3 years ago
Hi, thank you for raising an issue.
What version of the are you using? Also, can you provide a minimal spec that has same issue?
Sorry, I just read your title. Your version is 2.0.0.
I think the issue is that the Dart2_api has not implemented the changes in Openapi generator v5 which had a lot of breaking changes. If this worked previously, please downgrade to an earlier version that worked (2.0.0-nullsafety.0)
Just curious, why are you using the cli jar from dart-ogurets/dart-openapi-maven instead of the default openapicli? It seems to have dart2 support too.
Yes, it does have dart2 support, that is what the DART
generator name is.
Openapi generator Dart2 support used to be very lacking and buggy. Thats when the dart-ogurets/dart-openapi-maven
was added.
So, DART
is still dart2. Its the official openapi generator while dart-ogurets/dart-openapi-maven
is an addon
Makes sense. Thanks.
There is no name dart2
generator now https://github.com/gibahjoe/openapi-generator-dart/issues/31. dart2
has replaced dart
Stacktrace is showing that you're hitting default generator, not DartCodeGenerator, because you're using unknown generator.
fixed in version v2.2.0
See: https://github.com/bigpanther/trober/pull/92/checks?check_run_id=1614823203 for full run.
DART, DART_DIO and DART_JAGUAR all work fine (at least for generation)