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.3.6-bodyRightsValidated.json
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "3.3.6-bodyRightsValidated.json",
    "assertionType": "must",
    "expectedResult": "valid",
    "onUnexpectedResult" : "failAndContinue",
    "errorMessage": "ERROR: A body or body/source has one or more rights key values that are not of format uri.",
    "title": "If present all body-level or body/source-level **_rights_ key values** are strings of **format uri** - [model 3.3.6](https://www.w3.org/TR/annotation-model/#rights-information)",
    "description": "True when no body-level or body/source-level (SR body) rights key present or when all rights key values are strings of format uri (Section 3.3.6)",
    "type": "object",
    "properties":
    {
      "body":
       {
          "oneOf":
          [
            { "$ref": "id.json#/definitions/arraySingleStringUri" },
            { "allOf":
               [
                  { "$ref": "otherProperties.json#/definitions/rightsValidIfPresent" },
                  { "$ref": "specificResource.json#/definitions/sourceWithRights" }
               ]
            },
            {
                "type": "array",
                "minItems": 1,
                "items":
                {
                    "oneOf":
                    [
                        { "$ref": "id.json#/definitions/arraySingleStringUri" },
                        { "allOf":
                           [
                              { "$ref": "otherProperties.json#/definitions/rightsValidIfPresent" },
                              { "$ref": "specificResource.json#/definitions/sourceWithRights" }
                           ]
                        }
                    ]
                }
            }
          ]
       }
   }
}
back to top