Skip to content

Commit cc6c309

Browse files
Merge pull request #988 from radiantearth/move-summaries-json-schema
Move JSON Schema for summaries to Catalog
2 parents da61b08 + 917bf9c commit cc6c309

File tree

2 files changed

+36
-33
lines changed

2 files changed

+36
-33
lines changed

catalog-spec/json-schema/catalog.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
"items": {
6161
"$ref": "#/definitions/link"
6262
}
63+
},
64+
"summaries": {
65+
"$ref": "#/definitions/summaries"
6366
}
6467
}
6568
},
@@ -88,6 +91,39 @@
8891
"type": "string"
8992
}
9093
}
94+
},
95+
"summaries": {
96+
"type": "object",
97+
"additionalProperties": {
98+
"oneOf": [
99+
{
100+
"title": "Stats",
101+
"type": "object",
102+
"required": [
103+
"minimum",
104+
"maximum"
105+
],
106+
"properties": {
107+
"minimum": {
108+
"title": "Minimum value",
109+
"type": ["number", "string"]
110+
},
111+
"maximum": {
112+
"title": "Maximum value",
113+
"type": ["number", "string"]
114+
}
115+
}
116+
},
117+
{
118+
"title": "Set of values",
119+
"type": "array",
120+
"minItems": 1,
121+
"items": {
122+
"description": "Any data type could occur."
123+
}
124+
}
125+
]
126+
}
91127
}
92128
}
93129
}

collection-spec/json-schema/collection.json

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -155,39 +155,6 @@
155155
}
156156
}
157157
}
158-
},
159-
"summaries": {
160-
"type": "object",
161-
"additionalProperties": {
162-
"oneOf": [
163-
{
164-
"title": "Stats",
165-
"type": "object",
166-
"required": [
167-
"minimum",
168-
"maximum"
169-
],
170-
"properties": {
171-
"minimum": {
172-
"title": "Minimum value",
173-
"type": ["number", "string"]
174-
},
175-
"maximum": {
176-
"title": "Maximum value",
177-
"type": ["number", "string"]
178-
}
179-
}
180-
},
181-
{
182-
"title": "Set of values",
183-
"type": "array",
184-
"minItems": 1,
185-
"items": {
186-
"description": "Any data type could occur."
187-
}
188-
}
189-
]
190-
}
191158
}
192159
}
193160
}

0 commit comments

Comments
 (0)