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
87 stars 33 forks source link

Fixes names on enums if available in oneOf, adds toString and Comparable functionality #217

Closed JohnGalt1717 closed 1 week ago

JohnGalt1717 commented 3 months ago

This should bring enum functionality up to all best practices:

If the spec has oneOf with const and title, it will use title automatically to name the enum. Will handle toString() properly. Enables Comparable against the value correctly per the documentation on advanced enums.