4.3.3-refinedByValidated.json (1992B)
1 { 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 "id": "4.3-stateValidated.json", 4 "assertionType": "must", 5 "expectedResult": "valid", 6 "onUnexpectedResult" : "failAndContinue", 7 "errorMessage": "ERROR: Annotation contains one or more Specific Resources states having value(s) which is(are) not of format uri, nor an object having a type key with a single value which is one of 'TimeState' or 'HttpRequestState'.", 8 "title": "If present **Specific Resource _state_ key** has one or more values each of which is of **format uri** or an object having a **_type_ key** with a **single value** which is one of **'TimeState' or 'HttpRequestState'** - [model 4.3](https://www.w3.org/TR/annotation-model/#states)", 9 "description": "True when no Specific Resources state present or all Specific Resource state values included in the Annotation (if any) are of format uri or or are objects having a type key with a single value which is one of 'TimeState' or 'HttpRequestState'. (Section 4.3)", 10 "type": "object", 11 "patternProperties": 12 { 13 "^(body|target)$": 14 { 15 "oneOf": 16 [ 17 { "$ref": "id.json#/definitions/stringUri" }, 18 { 19 "allOf": 20 [ 21 { "$ref": "specificResource.json#/definitions/checkForRefinedBy" }, 22 { "$ref": "specificResource.json#/definitions/itemRefinedByValidIfPresent" } 23 ] 24 }, 25 { "type": "array", 26 "minItems": 1, 27 "items": 28 { 29 "oneOf": 30 [ 31 { "$ref": "id.json#/definitions/stringUri" }, 32 { 33 "allOf": 34 [ 35 { "$ref": "specificResource.json#/definitions/checkForRefinedBy" }, 36 { "$ref": "specificResource.json#/definitions/itemRefinedByValidIfPresent" } 37 ] 38 } 39 ] 40 } 41 } 42 ] 43 } 44 } 45 }