amazon-ion / ion-schema-kotlin

A Kotlin reference implementation of the Ion Schema Specification.
https://amazon-ion.github.io/ion-schema/
Apache License 2.0
26 stars 14 forks source link

Could an edit distance or match score help improve error messages? #281

Open jobarr-amzn opened 1 year ago

jobarr-amzn commented 1 year ago

Current reporting is unable to give a good error message in the case of multiple alternative applicable types or constraints. If we had a notion of edit distance or match score could we use that to narrow down to the more likely/applicable constraint?