Skip to content

Commit da3238a

Browse files
authored
Merge branch 'dev' into fix-providers
2 parents 3649eb5 + b9d6464 commit da3238a

File tree

2 files changed

+22
-32
lines changed

2 files changed

+22
-32
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2222

2323
- Label extension: `label:classes` was flagged as required in JSON Schema, but is only required for categorical data.
2424
- Fixed JSON Schema for `providers` (Collections and Items) to be an object and require a `name`.
25+
- JSON Schema for `sar:polarizations` in `assets` fixed
2526

2627
## [v1.0.0-beta.2] - 2020-07-08
2728

@@ -90,7 +91,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9091
- New [View Geometry Extension](extensions/view/README.md)
9192
- STAC API:
9293
- Added the [Item and Collection API Version extension](https://github.com/radiantearth/stac-api-spec/tree/master/extensions/version/README.md) to support versioning in the API specification
93-
- Run `npm run serve` or `npm run serve-ext` to quickly render development versions of the OpenAPI spec in the browser
94+
- Run `npm run serve` or `npm run serve-ext` to quickly render development versions of the OpenAPI spec in the browser
9495
- [Basics](item-spec/common-metadata.md#basics) added to Common Metadata definitions with new `description` field for
9596
Item properties
9697
- New fields to the `link` object to facilitate [pagination support for POST requests](https://github.com/radiantearth/stac-api-spec/tree/master/api-spec.md#paging-extension)

extensions/sar/json-schema/schema.json

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,7 @@
6262
"type": "number"
6363
},
6464
"sar:polarizations": {
65-
"title": "Polarizations",
66-
"type": "array",
67-
"minItems": 1,
68-
"maxItems": 4,
69-
"uniqueItems": true,
70-
"items": {
71-
"type": "string",
72-
"enum": [
73-
"HH",
74-
"VV",
75-
"HV",
76-
"VH"
77-
]
78-
}
65+
"$ref": "#/definitions/polarizations"
7966
},
8067
"sar:product_type": {
8168
"title": "Product type",
@@ -133,27 +120,29 @@
133120
},
134121
"assets": {
135122
"type": "object",
136-
"additionalProperties": {
137-
"type": "object",
138-
"properties": {
139-
"sar:polarizations": {
140-
"title": "Polarizations",
141-
"type": "array",
142-
"minItems": 1,
143-
"items": {
144-
"type": "string",
145-
"enum": [
146-
"HH",
147-
"VV",
148-
"HV",
149-
"VH"
150-
]
151-
}
152-
}
123+
"properties": {
124+
"sar:polarizations": {
125+
"$ref": "#/definitions/polarizations"
153126
}
154127
}
155128
}
156129
}
130+
},
131+
"polarizations": {
132+
"title": "Polarizations",
133+
"type": "array",
134+
"minItems": 1,
135+
"maxItems": 4,
136+
"uniqueItems": true,
137+
"items": {
138+
"type": "string",
139+
"enum": [
140+
"HH",
141+
"VV",
142+
"HV",
143+
"VH"
144+
]
145+
}
157146
}
158147
}
159148
}

0 commit comments

Comments
 (0)