{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/xr-asset",
    "title": "XR / Metaverse Asset",
    "type": "object",
    "required": [
        "asset_name",
        "asset_format",
        "creator"
    ],
    "properties": {
        "asset_name": {
            "title": "Asset name",
            "type": "string",
            "maxLength": 1000
        },
        "asset_format": {
            "title": "Format",
            "type": "string",
            "enum": [
                "glTF",
                "USD",
                "FBX",
                "VRM",
                "other"
            ]
        },
        "creator": {
            "title": "Creator",
            "type": "string",
            "maxLength": 1000
        },
        "asset_hash": {
            "title": "Asset hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "platforms": {
            "title": "Platforms",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "license": {
            "title": "Licence",
            "type": "string",
            "maxLength": 1000
        }
    },
    "additionalProperties": true
}