Skip to content

Add support for localized , decimal separator in number form fields #17

@doneill

Description

@doneill

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions