Skip to content

Commit

Permalink
Adding ImageApiSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Mar 9, 2023
1 parent b897aa7 commit 735d31c
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions schema/iiif_3_0.json
Expand Up @@ -1003,19 +1003,19 @@
"type":"object"
},
"then": {
"$ref": "#/classes/annoSelector"
"$ref": "#/classes/selector"
},
"else": {
"type": "array",
"items": {
"$ref": "#/classes/annoSelector"
"$ref": "#/classes/selector"
}
}
}
},
"required": ["source", "selector"]
},
"annoSelector": {
"selector": {
"allOf": [
{
"if": {
Expand Down Expand Up @@ -1096,8 +1096,31 @@
},
"required": ["type","value"]
}
},
{
"if": {
"type": "object",
"properties": {
"type": {"const":"ImageApiSelector"}
}
},
"then": {
"type": "object",
"properties": {
"type": {
"type": "string",
"pattern": "^ImageApiSelector$",
"default": "ImageApiSelector"
},
"region": { "type:": "string" },
"size": { "type:": "string" },
"rotation": { "type:": "string" },
"quality": { "type:": "string" },
"format": { "type:": "string" }
},
"required": ["type"]
}
}

]
},
"range": {
Expand Down

0 comments on commit 735d31c

Please sign in to comment.