{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/digital-twin-version",
    "title": "Digital Twin Version",
    "type": "object",
    "required": [
        "twin_name",
        "twin_scope",
        "physical_counterpart",
        "twin_version"
    ],
    "properties": {
        "twin_name": {
            "title": "Twin name",
            "type": "string",
            "maxLength": 1000
        },
        "twin_scope": {
            "title": "Scope",
            "type": "string",
            "enum": [
                "asset",
                "system",
                "factory",
                "building",
                "city",
                "network",
                "process"
            ]
        },
        "physical_counterpart": {
            "title": "Physical counterpart description",
            "type": "string",
            "maxLength": 1000
        },
        "twin_version": {
            "title": "Twin version",
            "type": "string",
            "maxLength": 1000
        },
        "platform": {
            "title": "Platform",
            "type": "string",
            "maxLength": 1000
        },
        "standards": {
            "title": "Standards (DTDL, ISO 23247, ...)",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "model_hash": {
            "title": "Model hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "sync_frequency": {
            "title": "Sync frequency",
            "type": "string",
            "maxLength": 1000
        }
    },
    "additionalProperties": true
}