gibahjoe / openapi-generator-dart

Openapi Generator for Dart/Flutter
BSD 3-Clause "New" or "Revised" License
123 stars 34 forks source link

Fix enum value retrieval error #74

Closed atoka93 closed 2 years ago

atoka93 commented 2 years ago

Looks like with https://github.com/gibahjoe/openapi-generator-dart/pull/71 I broke something: https://github.com/gibahjoe/openapi-generator-dart/issues/73.

Hopefully this pull request will fix that and close both https://github.com/gibahjoe/openapi-generator-dart/issues/73 and https://github.com/gibahjoe/openapi-generator-dart/issues/72: added a check to make sure that the enum is always the specified type and replaced the enum value parsing with a different one.