summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/examples/exampleTarget.json
blob: e8e6a78da07b2359bff9da073fff663996ef5282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Check if target feature implemented",
  "description": "'There must be 1 or more target relationships associated with an Annotation.' (Section 3.1)",
  "assertionType": "must",
  "expectedResult": "valid",
  "errorMessage": "Error: Annotation has no target relationships - at least 1 is required. (Section 3.1)",
  "type": "object",
  "properties": {
    "target": { "type": ["string", "array", "object"] }
  },
  "required": ["target"]
}