{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tinyplates-dev/json-schema/tinyplates-dev-substitution-schema.json",
  "title": "Substitution",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tinyplates-dev-substitutions-api-openapi.yml#/components/schemas/Substitution",
  "type": "object",
  "required": [
    "ingredient",
    "ratio"
  ],
  "properties": {
    "caution": {
      "type": "string",
      "description": "What this swap cannot be used for. Present when the substitute changes the dish in a way the cook has to know about."
    },
    "ingredient": {
      "type": "string"
    },
    "note": {
      "type": "string",
      "description": "How to prepare or handle the substitute."
    },
    "ratio": {
      "type": "number",
      "description": "How much substitute to use for one unit of the original: 0.75 means three quarters as much."
    }
  },
  "additionalProperties": false
}