Replies: 1 comment 2 replies
-
Thanks for your suggestion Ryan. I like the idea of utilizing knowledge from a JSON schema to specify the right type of a value (number or string containing a number)! Note that you can solve this issue for your users without needing an update in On a side note: I'm not entirely happy with the current implementation of the "Enforce string" feature and have some ideas to improve on this, see #104 (comment). |
Beta Was this translation helpful? Give feedback.
-
Use case:
We have a config where several values have to be numbers saved as strings. The JSON Editor recognizes it as a number and saves it as a number (appropriately so!) Our users need to edit each value and select "Enforce String". (Thankful for this escape hatch which critically unblocks us.)
It's currently tedious for our users to check "Enforce string" for each one of these values, and our schema strongly enforces their value as a string. Not sure if it is even feasible architecturally for the JSON editor, but would be incredibly valuable for us.
If there are any other workarounds / options available in the editor I'm happy to pursue those as well!
Beta Was this translation helpful? Give feedback.
All reactions