tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

3.3.5-bodyEWRNoPurpose.json (1489B)


      1 {
      2    "$schema": "http://json-schema.org/draft-04/schema#",
      3    "id": "3.3.5-bodyEWRNoPurpose.json",
      4    "assertionType": "must",
      5    "expectedResult": "valid",
      6    "onUnexpectedResult" : "failAndContinue",
      7    "errorMessage": "The description of an External Web Resource body cannot include an purpose key. purpose key is only valid with Specific Resources and Embedded Textual Bodies.",
      8    "title": "If an **External Web Resource** is a body, it does NOT have an **_purpose_ key** - [model 3.3.5](https://www.w3.org/TR/annotation-model/#motivation-and-purpose)",
      9    "description": "True when no External Web Resource bodies or when none of the External Web Recource bodies include the purpose key. (Section 3.3.5)",
     10    "type": "object",
     11    "properties":
     12    {
     13        "body":
     14        {
     15           "allOf": [
     16                      { "not": { "$ref": "bodyTarget.json#/definitions/ewrWithPurpose" } },
     17                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/ewrWithPurpose" } } },
     18                      { "not": { "$ref": "bodyTarget.json#/definitions/sourceEwrWithPurpose" } },
     19                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/sourceEwrWithPurpose" } } },
     20                      { "not": { "$ref": "bodyTarget.json#/definitions/itemEwrWithPurpose" }  },
     21                      { "items": { "not": { "$ref": "bodyTarget.json#/definitions/itemEwrWithPurpose" } } }
     22                     ]                                }
     23     }
     24 }