ffs, i should have committed wayyy earlier

This commit is contained in:
Max Richter
2025-08-16 20:38:40 +02:00
commit 43644c4f40
25 changed files with 865 additions and 0 deletions

View File

@@ -0,0 +1,103 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schema.org/Recipe",
"title": "Recipe",
"type": "object",
"required": [
"@context",
"@type",
"name",
"image",
"recipeIngredient",
"recipeInstructions"
],
"properties": {
"@context": {
"const": "https://schema.org/"
},
"@type": {
"const": "Recipe"
},
"name": {
"type": "string"
},
"image": {
"oneOf": [
{
"$ref": "Url.json"
},
{
"type": "array",
"items": {
"$ref": "Url.json"
},
"minItems": 1
},
{
"$ref": "ImageObject.json"
},
{
"type": "array",
"items": {
"$ref": "ImageObject.json"
},
"minItems": 1
}
]
},
"description": {
"type": "string"
},
"author": {
"type": "object",
"required": [
"@type",
"name"
],
"properties": {
"@type": {
"const": "Person"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"datePublished": {
"type": "string",
"format": "date"
},
"prepTime": {
"type": "string",
"pattern": "^P(T?\\d+H?\\d*M?\\d*S?)$"
},
"cookTime": {
"type": "string",
"pattern": "^P(T?\\d+H?\\d*M?\\d*S?)$"
},
"recipeYield": {
"type": "string"
},
"recipeIngredient": {
"type": "array",
"items": {
"type": "string"
}
},
"recipeInstructions": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"additionalProperties": true
}