Skip to content

Possible false-positive caused by rounding/float ? #78

@fmigneault

Description

@fmigneault

Running stac-node-validator, I get the following error, which seems to be causing a diff only on the last digit 5 -> 3.
Is this really only a floating point issue, or am I missing something else?

https://github.com/crim-ca/dlm-extension/actions/runs/8732451702/job/23959462411?pr=2

 -- Validation error in core, skipping extension validation
-- Lint: File is malformed -> use `--format` to fix the issue
            -7.882190080512502,
            58.21798141355221
          ],
          [
-           27.911651652899925,
+           27.911651652899923,
            58.21798141355221
          ],
          [
-           27.911651652899925,
+           27.911651652899923,
            37.13739173208318
          ],
          [
            -7.882190080512502,
            37.13739173208318
          ]
        ]
      ]
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions