{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nasa-cmr/main/json-schema/nasa-cmr-stac-collection.json",
  "title": "NASA CMR STAC Collection",
  "description": "JSON Schema for NASA CMR STAC collection",
  "type": "object",
  "required": [
    "id",
    "links"
  ],
  "properties": {
    "id": {
      "description": "identifier of the collection used, for example, in URIs",
      "type": "string",
      "example": "address"
    },
    "title": {
      "description": "human readable title of the collection",
      "type": "string",
      "example": "address"
    },
    "description": {
      "description": "a description of the features in the collection",
      "type": "string",
      "example": "An address."
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/link"
      },
      "example": [
        {
          "href": "http://data.example.com/buildings",
          "rel": "item"
        },
        {
          "href": "http://example.com/concepts/buildings.html",
          "rel": "describedBy",
          "type": "text/html"
        }
      ]
    },
    "extent": {
      "$ref": "#/components/schemas/extent"
    },
    "itemType": {
      "description": "indicator about the type of the items in the collection (the default value is 'feature').",
      "type": "string",
      "default": "feature"
    },
    "crs": {
      "description": "the list of coordinate reference systems supported by the service",
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": [
        "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
      ],
      "example": [
        "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
        "http://www.opengis.net/def/crs/EPSG/0/4326"
      ]
    }
  }
}