ffs, i should have committed wayyy earlier
This commit is contained in:
38
registry/schema-org/ImageObject.json
Normal file
38
registry/schema-org/ImageObject.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://schema.org/ImageObject",
|
||||
"title": "ImageObject",
|
||||
"description": "Minimal subset of schema.org/ImageObject for use in Recipe image property",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@type",
|
||||
"url"
|
||||
],
|
||||
"properties": {
|
||||
"@type": {
|
||||
"const": "ImageObject"
|
||||
},
|
||||
"url": {
|
||||
"$ref": "url.json"
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"description": "A caption for the image."
|
||||
},
|
||||
"width": {
|
||||
"type": [
|
||||
"integer",
|
||||
"string"
|
||||
],
|
||||
"description": "Width of the image in pixels or as a string with unit."
|
||||
},
|
||||
"height": {
|
||||
"type": [
|
||||
"integer",
|
||||
"string"
|
||||
],
|
||||
"description": "Height of the image in pixels or as a string with unit."
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
Reference in New Issue
Block a user