Skip to content

Commit 1d50bb7

Browse files
authored
fix(schema): require tools or commands (#12222)
Fix #12219. Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent fb39b97 commit 1d50bb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/rtd_tests/fixtures/spec/v2/schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@
261261
}
262262
}
263263
},
264-
"required": ["os", "tools"],
264+
"required": ["os"],
265+
"anyOf": [
266+
{"required": ["tools"]},
267+
{"required": ["commands"]}
268+
],
265269
"additionalProperties": false
266270
},
267271
"python": {

0 commit comments

Comments
 (0)