Carapacik / swagger_parser

Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
https://pub.dev/packages/swagger_parser
MIT License
100 stars 47 forks source link

Feat/optional to json enums #67

Closed elenaferr0 closed 1 year ago

elenaferr0 commented 1 year ago

Added possibility to generate .toJson() adding include_to_json_in_enums: true in pubspec.yaml. This is done to support retrofit_generator 7.0.8 (which uses .toJson() to serialize enums if exist, otherwise .name)

Carapacik commented 1 year ago

Great job. plz could you add tests to this case and add description for this in README? And request review after you're done

elenaferr0 commented 1 year ago

And request review after you're done

Not sure if I'm missing something but github doesn't let me request a review like the previous times. Anyway, I implemented the test cases, if you think more are necessary just let me know.