Input document

Input document used by this schema object.

$defs.input_document · object

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",
        "role",
        "uri",
        "content_hash"    ],
    "properties": {        "id": {            "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/local_id"        },
        "role": {            "enum": [                "matspec",
                "matreq",
                "matrecord",
                "requisition_context",
                "other"            ]        },
        "profile": {            "enum": [                "matspec",
                "matreq",
                "matrecord",
                "matcheck",
                "core"            ]        },
        "profile_version": {            "type": "string"        },
        "uri": {            "type": "string",
            "format": "uri-reference"        },
        "content_hash": {            "$ref": "https://matjson.org/schema/core/0.1/schema.json#/$defs/content_hash"        },
        "schema_uri": {            "type": "string",
            "format": "uri-reference"        },
        "document_id": {            "type": "string"        },
        "title": {            "type": "string"        },
        "designation": {            "type": "string"        },
        "edition": {            "type": "string"        },
        "retrieved_at": {            "type": "string",
            "format": "date-time"        },
        "embedded_path": {            "type": "string"        },
        "notes": {            "type": "array",
            "items": {                "type": "string"            }        }    },
    "allOf": [        {            "if": {                "properties": {                    "role": {                        "const": "matspec"                    }                },
                "required": [                    "role"                ]            },
            "then": {                "required": [                    "profile",
                    "profile_version"                ],
                "properties": {                    "profile": {                        "const": "matspec"                    }                }            }        },
        {            "if": {                "properties": {                    "role": {                        "const": "matreq"                    }                },
                "required": [                    "role"                ]            },
            "then": {                "required": [                    "profile",
                    "profile_version"                ],
                "properties": {                    "profile": {                        "const": "matreq"                    }                }            }        },
        {            "if": {                "properties": {                    "role": {                        "const": "matrecord"                    }                },
                "required": [                    "role"                ]            },
            "then": {                "required": [                    "profile",
                    "profile_version"                ],
                "properties": {                    "profile": {                        "const": "matrecord"                    }                }            }        }    ]}

Fields

FieldTypeStatusMeaning
idLocal idRequiredStable identifier for this object within its containing MatJSON document.
roleenum — "matspec", "matreq", "matrecord", "requisition_context", "other"RequiredRole used by this schema object.
profileenum — "matspec", "matreq", "matrecord", "matcheck", "core"OptionalProfile used by this schema object.
profile_versionstringOptionalProfile version used by this schema object.
uristringRequiredUri used by this schema object.
content_hashContent hashRequiredContent hash used by this schema object.
schema_uristringOptionalSchema uri used by this schema object.
document_idstringOptionalDocument id used by this schema object.
titlestringOptionalShort human-readable name displayed in documentation and review tools.
designationstringOptionalDesignation used by this schema object.
editionstringOptionalEdition used by this schema object.
retrieved_atstringOptionalRetrieved at used by this schema object.
embedded_pathstringOptionalEmbedded path used by this schema object.
notesarrayOptionalAdditional explanatory notes that do not replace the structured requirement.