File: TestValidate.test_validate_examples%5Bexample7%5D.yaml

package info (click to toggle)
pystac 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,904 kB
  • sloc: python: 24,370; makefile: 124; sh: 7
file content (149 lines) | stat: -rw-r--r-- 9,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
interactions:
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - raw.githubusercontent.com
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://raw.githubusercontent.com/radiantearth/stac-spec/v0.8.1/item-spec/json-schema/item.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"item.json#\",\n  \"title\": \"STAC Item\",\n  \"type\": \"object\",\n  \"description\":
        \"This object represents the metadata for an item in a SpatioTemporal Asset
        Catalog.\",\n  \"additionalProperties\": true,\n  \"allOf\": [\n    {\n      \"$ref\":
        \"#/definitions/core\"\n    }\n  ],\n  \"definitions\": {\n    \"core\": {\n
        \     \"allOf\": [\n        {\n          \"$ref\": \"https://geojson.org/schema/Feature.json\"\n
        \       },\n        {\n          \"type\": \"object\",\n          \"required\":
        [\n            \"stac_version\",\n            \"id\",\n            \"links\",\n
        \           \"assets\",\n            \"bbox\",\n            \"properties\"\n
        \         ],\n          \"properties\": {\n            \"stac_version\": {\n
        \             \"title\": \"STAC version\",\n              \"type\": \"string\",\n
        \             \"const\": \"0.8.1\"\n            },\n            \"stac_extensions\":
        {\n              \"title\": \"STAC extensions\",\n              \"type\":
        \"array\",\n              \"uniqueItems\": true,\n              \"items\":
        {\n                \"anyOf\": [\n                  {\n                    \"title\":
        \"Reference to a JSON Schema\",\n                    \"type\": \"string\",\n
        \                   \"format\": \"uri\"\n                  },\n                  {\n
        \                   \"title\": \"Reference to a core extension\",\n                    \"type\":
        \"string\",\n                    \"enum\": [\n                      \"checksum\",\n
        \                     \"cube\",\n                      \"datetime-range\",\n
        \                     \"eo\",\n                      \"label\",\n                      \"pointcloud\",\n
        \                     \"sar\",\n                      \"scientific\"\n                    ]\n
        \                 }\n                ]\n              }\n            },\n
        \           \"id\": {\n              \"title\": \"Provider ID\",\n              \"description\":
        \"Provider item ID\",\n              \"type\": \"string\"\n            },\n
        \           \"bbox\": {\n              \"type\": \"array\",\n              \"minItems\":
        4,\n              \"items\": {\n                \"type\": \"number\"\n              }\n
        \           },\n            \"links\": {\n              \"title\": \"Item
        links\",\n              \"description\": \"Links to item relations\",\n              \"type\":
        \"array\",\n              \"items\": {\n                \"$ref\": \"#/definitions/link\"\n
        \             }\n            },\n            \"assets\": {\n              \"title\":
        \"Asset links\",\n              \"description\": \"Links to assets\",\n              \"type\":
        \"object\",\n              \"patternProperties\": {\n                \".+\":
        {\n                  \"$ref\": \"#/definitions/asset\"\n                }\n
        \             },\n              \"additionalProperties\": false\n            },\n
        \           \"properties\": {\n              \"type\": \"object\",\n              \"required\":
        [\n                \"datetime\"\n              ],\n              \"properties\":
        {\n                \"datetime\": {\n                  \"title\": \"Date and
        Time\",\n                  \"description\": \"The searchable date/time of
        the assets, in UTC (Formatted in RFC 3339) \",\n                  \"type\":
        \"string\",\n                  \"format\": \"date-time\"\n                },\n
        \               \"title\": {\n                  \"title\": \"Item Title\",\n
        \                 \"description\": \"A human-readable title describing the
        item.\",\n                  \"type\": \"string\"\n                },\n                \"license\":
        {\n                  \"title\": \"Item Licenses\",\n                  \"type\":
        \"string\"\n                },\n                \"providers\": {\n                  \"type\":
        \"array\",\n                  \"items\": {\n                    \"properties\":
        {\n                      \"name\": {\n                        \"title\": \"Organization
        name\",\n                        \"type\": \"string\"\n                      },\n
        \                     \"description\": {\n                        \"title\":
        \"Provider description\",\n                        \"type\": \"string\"\n
        \                     },\n                      \"roles\": {\n                        \"title\":
        \"Organization roles\",\n                        \"type\": \"array\",\n                        \"items\":
        {\n                          \"type\": \"string\",\n                          \"enum\":
        [\n                            \"producer\",\n                            \"licensor\",\n
        \                           \"processor\",\n                            \"host\"\n
        \                         ]\n                        }\n                      },\n
        \                     \"url\": {\n                        \"title\": \"Homepage\",\n
        \                       \"type\": \"string\",\n                        \"format\":
        \"url\"\n                      }\n                    }\n                  }\n
        \               },\n                \"created\": {\n                  \"title\":
        \"Metadata created at\",\n                  \"type\": \"string\",\n                  \"format\":
        \"date-time\"\n                },\n                \"updated\": {\n                  \"title\":
        \"Metadata updated at\",\n                  \"type\": \"string\",\n                  \"format\":
        \"date-time\"\n                }\n              }\n            },\n            \"collection\":
        {\n              \"title\": \"Collection ID\",\n              \"description\":
        \"The ID of the STAC Collection this Item references to.\",\n              \"type\":
        \"string\"\n            }\n          }\n        }\n      ]\n    },\n    \"link\":
        {\n      \"type\": \"object\",\n      \"required\": [\n        \"rel\",\n
        \       \"href\"\n      ],\n      \"properties\": {\n        \"href\": {\n
        \         \"title\": \"Link reference\",\n          \"type\": \"string\"\n
        \       },\n        \"rel\": {\n          \"title\": \"Link relation type\",\n
        \         \"type\": \"string\"\n        },\n        \"type\": {\n          \"title\":
        \"Link type\",\n          \"type\": \"string\"\n        },\n        \"title\":
        {\n          \"title\": \"Link title\",\n          \"type\": \"string\"\n
        \       }\n      }\n    },\n    \"asset\": {\n      \"type\": \"object\",\n
        \     \"required\": [\n        \"href\"\n      ],\n      \"properties\": {\n
        \       \"href\": {\n          \"title\": \"Asset reference\",\n          \"type\":
        \"string\"\n        },\n        \"title\": {\n          \"title\": \"Asset
        title\",\n          \"type\": \"string\"\n        },\n        \"type\": {\n
        \         \"title\": \"Asset type\",\n          \"type\": \"string\"\n        }\n
        \     }\n    }\n  }\n}\n"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Cache-Control:
      - max-age=300
      Connection:
      - close
      Content-Length:
      - '6074'
      Content-Security-Policy:
      - default-src 'none'; style-src 'unsafe-inline'; sandbox
      Content-Type:
      - text/plain; charset=utf-8
      Cross-Origin-Resource-Policy:
      - cross-origin
      Date:
      - Thu, 23 Jan 2025 15:04:31 GMT
      ETag:
      - '"4e24763d74f0d463b0cb6c63fc099e0b59447c7a049b93ffda4c6eb9eb54ae95"'
      Expires:
      - Thu, 23 Jan 2025 15:09:31 GMT
      Source-Age:
      - '1'
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Authorization,Accept-Encoding,Origin
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '1'
      X-Content-Type-Options:
      - nosniff
      X-Fastly-Request-ID:
      - 7dccd0c51db139aa973dacbdedc7e55536776469
      X-Frame-Options:
      - deny
      X-GitHub-Request-Id:
      - B1E1:1806BD:732C3:8041C:67925A7E
      X-Served-By:
      - cache-den-kden1300042-DEN
      X-Timer:
      - S1737644672.901061,VS0,VE1
      X-XSS-Protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
version: 1