Skip to content

Summary details shows incorrect instance for float values #1813

@DannyvdSluijs

Description

@DannyvdSluijs

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: 0where float zero 0.0 was expected.

Image

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.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontend-uxImprovements to usability in the UI

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions