example2.test (1565B)
1 { 2 "@context": "https://www.w3.org/ns/JSONtest-v1.jsonld", 3 "name": "A test that has an 'or' clause", 4 "description": "This is a complex test that uses or-ing among a list of assertions.", 5 "ref": "https://www.w3.org/TR/annotation-model/#model", 6 "testType": "manual", 7 "assertions": 8 { "title": "Condition Object", 9 "description": "A pseudo-test that will get a result from the aggregate of its children", 10 "assertionType": "must", 11 "expectedResult": "valid", 12 "errorMessage": "Error: None of the various options were present", 13 "compareWith": "or", 14 "assertions": [ 15 { 16 "$schema": "http://json-schema.org/draft-04/schema#", 17 "title": "'The Annotation must have 1 or more @context values' (Section 3.1)", 18 "assertionType": "must", 19 "expectedResult": "valid", 20 "errorMessage": "Error: Annotation does not have an @context property.", 21 "type": "object", 22 "properties": { 23 "@context": {} 24 }, 25 "required": ["@context"] 26 }, 27 { 28 "$schema": "http://json-schema.org/draft-04/schema#", 29 "title": "'An Annotation should have exactly 1 id' (Section 3.1)", 30 "assertionType": "should", 31 "expectedResult": "valid", 32 "errorMessage": "Warning: The Annotation is not identified using the id key (Section 3.1).", 33 "type": "object", 34 "properties": { 35 "id": {} 36 }, 37 "required": ["id"] 38 } 39 ] 40 } 41 42 }