Skip to content

Commit

Permalink
Duration, Height and Width should be a positive integer
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 6, 2022
1 parent 063d493 commit 04f896d
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions schema/iiif_3_0.json
Expand Up @@ -23,6 +23,10 @@
},
"additionalProperties": false
},
"dimension": {
"type": "integer",
"exclusiveMinimum": 0
},
"keyValueString": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -59,7 +63,7 @@
},
"duration": {
"type": "number",
"minimum": 0
"exclusiveMinimum": 0
},
"external": {
"type": "array",
Expand Down Expand Up @@ -138,15 +142,9 @@
"type": {
"type": "string"
},
"height": {
"type": "integer"
},
"width": {
"type": "integer"
},
"duration": {
"$ref": "#/types/duration"
},
"height": { "$ref": "#/types/dimension" },
"width": { "$ref": "#/types/dimension" },
"duration": { "$ref": "#/types/duration" },
"language": { "type": "string"},
"service": { "$ref": "#/classes/service" },
"format": { "$ref": "#/types/format" },
Expand Down Expand Up @@ -531,15 +529,9 @@
"pattern": "^Canvas$",
"default": "Canvas"
},
"height": {
"type": "integer"
},
"width": {
"type": "integer"
},
"duration": {
"$ref": "#/types/duration"
},
"height": { "$ref": "#/types/dimension" },
"width": { "$ref": "#/types/dimension" },
"duration": { "$ref": "#/types/duration" },
"metadata": { "$ref": "#/classes/metadata" },
"summary": { "$ref": "#/types/lngString" },
"requiredStatement": { "$ref": "#/types/keyValueString" },
Expand Down

0 comments on commit 04f896d

Please sign in to comment.