{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/synthetic-organism-release",
    "title": "Engineered / Synthetic Organism Release & Biosafety Approval",
    "type": "object",
    "required": [
        "organism",
        "approval_authority",
        "approval_number",
        "release_type",
        "approval_date"
    ],
    "properties": {
        "organism": {
            "title": "Organism",
            "type": "string",
            "maxLength": 1000
        },
        "construct_ids": {
            "title": "Construct / part IDs",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "approval_authority": {
            "title": "Approval authority",
            "type": "string",
            "maxLength": 1000
        },
        "approval_number": {
            "title": "Approval number",
            "type": "string",
            "maxLength": 1000
        },
        "release_type": {
            "title": "Release type",
            "type": "string",
            "enum": [
                "contained",
                "field-trial",
                "commercial"
            ]
        },
        "approval_date": {
            "title": "Approval date",
            "type": "string",
            "format": "date"
        },
        "site_location": {
            "title": "Site location",
            "type": "string",
            "maxLength": 1000
        }
    },
    "additionalProperties": true
}