-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I've been working on getting my implementation better with Draft 4
(yes I know that draft is old but i don't think that is the issue here).
I was looking at https://bowtie.report/#/dialects/draft4?language=php, clicking on the details
button for justinrainbow-json-schema
(There is no direct link due to it opening as a dialog). Where it shows Unsuccessful Tests:justinrainbow-json-schemaPHP and directly on the top left there is a test named Case: enum with 0 does not match false with a subtitle Test: float zero is valid. The instance shows a integer zero: 0
where float zero 0.0
was expected.

The same can be seen when going back to https://bowtie.report/#/dialects/draft4?language=php and search the same test case (enum with 0 does not match false) and click on the test called float zero is valid the instance is displayed as 0
instead of the expected 0.0
.

The original test case from JSON-Schema-Test-Suite can be found here showing the expected float-zero.
{ "description": "float zero is valid", "data": 0.0, "valid": true }
❓ I'm not 100% sure the issue should be reported here, just let me know if I need to report it somewhere else or if more explanation is needed.