# Frances Popsicle recipe data

Human guide: https://francespopsicle.com/docs/
Authoritative native schema: https://francespopsicle.com/data/recipe.schema.json
Native record schemaVersion: "1.2". The schema currently requires only a string here; the companion validator checks the current version explicitly.

## Downloads

- recipe-template.json: schema-valid in-progress placeholder, not cooking instructions.
- batch-example.json: batchVersion "1.0" with recipes[]. This is a documented transport convention, not a native recipe schema or a promise of API acceptance.
- validate_recipe.py.txt: static text download of the Python CLI. The browser download names it validate_recipe.py; save it with that name when downloading manually. Requires Python 3 and an already installed jsonschema. It installs nothing and publishes nothing.

## Validation

    python3 validate_recipe.py recipe-template.json
    python3 validate_recipe.py batch-example.json
    python3 validate_recipe.py input.json --schema recipe.schema.json

By default the CLI retrieves only the authoritative HTTPS schema. For offline use, save that schema yourself and pass --schema. Input is parsed as UTF-8 JSON regardless of filename extension. Exit 0 means checks passed, 1 means invalid content, 2 means input, schema-loading or configuration error. Validation does not establish cooking safety, kitchen testing, completeness or publication approval.

Schema checks cover required keys, types, status enum, nested ingredientDetails and optional normalizationConfidence values high/medium/low. The native schema permits extra top-level keys and only loosely constrains ingredientGroups. Do not treat schema acceptance as evidence that a renderer uses an extra field.

Separate semantic checks enforce the current native version, lowercase ASCII hyphenated slugs, unique slugs within the input, exact canonical url/dataUrl, group title/items shape and ingredient multiset equality, and ingredientDetails text equality in display order when supplied. Duplicate ingredient strings count separately. Optional ingredientDetails are not fabricated when omitted. Duplicate-slug detection does not check the existing site inventory. A recipes[] wrapper must be nonempty and use batchVersion "1.0". Existing envelope schemaVersion "1.0" is accepted as a compatibility alias; conflicting version fields are rejected. Optional publicationHolds is an array of objects with an existing recipe slug and a nonempty reason. Hold references must be unique. Successful validation reports holds without clearing them.

## Content contract

Required native fields: schemaVersion, slug, title, status, url, dataUrl, ingredients, instructions, vegan. ingredients and instructions are flat string arrays. ingredientGroups uses objects with title and items; every item must also appear in ingredients with the same multiplicity, including optional additions. notes and servingSuggestions are string arrays. Method-group objects are not supported; keep alternative methods as clearly labeled notes, not extra sequential main steps.

If present, ingredientDetails has one object per ingredient, in the same order. Required detail keys: text, name, quantity, unit, category, optional. Optional keys: group, approximate, normalizationConfidence. text is exact canonical display text; quantity and unit are strings. Unknown quantity/unit may remain empty, with low confidence if confidence is supplied. Do not invent conversions.

Statuses: complete, documented-batch, in-progress. These are documentation states, not test results. complete means full documented ingredients and method, not necessarily cooked. documented-batch preserves a particular recorded batch without promising a universal formula. in-progress signals missing or unresolved recipe facts. A reported successful cook does not fill missing quantities, temperatures or timings. Preserve supported testing claims separately in statusLabel or notes. Never invent measurements, yields or cooking safety instructions.

Supply public cooking facts only. Exclude personal identities, private attachments, conversation extracts, provenance logs, credentials and internal operational information. Use public source attribution only when relevant and appropriate. UTF-8 JSON is preferred over document formats for import; a transport .bin filename can still contain JSON text. Inspect content rather than guessing from the extension.
