From 174bf95d6ac0e8dd4ba26768f0d2eb3648df987c Mon Sep 17 00:00:00 2001 From: LAURO CORREA JUNIOR Date: Wed, 13 Dec 2023 15:09:15 -0300 Subject: [PATCH] Remove validador multipleOf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Para o valor 571123.7 acusa erro 'JSON does not validate. Violations: [vlrtotalbruto] Must be a multiple of 0.01'. Validando o calculo feito pela class https://github.com/justinrainbow/json-schema/blob/master/src/JsonSchema/Constraints/NumberConstraint.php#L64C93-L64C93 o valor retornado para 571123.7 é -1.1641532182693E-10 --- jsonSchemes/v2_01_02/evtTomadorServicos.schema | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jsonSchemes/v2_01_02/evtTomadorServicos.schema b/jsonSchemes/v2_01_02/evtTomadorServicos.schema index 7b6896a6..acb44be3 100755 --- a/jsonSchemes/v2_01_02/evtTomadorServicos.schema +++ b/jsonSchemes/v2_01_02/evtTomadorServicos.schema @@ -47,8 +47,7 @@ }, "vlrtotalbruto": { "required": true, - "type": "number", - "multipleOf": 0.01 + "type": "number" }, "vlrtotalbaseret": { "required": true, @@ -234,4 +233,4 @@ } } } -} \ No newline at end of file +}