{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comingup-today/json-schema/comingup-today-recipe-patch-body-schema.json",
  "title": "RecipePatchBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comingup-today-org-api-openapi.yml#/components/schemas/RecipePatchBody",
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "prepTimeMinutes": {
      "type": "integer",
      "minimum": 0
    },
    "cookTimeMinutes": {
      "type": "integer",
      "minimum": 0
    },
    "waitTimeMinutes": {
      "type": "integer",
      "minimum": 0
    },
    "imageUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "privateNotes": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000
    },
    "forPersonIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "ingredients": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecipeIngredient"
      },
      "minItems": 1
    },
    "instructions": {
      "type": "string"
    },
    "isPublic": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "RecipeIngredient": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "quantity": {
          "type": "string"
        },
        "note": {
          "type": "string",
          "maxLength": 150
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    }
  }
}