From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../bodiesTargets/4-bodyChoiceSetNoSource.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json (limited to 'testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json') diff --git a/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json new file mode 100644 index 0000000000..d1823952ff --- /dev/null +++ b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "id": "4-bodyChoiceSetNoSource.json", + "assertionType": "must", + "expectedResult": "valid", + "onUnexpectedResult" : "failAndContinue", + "errorMessage": "A Choice or Set body cannot include a source key. source key is only valid with Specific Resources.", + "title": "If a **Choice or Set** is a body, it does NOT have a **_source_ key** - [model 4](https://www.w3.org/TR/annotation-model/#specific-resources)", + "description": "True when no Choice or Set bodies or when none of the Choice or Set bodies include the source key. (Section 4)", + "type": "object", + "properties": + { + "body": + { + "allOf": [ + { "not": { "$ref": "choiceSet.json#/definitions/choiceSetWithSource" } }, + { "items": { "not": { "$ref": "choiceSet.json#/definitions/choiceSetWithSource" } } } + ] + } + } +} \ No newline at end of file -- cgit v1.2.3