orchestr7 / ktoml

Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS
https://akuleshov7.github.io/ktoml
MIT License
446 stars 23 forks source link

Add extra logic for validating enum values #229

Closed orchestr7 closed 1 year ago

orchestr7 commented 1 year ago

We need to add a mechanism that will print the closest enum value in case user made a misprint: “you provided an invalid value for AAA enum, may be you have meant AAB?”