1{
2    "$schema": "http://json-schema.org/draft-04/schema#",
3    "id": "3.2.1-bodyEWR.json",
4    "assertionType": "may",
5    "expectedResult": "valid",
6    "onUnexpectedResult" : "passAndContinue",
7    "errorMessage": "An External Web Resource body may be used as an Annotation Body.",
8    "title": "Implements **External Web Resource** with **_id_ key** as a body of the Annotation  [model 3.2.1](https://www.w3.org/TR/annotation-model/#bodies-and-targets)",
9    "description": "True when Annotation includes one or more External Web Resources as Annotation body(ies). (Section 3.2.1)",
10    "type": "object",
11    "required": ["body"],
12    "properties":
13    {
14        "body":
15        {
16           "anyOf": [
17                      { "$ref": "bodyTarget.json#/definitions/externalWebResourceDetected"  },
18                      { "not": { "items": { "not": { "$ref": "bodyTarget.json#/definitions/externalWebResourceDetected" } } } },
19                      { "$ref": "bodyTarget.json#/definitions/sourceEwrDetected"  },
20                      { "not": { "items": { "not": { "$ref": "bodyTarget.json#/definitions/sourceEwrDetected" } } } },
21                      { "$ref": "bodyTarget.json#/definitions/itemEwrDetected"  },
22                      { "not": { "items": { "not": { "$ref": "bodyTarget.json#/definitions/itemEwrDetected" } } } }
23                     ]
24         }
25     }
26}