Files
formulation/container/schemas/v2/prep-action.schema.json

17 lines
746 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://recipes.uuard.com/schemas/v2/prep-action.schema.json",
"title": "Preparation action",
"type": "object",
"required": ["schema_version", "id", "name", "action_type"],
"additionalProperties": false,
"properties": {
"schema_version": { "$ref": "common.schema.json#/$defs/schemaVersion" },
"id": { "$ref": "common.schema.json#/$defs/id" },
"name": { "$ref": "common.schema.json#/$defs/nonEmptyString" },
"action_type": { "type": "string", "enum": ["trim", "peel", "cut", "grind", "drain", "cook", "cool", "other"] },
"default_yield_factor": { "type": "number", "exclusiveMinimum": 0, "maximum": 1 },
"notes": { "type": "string" }
}
}