Skip to content

Commit 646ec7d

Browse files
committed
Improve core schema for stac extensions field
1 parent 670507c commit 646ec7d

File tree

1 file changed

+15
-2
lines changed
  • packages/data-plugins/lib/collections

1 file changed

+15
-2
lines changed

packages/data-plugins/lib/collections/core.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,22 @@ export class PluginCore extends Plugin {
9393
stac_extensions: {
9494
type: 'array',
9595
label: 'STAC Extensions',
96+
'ui:widget': 'tagger',
9697
items: {
97-
label: 'Extension',
98-
type: 'string'
98+
type: 'string',
99+
allowOther: {
100+
type: 'string'
101+
},
102+
enum: [
103+
[
104+
'https://stac-extensions.github.io/item-assets/v1.0.0/schema.json',
105+
'Item Assets Defenition'
106+
],
107+
[
108+
'https://stac-extensions.github.io/render/v2.0.0/schema.json',
109+
'Render'
110+
]
111+
]
99112
}
100113
},
101114
spatial: {

0 commit comments

Comments
 (0)