Skip to content

Processing properties are not required on providers #8

@l0b0

Description

@l0b0

The readme says

At least one of the fields must be specified.

, but removing all the processing:* properties from the providers objects does not result in a validation error.

Example collection.json:

{
  "stac_version": "1.0.0",
  "stac_extensions": [
    "https://stac-extensions.github.io/processing/v1.0.0/schema.json"
  ],
  "type": "Collection",
  "id": "Sentinel2-L2A",
  "title": "Sentinel-2 MSI: MultiSpectral Instrument, Level-2A",
  "description": "Sentinel-2 is a wide-swath, high-resolution, multi-spectral imaging mission.",
  "license": "proprietary",
  "providers": [
    {
      "name": "European Union/ESA/Copernicus",
      "roles": [
        "producer",
        "licensor"
      ],
      "url": "https://sentinel.esa.int/web/sentinel/user-guides/sentinel-2-msi"
    },
    {
      "name": "Processing Corp.",
      "roles": [
        "processor"
      ]
    },
    {
      "name": "Storage Provider, Inc.",
      "roles": [
        "host"
      ]
    }
  ],
  "extent": {
    "spatial": {
      "bbox": [
        [
          -180,
          -56,
          180,
          83
        ]
      ]
    },
    "temporal": {
      "interval": [
        [
          "2015-06-23T00:00:00Z",
          null
        ]
      ]
    }
  },
  "summaries": {
    "datetime": {
      "minimum": "2015-06-23T00:00:00Z",
      "maximum": "2019-07-10T13:44:56Z"
    },
    "platform": [
      "sentinel-2a",
      "sentinel-2b"
    ],
    "constellation": [
      "sentinel-2"
    ],
    "instruments": [
      "msi"
    ],
    "gsd": [
      10,
      30,
      60
    ],
    "processing:level": [
      "L1C",
      "L2A"
    ]
  },
  "links": [
    {
      "rel": "self",
      "href": "https://processing-corp.com/catalog/COPERNICUS_S2.json"
    },
    {
      "rel": "parent",
      "href": "https://processing-corp.com/catalog/catalog.json"
    },
    {
      "rel": "root",
      "href": "https://processing-corp.com/catalog/catalog.json"
    },
    {
      "rel": "license",
      "href": "https://scihub.copernicus.eu/twiki/pub/SciHubWebPortal/TermsConditions/Sentinel_Data_Terms_and_Conditions.pdf",
      "title": "Legal notice on the use of Copernicus Sentinel Data and Service Information"
    }
  ]
}

Is this intentional? That is, are the processing properties not meant to be required in the provider objects?

Example test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions