|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: null |
| 4 | + headers: |
| 5 | + Connection: |
| 6 | + - close |
| 7 | + Host: |
| 8 | + - stac-extensions.github.io |
| 9 | + User-Agent: |
| 10 | + - Python-urllib/3.11 |
| 11 | + method: GET |
| 12 | + uri: https://stac-extensions.github.io/render/v2.0.0/schema.json |
| 13 | + response: |
| 14 | + body: |
| 15 | + string: "{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": |
| 16 | + \"https://stac-extensions.github.io/render/v2.0.0/schema.json#\",\n \"title\": |
| 17 | + \"Rendering Extension\",\n \"description\": \"STAC Rendering Extension for |
| 18 | + STAC Items and STAC Collections.\",\n \"oneOf\": [\n {\n \"$comment\": |
| 19 | + \"This is the schema for STAC Items.\",\n \"allOf\": [\n {\n \"$ref\": |
| 20 | + \"#/definitions/stac_extensions\"\n },\n {\n \"type\": |
| 21 | + \"object\",\n \"required\": [\n \"type\",\n \"properties\",\n |
| 22 | + \ \"assets\"\n ],\n \"properties\": {\n \"type\": |
| 23 | + {\n \"const\": \"Feature\"\n },\n \"properties\": |
| 24 | + {\n \"type\": \"object\",\n \"required\": [\"renders\"],\n |
| 25 | + \ \"properties\": {\n \"renders\": {\n \"type\": |
| 26 | + \"object\",\n \"additionalProperties\": {\n \"$ref\": |
| 27 | + \"#/definitions/fields\"\n }\n }\n }\n |
| 28 | + \ }\n }\n },\n {\n \"if\": {\n \"properties\": |
| 29 | + {\n \"stac_extensions\": {\n \"contains\": {\n |
| 30 | + \ \"type\": \"string\",\n \"pattern\": \"https:\\/\\/stac-extensions\\\\.github\\\\.io\\/web-map-links\\/.*\"\n |
| 31 | + \ }\n }\n }\n },\n \"then\": |
| 32 | + {\n \"properties\": {\n \"links\": {\n \"type\": |
| 33 | + \"array\",\n \"contains\": {\n \"type\": \"object\",\n |
| 34 | + \ \"required\": [\n \"rel\",\n \"render\"\n |
| 35 | + \ ],\n \"properties\": {\n \"render\": |
| 36 | + {\n \"type\": \"string\"\n }\n }\n |
| 37 | + \ }\n }\n }\n }\n }\n |
| 38 | + \ ]\n },\n {\n \"$comment\": \"This is the schema for STAC |
| 39 | + Collections.\",\n \"type\": \"object\",\n \"allOf\": [\n {\n |
| 40 | + \ \"required\": [\n \"type\",\n \"renders\"\n |
| 41 | + \ ],\n \"properties\": {\n \"type\": {\n \"const\": |
| 42 | + \"Collection\"\n }\n }\n },\n {\n \"$ref\": |
| 43 | + \"#/definitions/stac_extensions\"\n }\n ],\n \"anyOf\": [\n |
| 44 | + \ {\n \"$comment\": \"This validates the fields in Collection |
| 45 | + Assets, but does not require them.\",\n \"anyOf\": [\n {\n |
| 46 | + \ \"type\": \"object\",\n \"required\": [\n \"assets\"\n |
| 47 | + \ ]\n },\n {\n \"type\": \"object\",\n |
| 48 | + \ \"required\": [\n \"item_assets\"\n ]\n |
| 49 | + \ }\n ],\n \"properties\": {\n \"renders\": |
| 50 | + {\n \"type\": \"object\",\n \"not\": {\n \"additionalProperties\": |
| 51 | + {\n \"not\": {\n \"allOf\": [\n {\n |
| 52 | + \ \"$ref\": \"#/definitions/require_any_field\"\n },\n |
| 53 | + \ {\n \"$ref\": \"#/definitions/fields\"\n |
| 54 | + \ }\n ]\n }\n }\n |
| 55 | + \ }\n }\n }\n }\n ]\n }\n ],\n |
| 56 | + \ \"definitions\": {\n \"stac_extensions\": {\n \"type\": \"object\",\n |
| 57 | + \ \"required\": [\n \"stac_extensions\"\n ],\n \"properties\": |
| 58 | + {\n \"stac_extensions\": {\n \"type\": \"array\",\n \"contains\": |
| 59 | + {\n \"const\": \"https://stac-extensions.github.io/render/v2.0.0/schema.json\"\n |
| 60 | + \ }\n }\n }\n },\n \"require_any_field\": {\n \"$comment\": |
| 61 | + \"Please list all fields here so that we can force the existence of one of |
| 62 | + them in other parts of the schemas.\",\n \"anyOf\": [\n {\n \"type\": |
| 63 | + \"object\",\n \"required\": [\n \"assets\"\n ]\n |
| 64 | + \ },\n {\n \"type\": \"object\",\n \"required\": |
| 65 | + [\n \"title\"\n ]\n },\n {\n \"type\": |
| 66 | + \"object\",\n \"required\": [\n \"rescale\"\n ]\n |
| 67 | + \ },\n {\n \"type\": \"object\",\n \"required\": |
| 68 | + [\n \"nodata\"\n ]\n },\n {\n \"type\": |
| 69 | + \"object\",\n \"required\": [\n \"colormap_name\"\n ]\n |
| 70 | + \ },\n {\n \"type\": \"object\",\n \"required\": |
| 71 | + [\n \"colormap\"\n ]\n },\n {\n \"type\": |
| 72 | + \"object\",\n \"required\": [\n \"color_formula\"\n ]\n |
| 73 | + \ },\n {\n \"type\": \"object\",\n \"required\": |
| 74 | + [\n \"resampling\"\n ]\n },\n {\n \"type\": |
| 75 | + \"object\",\n \"required\": [\n \"expression\"\n ]\n |
| 76 | + \ },\n {\n \"type\": \"object\",\n \"required\": |
| 77 | + [\n \"minmax_zoom\"\n ]\n },\n {\n \"type\": |
| 78 | + \"object\",\n \"required\": [\n \"bidx\"\n ]\n |
| 79 | + \ }\n ]\n },\n \"fields\": {\n \"$comment\": \"Add your |
| 80 | + new fields here. Don't require them here, do that above in the corresponding |
| 81 | + schema.\",\n \"type\": \"object\",\n \"required\": [\n \"assets\"\n |
| 82 | + \ ],\n \"properties\": {\n \"assets\": {\n \"type\": |
| 83 | + \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n |
| 84 | + \ },\n \"title\": {\n \"type\": \"string\"\n },\n |
| 85 | + \ \"rescale\": {\n \"type\": \"array\",\n \"items\": |
| 86 | + {\n \"type\": \"array\",\n \"items\": {\n \"type\": |
| 87 | + \"number\"\n }\n }\n },\n \"nodata\": {\n |
| 88 | + \ \"type\": [\n \"number\",\n \"string\"\n ]\n |
| 89 | + \ },\n \"colormap_name\": {\n \"type\": \"string\"\n |
| 90 | + \ },\n \"colormap\": {\n \"type\": \"object\"\n },\n |
| 91 | + \ \"color_formula\": {\n \"type\": \"string\"\n },\n |
| 92 | + \ \"resampling\": {\n \"type\": \"string\"\n },\n \"expression\": |
| 93 | + {\n \"type\": [\"string\", \"object\", \"array\"]\n },\n \"minmax_zoom\": |
| 94 | + {\n \"type\": \"array\",\n \"items\": {\n \"type\": |
| 95 | + \"number\"\n }\n },\n \"bidx\": {\n \"type\": |
| 96 | + \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n |
| 97 | + \ }\n },\n \"additionalProperties\": true\n }\n }\n}" |
| 98 | + headers: |
| 99 | + Accept-Ranges: |
| 100 | + - bytes |
| 101 | + Access-Control-Allow-Origin: |
| 102 | + - '*' |
| 103 | + Age: |
| 104 | + - '0' |
| 105 | + Cache-Control: |
| 106 | + - max-age=600 |
| 107 | + Connection: |
| 108 | + - close |
| 109 | + Content-Length: |
| 110 | + - '6280' |
| 111 | + Content-Type: |
| 112 | + - application/json; charset=utf-8 |
| 113 | + Date: |
| 114 | + - Thu, 28 Nov 2024 03:25:43 GMT |
| 115 | + ETag: |
| 116 | + - '"673d1188-1888"' |
| 117 | + Last-Modified: |
| 118 | + - Tue, 19 Nov 2024 22:30:32 GMT |
| 119 | + Server: |
| 120 | + - GitHub.com |
| 121 | + Strict-Transport-Security: |
| 122 | + - max-age=31556952 |
| 123 | + Vary: |
| 124 | + - Accept-Encoding |
| 125 | + Via: |
| 126 | + - 1.1 varnish |
| 127 | + X-Cache: |
| 128 | + - MISS |
| 129 | + X-Cache-Hits: |
| 130 | + - '0' |
| 131 | + X-Fastly-Request-ID: |
| 132 | + - b4ba719d47ef703f07fd2f866070170abe0a35b8 |
| 133 | + X-GitHub-Request-Id: |
| 134 | + - 906C:38FB3D:2EECA5F:3465B76:6747E2B7 |
| 135 | + X-Served-By: |
| 136 | + - cache-iad-kiad7000118-IAD |
| 137 | + X-Timer: |
| 138 | + - S1732764344.565372,VS0,VE10 |
| 139 | + expires: |
| 140 | + - Thu, 28 Nov 2024 03:35:43 GMT |
| 141 | + permissions-policy: |
| 142 | + - interest-cohort=() |
| 143 | + x-proxy-cache: |
| 144 | + - MISS |
| 145 | + status: |
| 146 | + code: 200 |
| 147 | + message: OK |
| 148 | +version: 1 |
0 commit comments