Skip to content

Commit 1899823

Browse files
authored
Update STAC_VERSION to v1.1.0 (#1427)
* feat: stac v1.1 * chore: update changelog
1 parent 431382e commit 1899823

File tree

318 files changed

+12098
-6441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

318 files changed

+12098
-6441
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Write STAC v1.1.0 ([#1427](https://github.com/stac-utils/pystac/pull/1427))
8+
59
## [v1.11.0] - 2024-09-26
610

711
### Added

docs/example-catalog/catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "Catalog",
3-
"stac_version": "1.0.0",
3+
"stac_version": "1.1.0",
44
"stac_extensions": [],
55
"id": "landsat-stac-collection-catalog",
66
"title": "STAC for Landsat data",

pystac/validation/jsonschemas/stac-spec/v1.0.0/basics.json

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/bands.json",
4+
"title": "Bands Field",
5+
"type": "object",
6+
"properties": {
7+
"bands": {
8+
"type": "array",
9+
"items": {
10+
"type": "object",
11+
"properties": {
12+
"name": {
13+
"type": "string"
14+
}
15+
},
16+
"allOf": [
17+
{
18+
"$ref": "common.json"
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/basics.json",
4+
"title": "Basic Descriptive Fields",
5+
"type": "object",
6+
"properties": {
7+
"title": {
8+
"title": "Title",
9+
"description": "A human-readable title describing the entity.",
10+
"type": "string"
11+
},
12+
"description": {
13+
"title": "Description",
14+
"description": "Detailed multi-line description to fully explain the entity.",
15+
"type": "string",
16+
"minLength": 1
17+
},
18+
"keywords": {
19+
"title": "Keywords",
20+
"description": "List of keywords describing the entity.",
21+
"type": "array",
22+
"items": {
23+
"type": "string"
24+
}
25+
},
26+
"roles": {
27+
"title": "Roles",
28+
"type": "array",
29+
"items": {
30+
"type": "string"
31+
}
32+
}
33+
}
34+
}

pystac/validation/jsonschemas/stac-spec/v1.0.0/catalog.json renamed to pystac/validation/jsonschemas/stac-spec/v1.1.0/catalog.json

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://schemas.stacspec.org/v1.0.0/catalog-spec/json-schema/catalog.json#",
3+
"$id": "https://schemas.stacspec.org/v1.1.0/catalog-spec/json-schema/catalog.json",
44
"title": "STAC Catalog Specification",
55
"description": "This object represents Catalogs in a SpatioTemporal Asset Catalog.",
66
"allOf": [
77
{
88
"$ref": "#/definitions/catalog"
9+
},
10+
{
11+
"$ref": "../../item-spec/json-schema/common.json"
912
}
1013
],
1114
"definitions": {
1215
"catalog": {
1316
"title": "STAC Catalog",
1417
"type": "object",
18+
"$comment": "title and description is validated through the common metadata.",
1519
"required": [
1620
"stac_version",
1721
"type",
@@ -23,7 +27,7 @@
2327
"stac_version": {
2428
"title": "STAC version",
2529
"type": "string",
26-
"const": "1.0.0"
30+
"const": "1.1.0"
2731
},
2832
"stac_extensions": {
2933
"title": "STAC extensions",
@@ -44,49 +48,8 @@
4448
"type": "string",
4549
"minLength": 1
4650
},
47-
"title": {
48-
"title": "Title",
49-
"type": "string"
50-
},
51-
"description": {
52-
"title": "Description",
53-
"type": "string",
54-
"minLength": 1
55-
},
5651
"links": {
57-
"title": "Links",
58-
"type": "array",
59-
"items": {
60-
"$ref": "#/definitions/link"
61-
}
62-
}
63-
}
64-
},
65-
"link": {
66-
"type": "object",
67-
"required": [
68-
"rel",
69-
"href"
70-
],
71-
"properties": {
72-
"href": {
73-
"title": "Link reference",
74-
"type": "string",
75-
"format": "iri-reference",
76-
"minLength": 1
77-
},
78-
"rel": {
79-
"title": "Link relation type",
80-
"type": "string",
81-
"minLength": 1
82-
},
83-
"type": {
84-
"title": "Link type",
85-
"type": "string"
86-
},
87-
"title": {
88-
"title": "Link title",
89-
"type": "string"
52+
"$ref": "../../item-spec/json-schema/item.json#/definitions/links"
9053
}
9154
}
9255
}

0 commit comments

Comments
 (0)