Skip to content

Commit 1f7b7e2

Browse files
committed
Revert to storage:refs
1 parent 91969ba commit 1f7b7e2

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
### Added
2222

23-
- `storage:schemes`, `storage:ref` and Storage Scheme Object
23+
- `storage:schemes`, `storage:refs` and Storage Scheme Object
2424
- Support the storage extension in Links
2525
- Support for the Alternate Assets Extension
2626
- Support for other storage providers, including custom S3 hosts
@@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929

3030
- The extension is a framework for storage providers, it doesn't strictly define the individual providers.
3131
- The storage providers are grouped in `storage:schemes` and located in the Item Properties, Collections or Catalog metadata
32-
- Assets and Links reference the storage schemes by key in `storage:ref`
32+
- Assets and Links reference the storage schemes by key in `storage:refs`
3333

3434
### Removed
3535

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ The fields in the table below can be used in these parts of STAC documents:
4545
- [x] Links
4646
- [x] [Alternate Assets Object](https://github.com/stac-extensions/alternate-assets?tab=readme-ov-file#alternate-asset-object)
4747

48-
| Field Name | Type | Description |
49-
| ------------- | ------- | ----------- |
50-
| `storage:ref` | string | A property that specifies which schemes in `storage:schemes` may be used to access an Asset or Link. Each value must be one of the keys defined in `storage:schemes`. |
48+
| Field Name | Type | Description |
49+
| -------------- | ------- | ----------- |
50+
| `storage:refs` | string | A property that specifies which schemes in `storage:schemes` may be used to access an Asset or Link. Each value must be one of the keys defined in `storage:schemes`. |
5151

5252
### Storage Scheme Object
5353

examples/catalog-link.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"href": "s3://mybucket/project/documentation.pdf",
2626
"type": "application/pdf",
2727
"rel": "about",
28-
"storage:ref": "aws"
28+
"storage:refs": [
29+
"aws"
30+
]
2931
}
3032
]
3133
}

examples/collection.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"title": "STAC Items as GeoParquet",
2929
"href": "s3://mybucket/project/items.parquet",
3030
"type": "application/vnd.apache.parquet",
31-
"storage:ref": "aws",
31+
"storage:refs": [
32+
"aws"
33+
],
3234
"auth:refs": [
3335
"aws"
3436
]
@@ -44,7 +46,9 @@
4446
"href": "s3://mybucket/project/documentation.pdf",
4547
"type": "application/pdf",
4648
"rel": "about",
47-
"storage:ref": "aws",
49+
"storage:refs": [
50+
"aws"
51+
],
4852
"auth:refs": [
4953
"aws"
5054
]

examples/item-naip.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,22 @@
6666
"CO_GEOTIFF_RGB": {
6767
"href": "s3://naip-visualization/tx/2016/100cm/rgb/30097/m_3009743_sw_14_1_20160928.tif",
6868
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
69-
"storage:ref": "aws-std",
69+
"storage:refs": [
70+
"aws-std"
71+
],
7072
"alternate": {
7173
"href": "s3://mybucket/tx/2016/100cm/rgb/30097/m_3009743_sw_14_1_20160928.tif",
72-
"storage:ref": "minio"
74+
"storage:refs": [
75+
"minio"
76+
]
7377
}
7478
},
7579
"GEOTIFF_AZURE_RGBIR": {
7680
"href": "https://naip-nsl.blob.core.windows.net/tx/2016/100cm/rgb/30097/m_3009743_sw_14_1_20160928.tif",
7781
"type": "image/tiff; application=geotiff",
78-
"storage:ref": "az-wus2-ar"
82+
"storage:refs": [
83+
"az-wus2-ar"
84+
]
7985
}
8086
},
8187
"links": [

json-schema/schema.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,12 @@
129129
"refs_field": {
130130
"type": "object",
131131
"properties": {
132-
"storage:ref": {
133-
"type": "string",
134-
"minLength": 1
132+
"storage:refs": {
133+
"type": "array",
134+
"items": {
135+
"type": "string",
136+
"minLength": 1
137+
}
135138
}
136139
},
137140
"patternProperties": {

0 commit comments

Comments
 (0)