summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json
blob: aa121337c110252ec93c8803d521933cb637886e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "3.2.7-targChoiceSet.json",
    "assertionType": "may",
    "expectedResult": "valid",
    "onUnexpectedResult" : "passAndContinue",
    "errorMessage": "A Target may be a Choice or Set.",
    "title": "Implements **Choice or Set** with type and items key as a target - [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 target. (Section 3.2.7)",
    "type": "object",
    "properties":
    {
        "target":
        {
           "oneOf": [
                      { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" },
                      { "not":
                         {
                           "items":
                            { "not":
                                  { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" }
                            }
                          }
                      }
                     ]
         }
     }
}