JSON Schema adopts the JSON data model and ignores the text format in number fields. Since numbers in JSON are encoded and aligned with English locales we need to add support to the validator that accepts , in locales that use it for decimal formatting.
Validation would be something like:
- cast number value to string
- find/replace for commas with periods
- cast back to numeric
Expectation:
- When a schemas number value contains a
, as decimal separators the data gets converted to decimal points replacing the commas
- E.g. 12,344 would be converted to 12.344