{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/synbio-design",
    "title": "Synthetic-Biology Design (SBOL)",
    "type": "object",
    "required": [
        "design_name"
    ],
    "properties": {
        "design_name": {
            "title": "Design name",
            "type": "string",
            "maxLength": 1000
        },
        "sbol_url": {
            "title": "SBOL document URL",
            "type": "string",
            "format": "uri"
        },
        "sbol_hash": {
            "title": "SBOL hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "part_ids": {
            "title": "Part IDs",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "biosafety_level": {
            "title": "Biosafety level",
            "type": "string",
            "enum": [
                "BSL-1",
                "BSL-2",
                "BSL-3",
                "BSL-4"
            ]
        }
    },
    "additionalProperties": true
}