{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/conservation-action",
    "title": "Conservation Action Record",
    "type": "object",
    "required": [
        "action_type",
        "start_date",
        "implementer"
    ],
    "properties": {
        "action_type": {
            "title": "Action type",
            "type": "string",
            "maxLength": 1000
        },
        "site_doi": {
            "title": "Site ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "target_species": {
            "title": "Target species (scientific names)",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "start_date": {
            "title": "Start date",
            "type": "string",
            "format": "date"
        },
        "end_date": {
            "title": "End date",
            "type": "string",
            "format": "date"
        },
        "implementer": {
            "title": "Implementer",
            "type": "string",
            "maxLength": 1000
        },
        "outcome_summary": {
            "title": "Outcome summary",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        }
    },
    "additionalProperties": true
}