Skip to content

Validator hangs with other $schema than draft-07 #80

@fmigneault

Description

@fmigneault

Using this schema: https://github.com/stac-extensions/mlm/blob/fix-mlm-artefact/json-schema/schema.json

Which employs "$schema": "https://json-schema.org/draft/2019-09/schema#"

Running stac-node-validator hangs on this example: https://github.com/stac-extensions/mlm/blob/fix-mlm-artefact/examples/item_bands_expression.json
Example: https://github.com/stac-extensions/mlm/actions/runs/11696331893/job/32573240886?pr=52

Simply changing back to "$schema": "http://json-schema.org/draft-07/schema#" directly validates without issue.

However, I need 2019-09 in this case because of "unevaluatedProperties": false feature.

Activity

changed the title [-]Validator hands with other `$schema` than `draft-07`[/-] [+]Validator hangs with other `$schema` than `draft-07`[/+] on Nov 6, 2024
fmigneault

fmigneault commented on Nov 6, 2024

@fmigneault
Author

@m-mohr I guess the ajv reference must be updated, as per https://ajv.js.org/json-schema.html#draft-2019-09 ?

edit: confirmed with local test, will create a PR

linked a pull request that will close this issue on Nov 6, 2024
fmigneault

fmigneault commented on Nov 7, 2024

@fmigneault
Author

Found a workaround (stac-extensions/mlm#59).
Given that, 2019-09 support is not needed anymore.

reopened this on Nov 7, 2024
m-mohr

m-mohr commented on Nov 7, 2024

@m-mohr
Collaborator

I'll reopen because it's nevertheless an issue that should be fixed. A software should never hang...

removed
bugSomething isn't working
on Mar 14, 2025
modified the milestones: 2.0.0, future on Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @m-mohr@fmigneault

      Issue actions

        Validator hangs with other `$schema` than `draft-07` · Issue #80 · moregeo-it/stac-node-validator