Definition JSON
This fragment is shown exactly as published. Use the chevrons to fold objects and arrays; linked $ref values return to their targets in the complete schema.
{ "type": "object",
"additionalProperties": false,
"required": [ "id",
"expression",
"expression_language",
"inputs",
"result" ],
"properties": { "id": { "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/local_id" },
"expression": { "type": "string" },
"expression_language": { "enum": [ "matjson_infix_0.1",
"source_text",
"other" ] },
"inputs": { "type": "array",
"minItems": 1,
"items": { "$ref": "#/$defs/calculation_input" } },
"result": { "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/result_value" },
"rounding": { "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/rounding_rule" },
"source_requirement_resolution_refs": { "type": "array",
"uniqueItems": true,
"items": { "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/local_id" } },
"explanation": { "type": "string" },
"notes": { "type": "array",
"items": { "type": "string" } } }}Fields
| Field | Type | Status | Meaning |
|---|---|---|---|
id | Local id | Required | Stable identifier for this object within its containing MatJSON document. |
expression | string | Required | Expression used by this schema object. |
expression_language | enum — "matjson_infix_0.1", "source_text", "other" | Required | Expression language used by this schema object. |
inputs | array — at least 1 item(s) | Required | Inputs used by this schema object. |
result | Result value | Required | Result used by this schema object. |
rounding | Rounding rule | Optional | Rounding used by this schema object. |
source_requirement_resolution_refs | array | Optional | Source requirement resolution refs used by this schema object. |
explanation | string | Optional | Explanation used by this schema object. |
notes | array | Optional | Additional explanatory notes that do not replace the structured requirement. |