json-schema-validator

Json Schema Validation Decimal Number

Json Schema Validation Decimal Number Question: The following Python script must validate the number of decimal places in the records. In the schema I am trying to define that it has 3 decimal places, using "multipleOf": 0.001. I have a record with 5 decimal places: "scores": [1.12345] It should report an error but it is …

Total answers: 2