Open gijzelaerr opened 5 years ago
This could be fixed by updating the v1.x schema. @tetron what do you think?
I feel like it would be better to tweak schema salad to give a better error message telling you that you have a number where it expects a string and you need to quote it.
The problem with coercing numbers to strings is there's all sorts of ways that something that was parsed as a number gets printed back as a different string that isn't character-for-character identical than what was in the original file. Then you're even more confused.
this works:
but if i change it to
it breaks:
It took me a while to figure it out, but 10 is automatically converted to a int type, which envDev doesn't like. Escaping the integer solves the problem, but is counterintuitive. Probably better to let envDef handle ints as well (automatically convert it to a string).