Dactyloidae/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-bodyChoiceSet.json

29 lines
No EOL
1 KiB
JSON

{
"$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" }
}
}
}
]
}
}
}