{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/autonomous-system-safety-case",
    "title": "Autonomous Vehicle / Drone / Robot Software Release & Safety Case",
    "type": "object",
    "required": [
        "vehicle_class",
        "software_version",
        "oem"
    ],
    "properties": {
        "vehicle_class": {
            "title": "Vehicle / robot class",
            "type": "string",
            "enum": [
                "road-vehicle",
                "drone-uas",
                "industrial-robot",
                "service-robot",
                "marine",
                "rail"
            ]
        },
        "software_version": {
            "title": "Software version",
            "type": "string",
            "maxLength": 1000
        },
        "oem": {
            "title": "OEM",
            "type": "string",
            "maxLength": 1000
        },
        "odd": {
            "title": "Operational design domain",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "sae_level": {
            "title": "SAE automation level",
            "type": "string",
            "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "not-applicable"
            ]
        },
        "safety_case_hash": {
            "title": "Safety case hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "type_approval_number": {
            "title": "Type-approval number",
            "type": "string",
            "maxLength": 1000
        },
        "standards": {
            "title": "Standards claimed (ISO 26262, UL 4600, ...)",
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "additionalProperties": true
}