1{
2    "$schema": "http://json-schema.org/draft-04/schema#",
3    "id": "3.3.1-targModifiedValidated.json",
4    "assertionType": "must",
5    "expectedResult": "valid",
6    "onUnexpectedResult" : "failAndContinue",
7    "errorMessage": "ERROR: A target or target/source has multiple modified key values for a target or source, or a single modified key value that is not of format date-time.",
8    "title": "If present all target-level or target/source-level **_modified_ keys** have a **single value** that is of **format date-time** - [model 3.3.1](https://www.w3.org/TR/annotation-model/#lifecycle-information)",
9    "description": "True when no target-level or target/source-level (SR target) modified key present or when all modified keys have a single value that is of format date-time (Section 3.3.1)",
10    "type": "object",
11    "properties":
12    {
13      "target":
14       {
15          "oneOf":
16          [
17            { "$ref": "id.json#/definitions/arraySingleStringUri" },
18            { "allOf":
19               [
20                  { "$ref": "otherProperties.json#/definitions/modifiedValidIfPresent" },
21                  { "$ref": "specificResource.json#/definitions/sourceWithModified" }
22               ]
23            },
24            {
25                "type": "array",
26                "minItems": 1,
27                "items":
28                {
29                    "oneOf":
30                    [
31                        { "$ref": "id.json#/definitions/arraySingleStringUri" },
32                        { "allOf":
33                           [
34                              { "$ref": "otherProperties.json#/definitions/modifiedValidIfPresent" },
35                              { "$ref": "specificResource.json#/definitions/sourceWithModified" }
36                           ]
37                        }
38                    ]
39                }
40            }
41          ]
42       }
43   }
44}