interactions:
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - stac-extensions.github.io
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://stac-extensions.github.io/label/v1.0.1/schema.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"https://stac-extensions.github.io/label/v1.0.1/schema.json#\",\n  \"title\":
        \"Label Extension\",\n  \"description\": \"STAC Label Extension for STAC Items
        and STAC Collections.\",\n  \"oneOf\": [\n    {\n      \"$comment\": \"This
        is the schema for STAC Items.\",\n      \"allOf\": [\n        {\n          \"type\":
        \"object\",\n          \"required\": [\n            \"type\",\n            \"properties\",\n
        \           \"links\",\n            \"assets\"\n          ],\n          \"properties\":
        {\n            \"type\": {\n              \"const\": \"Feature\"\n            },\n
        \           \"properties\": {\n              \"allOf\": [\n                {\n
        \                 \"$comment\": \"Require fields here for item properties.\",\n
        \                 \"required\": [\n                    \"label:properties\",\n
        \                   \"label:description\",\n                    \"label:type\"\n
        \                 ]\n                },\n                {\n                  \"$ref\":
        \"#/definitions/fields\"\n                }\n              ]\n            },\n
        \           \"links\": {\n              \"type\": \"array\",\n              \"items\":
        {\n                \"$ref\": \"#/definitions/link_fields\"\n              }\n
        \           },\n            \"assets\": {\n              \"type\": \"object\",\n
        \             \"additionalProperties\": {\n                \"$ref\": \"#/definitions/fields\"\n
        \             }\n            }\n          }\n        },\n        {\n          \"$ref\":
        \"#/definitions/stac_extensions\"\n        }\n      ]\n    },\n    {\n      \"$comment\":
        \"This is the schema for STAC Collections.\",\n      \"allOf\": [\n        {\n
        \         \"type\": \"object\",\n          \"required\": [\n            \"type\"\n
        \         ],\n          \"properties\": {\n            \"type\": {\n              \"const\":
        \"Collection\"\n            },\n            \"assets\": {\n              \"type\":
        \"object\",\n              \"additionalProperties\": {\n                \"$ref\":
        \"#/definitions/fields\"\n              }\n            },\n            \"item_assets\":
        {\n              \"type\": \"object\",\n              \"additionalProperties\":
        {\n                \"$ref\": \"#/definitions/fields\"\n              }\n            }\n
        \         }\n        },\n        {\n          \"$ref\": \"#/definitions/stac_extensions\"\n
        \       }\n      ]\n    }\n  ],\n  \"definitions\": {\n    \"stac_extensions\":
        {\n      \"type\": \"object\",\n      \"required\": [\n        \"stac_extensions\"\n
        \     ],\n      \"properties\": {\n        \"stac_extensions\": {\n          \"type\":
        \"array\",\n          \"contains\": {\n            \"const\": \"https://stac-extensions.github.io/label/v1.0.1/schema.json\"\n
        \         }\n        }\n      }\n    },\n    \"link_fields\": {\n      \"type\":
        \"object\",\n      \"properties\": {\n        \"label:assets\": {\n          \"type\":
        \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n
        \       }\n      },\n      \"patternProperties\": {\n        \"^(?!label:)\":
        {}\n      },\n      \"additionalProperties\": false\n    },\n    \"fields\":
        {\n      \"type\": \"object\",\n      \"properties\": {\n        \"label:properties\":
        {\n          \"title\": \"Property\",\n          \"oneOf\": [\n            {\n
        \             \"type\": \"array\",\n              \"minItems\": 1,\n              \"items\":
        {\n                \"type\": \"string\"\n              }\n            },\n
        \           {\n              \"type\": \"null\"\n            }\n          ]\n
        \       },\n        \"label:classes\": {\n          \"title\": \"Classes\",\n
        \         \"type\": \"array\",\n          \"items\": {\n            \"type\":
        \"object\",\n            \"required\": [\n              \"name\",\n              \"classes\"\n
        \           ],\n            \"properties\": {\n              \"name\": {\n
        \               \"title\": \"Name\"\n              },\n              \"classes\":
        {\n                \"title\": \"Classes\",\n                \"oneOf\": [\n
        \                 {\n                    \"type\": \"array\",\n                    \"items\":
        {\n                      \"type\": \"string\"\n                    }\n                  },\n
        \                 {\n                    \"type\": \"array\",\n                    \"items\":
        {\n                      \"type\": \"number\"\n                    }\n                  }\n
        \               ]\n              }\n            }\n          }\n        },\n
        \       \"label:description\": {\n          \"title\": \"Description\",\n
        \         \"type\": \"string\",\n          \"minLength\": 1\n        },\n
        \       \"label:type\": {\n          \"title\": \"Type\",\n          \"type\":
        \"string\",\n          \"enum\": [\n            \"raster\",\n            \"vector\"\n
        \         ]\n        },\n        \"label:tasks\": {\n          \"title\":
        \"Task\",\n          \"type\": \"array\",\n          \"items\": {\n            \"type\":
        \"string\"\n          }\n        },\n        \"label:methods\": {\n          \"title\":
        \"Method\",\n          \"type\": \"array\",\n          \"items\": {\n            \"type\":
        \"string\"\n          }\n        },\n        \"label:overviews\": {\n          \"title\":
        \"Overview\",\n          \"type\": \"array\",\n          \"items\": {\n            \"type\":
        \"object\",\n            \"properties\": {\n              \"property_key\":
        {\n                \"title\": \"Property Key\",\n                \"type\":
        \"string\"\n              },\n              \"counts\": {\n                \"title\":
        \"Counts\",\n                \"type\": \"array\",\n                \"items\":
        {\n                  \"type\": \"object\",\n                  \"properties\":
        {\n                    \"name\": {\n                      \"title\": \"Class
        Name\",\n                      \"type\": \"string\"\n                    },\n
        \                   \"count\": {\n                      \"title\": \"Count\",\n
        \                     \"type\": \"integer\"\n                    }\n                  }\n
        \               }\n              },\n              \"statistics\": {\n                \"title\":
        \"Statistics\",\n                \"type\": \"array\",\n                \"items\":
        {\n                  \"type\": \"object\",\n                  \"properties\":
        {\n                    \"name\": {\n                      \"title\": \"Stat
        Name\",\n                      \"type\": \"string\"\n                    },\n
        \                   \"value\": {\n                      \"title\": \"Value\",\n
        \                     \"type\": \"number\"\n                    }\n                  }\n
        \               }\n              }\n            }\n          }\n        }\n
        \     },\n      \"if\": {\n        \"properties\": {\n          \"label:type\":
        {\n            \"const\": \"raster\"\n          }\n        }\n      },\n      \"then\":
        {\n        \"properties\": {\n          \"label:classes\": {\n            \"items\":
        {\n              \"properties\": {\n                \"name\": {\n                  \"type\":
        \"null\"\n                }\n              }\n            }\n          }\n
        \       }\n      },\n      \"else\": {\n        \"properties\": {\n          \"label:classes\":
        {\n            \"items\": {\n              \"properties\": {\n                \"name\":
        {\n                  \"type\": \"string\",\n                  \"minLength\":
        1\n                }\n              }\n            }\n          }\n        }\n
        \     },\n      \"patternProperties\": {\n        \"^(?!label:)\": {}\n      },\n
        \     \"additionalProperties\": false\n    }\n  }\n}"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Age:
      - '38'
      Cache-Control:
      - max-age=600
      Connection:
      - close
      Content-Length:
      - '6847'
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Thu, 23 Jan 2025 15:04:57 GMT
      ETag:
      - '"61eb1dc9-1abf"'
      Last-Modified:
      - Fri, 21 Jan 2022 20:55:37 GMT
      Server:
      - GitHub.com
      Strict-Transport-Security:
      - max-age=31556952
      Vary:
      - Accept-Encoding
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '2'
      X-Fastly-Request-ID:
      - e343f510e30fb0e7b0da2c8560204b6a5fab7d8d
      X-GitHub-Request-Id:
      - 4D47:168048:F2615B:1102B6A:67925A72
      X-Served-By:
      - cache-den-kden1300022-DEN
      X-Timer:
      - S1737644698.860720,VS0,VE1
      expires:
      - Thu, 23 Jan 2025 15:14:19 GMT
      permissions-policy:
      - interest-cohort=()
      x-proxy-cache:
      - MISS
    status:
      code: 200
      message: OK
version: 1
