glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.93k stars 1.05k forks source link

Improve Error Messaging for Enumeration Conversion #2431

Closed karaketir16 closed 6 months ago

karaketir16 commented 10 months ago

Enhance clarity and informativeness of error messages in the C++ code generator for enum type conversions. Update the default case in to_json function to include the specific enumeration name and the unexpected value in the error message. This aids in quicker debugging and aligns with best practices in error messaging.