{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/myplate-food/json-schema/myplate-food-cited-result-schema.json",
  "title": "CitedResult",
  "description": "Calculation result. Shape varies by endpoint, but every result carries the citation envelope fields below alongside the calculator's own numbers.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/myplate-food-openapi.json#/components/schemas/CitedResult",
  "type": "object",
  "properties": {
    "calculator": {
      "type": "string",
      "description": "The endpoint name."
    },
    "inputs": {
      "type": "object",
      "description": "The parsed, normalized inputs the result was computed from."
    },
    "source": {
      "type": "string",
      "description": "The formula and published reference behind the number."
    },
    "canonical_url": {
      "type": "string",
      "format": "uri",
      "description": "The matching myplate.food page."
    },
    "disclaimer": {
      "type": "string",
      "description": "Present on health calculators."
    }
  },
  "required": [
    "calculator",
    "source",
    "canonical_url"
  ],
  "additionalProperties": true
}