1{
2  "$schema": "http://json-schema.org/draft-04/schema#",
3  "id": "3.3.2-pageCreatorAgentEmailImplemented.json",
4  "assertionType": "may",
5  "expectedResult": "valid",
6  "onUnexpectedResult" : "passAndContinue",
7  "errorMessage": "Email for Annotation Page Creator (Agent) (i.e., in description of Collection included using partOf key) not found. Agents may have one or more email values.",
8  "title": "Implements Annotation Page-level creator (Agent) (i.e., in description of Collection included using partOf key) **_email_ key** with one or more values, each of which is a **mailto: uri** - [model 3.2.2](https://www.w3.org/TR/annotation-model/#agents)",
9  "description": "True when one or more email values for Annotation Page Creator (Agent) (i.e., in description of Collection included using partOf key) is implemented (Section 3.3.2)",
10   "type": "object",
11  "properties":
12  {
13    "partOf":
14           { "$ref": "#/definitions/creatorAgentEmailFound" }
15  },
16  "required": [ "partOf" ],
17  "definitions": {
18   "creatorAgentEmailFound":
19    {  "properties":
20      {  "creator":
21        { "oneOf":
22          [
23          { "$ref": "otherProperties.json#/definitions/agentEmailFound" },
24          { "type": "array",
25            "minItems": 1,
26            "not":
27            { "items": { "not": { "$ref": "otherProperties.json#/definitions/agentEmailFound" } } }
28          }
29          ]
30        }
31      },
32      "required": ["creator"]
33   }
34  }
35}
36