summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-targChoiceSetFound.json
blob: 6b67481dcdd92a69e9aaa0d76102de5d9be48788 (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
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "4-targChoiceSetFound.json",
    "assertionType": "may",
    "expectedResult": "valid",
    "onUnexpectedResult" : "passAndContinue",
    "errorMessage": "A Target may be a Choice or Set.",
    "title": "Implements a **Choice or Set** as target - [model 3.2.7](https://www.w3.org/TR/annotation-model/#choice-of-bodies-and-targets)",
    "description": "True when Choice or Set is a target. (Section 3.2.7)",
    "type": "object",
    "properties":
    {
        "target":
        {
           "oneOf": [
                       { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" } ,
                       { "type": "Array",
                         "minItems": 1,
                         "not":
                         { "items": { "not": { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" } } }
                       }
                     ]
         }
     }
}