sparkgeo / staclint-legacy

Web interface for validating STAC datasets (http://staclint.com)
Apache License 2.0
2 stars 0 forks source link

JSON linting #15

Closed jbants closed 6 years ago

jbants commented 6 years ago

After inputting JSON to the linter and selecting a version, the validation succeeds regardless. The example JSON below is from the CBERS STAC and should only validate against v0.5.2.

{
  "id": "CBERS_4_AWFI_20170618_057_099_L2",
  "type": "Feature",
  "bbox": [
    48.356676,
    -3.055706,
    57.762728,
    5.032785
  ],
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [
          [
            48.36498,
            -1.798779
          ],
          [
            56.256263,
            -3.006893
          ],
          [
            57.739507,
            3.779688
          ],
          [
            49.836106,
            4.988722
          ],
          [
            48.36498,
            -1.798779
          ]
        ]
      ]
    ]
  },
  "properties": {
    "datetime": "2017-06-18T06:57:07Z",
    "provider": "INPE",
    "eo:collection": "default",
    "eo:sun_azimuth": 42.5366,
    "eo:sun_elevation": 59.5622,
    "eo:off_nadir": -0.00989713,
    "eo:epsg": 32651,
    "cbers:data_type": "L2",
    "cbers:path": 57,
    "cbers:row": 99,
    "c:id": "CBERS_4_AWFI_L2"
  },
  "links": {
    "self": {
      "rel": "self",
      "href": "https://cbers-stac.s3.amazonaws.com/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2.json"
    },
    "catalog": {
      "rel": "catalog",
      "href": "https://cbers-stac.s3.amazonaws.com/CBERS4/AWFI/057/catalog.json"
    },
    "collection": {
      "rel": "collection",
      "href": "https://cbers-stac.s3.amazonaws.com/collections/CBERS_4_AWFI_L2_collection.json"
    }
  },
  "assets": {
    "thumbnail": {
      "href": "https://s3.amazonaws.com/cbers-meta-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099.jpg",
      "type": "jpeg"
    },
    "metadata": {
      "href": "s3://cbers-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099_L2_BAND14.xml",
      "type": "xml"
    },
    "B13": {
      "href": "s3://cbers-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099_L2_BAND13.tif",
      "type": "GeoTIFF",
      "format": "COG",
      "eo_bands": [
        "13"
      ]
    },
    "B14": {
      "href": "s3://cbers-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099_L2_BAND14.tif",
      "type": "GeoTIFF",
      "format": "COG",
      "eo_bands": [
        "14"
      ]
    },
    "B15": {
      "href": "s3://cbers-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099_L2_BAND15.tif",
      "type": "GeoTIFF",
      "format": "COG",
      "eo_bands": [
        "15"
      ]
    },
    "B16": {
      "href": "s3://cbers-pds/CBERS4/AWFI/057/099/CBERS_4_AWFI_20170618_057_099_L2/CBERS_4_AWFI_20170618_057_099_L2_BAND16.tif",
      "type": "GeoTIFF",
      "format": "COG",
      "eo_bands": [
        "16"
      ]
    }
  }
}
gridcell commented 6 years ago

moved to stac-validator iissues