Revision 260166c7aa434d6367910af87f67fdaf51146068 authored by Lukasz Anforowicz on 02 April 2018, 20:04:17 UTC, committed by Chromium WPT Sync on 02 April 2018, 20:04:17 UTC
Bug: 809261
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Idafb2b4cc5da3d6c7a054e479745288cc3b86513
Reviewed-on: https://chromium-review.googlesource.com/984338
Commit-Queue: Ɓukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Nick Carter <nick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547494}
1 parent af485dc
Raw File
3.2.7-bodyEWRNoItems.json
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "3.2.7-bodyEWRNoItems.json",
    "assertionType": "must",
    "expectedResult": "valid",
    "onUnexpectedResult" : "failAndContinue",
    "errorMessage": "The description of an External Web Resource body cannot include an items key. items key is only valid with Choice or Set.",
    "title": "If an **External Web Resource** is a body, it does NOT have an **_items_ key** - [model 3.2.7](https://www.w3.org/TR/annotation-model/#choice-of-bodies-and-targets)",
    "description": "True when no External Web Resource bodies or when none of the External Web Recource bodies include the items key. (Section 3.2.7)",
    "type": "object",
    "properties":
    {
        "body":
        {
           "allOf": [
                      { "not": { "$ref": "bodyTarget.json#/definitions/ewrWithItems" } },
                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/ewrWithItems" } } },
                      { "not": { "$ref": "bodyTarget.json#/definitions/sourceEwrWithItems" } },
                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/sourceEwrWithItems" } } },
                      { "not": { "$ref": "bodyTarget.json#/definitions/itemEwrWithItems" }  },
                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/itemEwrWithItems" } } }
                     ]
         }
     }
}
back to top