Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive regarding EXTENSION_FOUND_BUT_NOT_USED in child tileset #308

Closed
bjornblissing opened this issue Apr 29, 2024 · 1 comment
Closed

Comments

@bjornblissing
Copy link

Validating tileset tileset.json
Validation result:
{
  "date": "2024-03-21T12:42:19.064Z",
  "numErrors": 1,
  "numWarnings": 5,
  "numInfos": 0,
  "issues": [
    {
      "type": "EXTERNAL_TILESET_VALIDATION_ERROR",
      "path": "0/0/0.json",
      "message": "0/0/0.json caused validation errors",
      "severity": "ERROR",
      "causes": [
        {
          "type": "EXTENSION_FOUND_BUT_NOT_USED",
          "path": "0/0/0.json/extensionsUsed",
          "message": "The extension 'MAXAR_extent' was found, but not declared in 'extensionsUsed'",
          "severity": "ERROR"
        },
...
}

The scenario here is that we have a tileset.json that has an MAXAR_extent extension and also included in it's extensionsUsed.
tileset.json then references 0/0/0.json as the first tile, this JSON does not list MAXAR_extent in extensionsUsed since it does not use it.

Our assumption is that extensionsUsed shall list all extensions used by the tileset itself and it's children, but the children does not need to list the parents extensions.

This error is only shown when running on /tileset.json, not /0/0/0.json

@bjornblissing
Copy link
Author

Fixed in:
#305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant