{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/restoration-site",
    "title": "Restoration Site & Monitoring-Plot Record",
    "type": "object",
    "required": [
        "site_name",
        "country",
        "latitude",
        "longitude",
        "area_ha",
        "ecosystem_type",
        "interventions"
    ],
    "properties": {
        "site_name": {
            "title": "Site name",
            "type": "string",
            "maxLength": 1000
        },
        "country": {
            "title": "Country",
            "type": "string",
            "maxLength": 1000
        },
        "latitude": {
            "title": "Latitude",
            "type": "number",
            "minimum": -90,
            "maximum": 90
        },
        "longitude": {
            "title": "Longitude",
            "type": "number",
            "minimum": -180,
            "maximum": 180
        },
        "area_ha": {
            "title": "Area (ha)",
            "type": "number"
        },
        "boundary_geojson_url": {
            "title": "Boundary GeoJSON URL",
            "type": "string",
            "format": "uri"
        },
        "ecosystem_type": {
            "title": "Ecosystem type",
            "type": "string",
            "maxLength": 1000
        },
        "interventions": {
            "title": "Interventions",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "baseline_date": {
            "title": "Baseline date",
            "type": "string",
            "format": "date"
        },
        "monitoring_plot_ids": {
            "title": "Monitoring plot IDs",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "funders": {
            "title": "Funders",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "overlapping_project_dois": {
            "title": "Overlapping credit project IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        }
    },
    "additionalProperties": true
}