summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json')
-rw-r--r--testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json
new file mode 100644
index 000000000..5db068a19
--- /dev/null
+++ b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "id": "3.2.7-bodyChoiceSet.json",
+ "assertionType": "may",
+ "expectedResult": "valid",
+ "onUnexpectedResult" : "passAndContinue",
+ "errorMessage": "A Body may be a Choice or Set.",
+ "title": "Implements **Choice or Set** with type and items key as a body - [model 3.2.7](https://www.w3.org/TR/annotation-model/#choice-of-bodies-and-targets)",
+ "description": "True when a Choice or Set is used as a body. (Section 3.2.7)",
+ "type": "object",
+ "required": ["body"],
+ "properties":
+ {
+ "body":
+ {
+ "oneOf": [
+ { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" },
+ { "not":
+ {
+ "items":
+ { "not":
+ { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" }
+ }
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file