Skip to content

Commit 6daf1aa

Browse files
Merge pull request stac-extensions#11 from linz/feat/fix-lints
feat: Fix lints reported by ajv
2 parents a6c9514 + 459fc57 commit 6daf1aa

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

json-schema/schema.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"type": "object",
4848
"allOf": [
4949
{
50+
"type": "object",
5051
"required": [
5152
"type"
5253
],
@@ -77,6 +78,7 @@
7778
{
7879
"allOf": [
7980
{
81+
"type": "object",
8082
"required": [
8183
"roles"
8284
],
@@ -112,6 +114,7 @@
112114
}
113115
},
114116
{
117+
"type": "object",
115118
"$comment": "This validates the fields in Collection Assets, but does not require them.",
116119
"required": [
117120
"assets"
@@ -137,6 +140,7 @@
137140
}
138141
},
139142
{
143+
"type": "object",
140144
"$comment": "This is the schema for the fields in Item Asset Definitions. It doesn't require any fields.",
141145
"required": [
142146
"item_assets"
@@ -162,6 +166,7 @@
162166
}
163167
},
164168
{
169+
"type": "object",
165170
"$comment": "This is the schema for the fields in Summaries. By default, only checks the existance of the properties, but not the schema of the summaries.",
166171
"required": [
167172
"summaries"
@@ -193,11 +198,11 @@
193198
"require_any_field": {
194199
"$comment": "Please list all fields here so that we can force the existence of one of them in other parts of the schemas.",
195200
"anyOf": [
196-
{"required": ["processing:expression"]},
197-
{"required": ["processing:lineage"]},
198-
{"required": ["processing:level"]},
199-
{"required": ["processing:facility"]},
200-
{"required": ["processing:software"]}
201+
{"type": "object", "required": ["processing:expression"]},
202+
{"type": "object", "required": ["processing:lineage"]},
203+
{"type": "object", "required": ["processing:level"]},
204+
{"type": "object", "required": ["processing:facility"]},
205+
{"type": "object", "required": ["processing:software"]}
201206
]
202207
},
203208
"fields": {
@@ -264,4 +269,4 @@
264269
"additionalProperties": false
265270
}
266271
}
267-
}
272+
}

0 commit comments

Comments
 (0)