{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://abitatdotdev.github.io/bng/inputs.json",
  "title": "BNG Metric Input Schema",
  "description": "Input shapes for every BNG parcel schema. Reference any entry via `#/$defs/<name>`.",
  "version": "1.1.0",
  "$defs": {
    "onSiteHabitatBaseline": {
      "type": "object",
      "properties": {
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint",
            "Felled"
          ]
        },
        "irreplaceableHabitat": {
          "type": "boolean"
        },
        "area": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "areaRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares.",
          "default": 0
        },
        "areaEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares.",
          "default": 0
        },
        "bespokeCompensationAgreed": {
          "type": "string",
          "default": "No",
          "enum": [
            "Yes",
            "No",
            "Pending"
          ],
          "title": "Bespoke compensation agreed",
          "description": "Whether bespoke compensation has been agreed for an irreplaceable habitat."
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "broadHabitat",
        "habitatType",
        "irreplaceableHabitat",
        "area",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteHabitatCreation": {
      "type": "object",
      "properties": {
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint"
          ]
        },
        "area": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatCreationInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "habitatCreationDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "broadHabitat",
        "habitatType",
        "area",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteHabitatEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "broadHabitat": {
              "type": "string"
            },
            "habitatType": {
              "type": "string"
            },
            "irreplaceableHabitat": {
              "type": "boolean"
            },
            "area": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "areaRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares.",
              "default": 0
            },
            "areaEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares.",
              "default": 0
            },
            "bespokeCompensationAgreed": {
              "type": "string",
              "default": "No"
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "broadHabitat",
            "habitatType",
            "irreplaceableHabitat",
            "area",
            "condition",
            "strategicSignificance"
          ]
        },
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint",
            "Replacement for felled woodland"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "habitatEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "broadHabitat",
        "habitatType",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteHedgerowBaseline": {
      "type": "object",
      "properties": {
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "lengthRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "lengthEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "habitatType",
        "length",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteHedgerowCreation": {
      "type": "object",
      "properties": {
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatCreatedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "delayInStartingHabitatCreation": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "habitatType",
        "length",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteHedgerowEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "habitatType": {
              "type": "string"
            },
            "length": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "lengthRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "lengthEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "habitatType",
            "length",
            "condition",
            "strategicSignificance"
          ]
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "hedgerowEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "hedgerowEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "habitatType",
        "condition",
        "strategicSignificance"
      ]
    },
    "onSiteWatercourseBaseline": {
      "type": "object",
      "properties": {
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "lengthRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "lengthEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "bespokeCompensation": {
          "type": "string",
          "default": "No",
          "enum": [
            "Yes",
            "No",
            "Pending"
          ],
          "title": "Bespoke compensation agreed",
          "description": "Whether bespoke compensation has been agreed for an irreplaceable habitat."
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "watercourseType",
        "length",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment"
      ]
    },
    "onSiteWatercourseCreation": {
      "type": "object",
      "properties": {
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatCreatedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "delayInStarting": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "watercourseType",
        "length",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment"
      ]
    },
    "onSiteWatercourseEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "watercourseType": {
              "type": "string"
            },
            "length": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "watercourseEncroachment": {
              "type": "string"
            },
            "riparianEncroachment": {
              "type": "string"
            },
            "lengthRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "lengthEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "bespokeCompensation": {
              "type": "string",
              "default": "No"
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "watercourseType",
            "length",
            "condition",
            "strategicSignificance",
            "watercourseEncroachment",
            "riparianEncroachment"
          ]
        },
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "watercourseEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "watercourseType",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment"
      ]
    },
    "offSiteHabitatBaseline": {
      "type": "object",
      "properties": {
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint",
            "Felled"
          ]
        },
        "irreplaceableHabitat": {
          "type": "boolean"
        },
        "area": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "Compensation inside LPA boundary or NCA of impact site",
            "Compensation outside LPA or NCA of impact site, but in neighbouring LPA or NCA",
            "Compensation outside LPA or NCA of impact site and neighbouring LPA or NCA",
            "This metric is being used by an off-site provider",
            "Intertidal habitats - Compensation inside Marine Plan Area of impact site",
            "Intertidal habitats - Compensation outside same Marine Plan Area but in neighbouring Marine Plan Area",
            "Intertidal habitats - Compensation outside Marine Plan Area of impact site and beyond neighbouring Marine Plan Area"
          ]
        },
        "areaRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares.",
          "default": 0
        },
        "areaEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares.",
          "default": 0
        },
        "bespokeCompensationAgreed": {
          "type": "string",
          "default": "No",
          "enum": [
            "Yes",
            "No",
            "Pending"
          ],
          "title": "Bespoke compensation agreed",
          "description": "Whether bespoke compensation has been agreed for an irreplaceable habitat."
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "broadHabitat",
        "habitatType",
        "irreplaceableHabitat",
        "area",
        "condition",
        "strategicSignificance",
        "spatialRiskCategory"
      ]
    },
    "offSiteHabitatCreation": {
      "type": "object",
      "properties": {
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint"
          ]
        },
        "area": {
          "type": "number",
          "minimum": 0,
          "title": "Area",
          "description": "Habitat parcel area in hectares."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatCreationInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "habitatCreationDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "Compensation inside LPA boundary or NCA of impact site",
            "Compensation outside LPA or NCA of impact site, but in neighbouring LPA or NCA",
            "Compensation outside LPA or NCA of impact site and neighbouring LPA or NCA",
            "This metric is being used by an off-site provider",
            "Intertidal habitats - Compensation inside Marine Plan Area of impact site",
            "Intertidal habitats - Compensation outside same Marine Plan Area but in neighbouring Marine Plan Area",
            "Intertidal habitats - Compensation outside Marine Plan Area of impact site and beyond neighbouring Marine Plan Area"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "baselineReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "broadHabitat",
        "habitatType",
        "area",
        "condition",
        "strategicSignificance",
        "spatialRiskCategory"
      ]
    },
    "offSiteHabitatEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "broadHabitat": {
              "type": "string"
            },
            "habitatType": {
              "type": "string"
            },
            "irreplaceableHabitat": {
              "type": "boolean"
            },
            "area": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "spatialRiskCategory": {
              "type": "string"
            },
            "areaRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares.",
              "default": 0
            },
            "areaEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Area",
              "description": "Habitat parcel area in hectares.",
              "default": 0
            },
            "bespokeCompensationAgreed": {
              "type": "string",
              "default": "No"
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "offSiteReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "broadHabitat",
            "habitatType",
            "irreplaceableHabitat",
            "area",
            "condition",
            "strategicSignificance",
            "spatialRiskCategory"
          ]
        },
        "broadHabitat": {
          "type": "string",
          "enum": [
            "Cropland",
            "Grassland",
            "Heathland and shrub",
            "Lakes",
            "Sparsely vegetated land",
            "Urban",
            "Wetland",
            "Woodland and forest",
            "Coastal lagoons",
            "Rocky shore",
            "Coastal saltmarsh",
            "Intertidal sediment",
            "Intertidal hard structures",
            "Watercourse footprint",
            "Individual trees",
            ""
          ],
          "title": "Broad habitat",
          "description": "The broad category for the habitat."
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Arable field margins cultivated annually",
            "Arable field margins game bird mix",
            "Arable field margins pollen and nectar",
            "Arable field margins tussocky",
            "Cereal crops",
            "Winter stubble",
            "Horticulture",
            "Intensive orchards",
            "Non-cereal crops",
            "Temporary grass and clover leys",
            "Traditional orchards",
            "Bracken",
            "Floodplain wetland mosaic and CFGM",
            "Lowland calcareous grassland",
            "Lowland dry acid grassland",
            "Lowland meadows",
            "Modified grassland",
            "Other lowland acid grassland",
            "Other neutral grassland",
            "Tall herb communities (H6430)",
            "Upland acid grassland",
            "Upland calcareous grassland",
            "Upland hay meadows",
            "Blackthorn scrub",
            "Bramble scrub",
            "Gorse scrub",
            "Hawthorn scrub",
            "Hazel scrub",
            "Lowland heathland",
            "Mixed scrub",
            "Mountain heaths and willow scrub",
            "Rhododendron scrub",
            "Dunes with sea buckthorn (H2160)",
            "Other sea buckthorn scrub",
            "Willow scrub",
            "Upland heathland",
            "Aquifer fed naturally fluctuating water bodies",
            "Ornamental lake or pond",
            "High alkalinity lakes",
            "Low alkalinity lakes",
            "Marl lakes",
            "Moderate alkalinity lakes",
            "Peat lakes",
            "Ponds (priority habitat)",
            "Ponds (non-priority habitat)",
            "Reservoirs",
            "Temporary lakes ponds and pools (H3170)",
            "Calaminarian grasslands",
            "Coastal sand dunes",
            "Coastal vegetated shingle",
            "Ruderal/Ephemeral",
            "Tall forbs",
            "Inland rock outcrop and scree habitats",
            "Limestone pavement",
            "Maritime cliff and slopes",
            "Other inland rock and scree",
            "Allotments",
            "Artificial unvegetated, unsealed surface",
            "Bioswale",
            "Intensive green roof",
            "Built linear features",
            "Cemeteries and churchyards",
            "Developed land; sealed surface",
            "Other green roof",
            "Facade-bound green wall",
            "Ground based green wall",
            "Ground level planters",
            "Biodiverse green roof",
            "Introduced shrub",
            "Open mosaic habitats on previously developed land",
            "Rain garden",
            "Actively worked sand pit quarry or open cast mine",
            "Sustainable drainage system",
            "Unvegetated garden",
            "Vacant or derelict land",
            "Bare ground",
            "Vegetated garden",
            "Urban tree",
            "Rural tree",
            "Blanket bog",
            "Depressions on peat substrates (H7150)",
            "Fens (upland and lowland)",
            "Lowland raised bog",
            "Oceanic valley mire[1] (D2.1)",
            "Purple moor grass and rush pastures",
            "Reedbeds",
            "Transition mires and quaking bogs (H7140)",
            "Lowland beech and yew woodland",
            "Lowland mixed deciduous woodland",
            "Native pine woodlands",
            "Other coniferous woodland",
            "Other Scot's pine woodland",
            "Other woodland; broadleaved",
            "Other woodland; mixed",
            "Upland birchwoods",
            "Upland mixed ashwoods",
            "Upland oakwood",
            "Wet woodland",
            "Wood-pasture and parkland",
            "Coastal lagoons",
            "High energy littoral rock",
            "High energy littoral rock - on peat, clay or chalk",
            "Moderate energy littoral rock",
            "Moderate energy littoral rock - on peat, clay or chalk",
            "Low energy littoral rock",
            "Low energy littoral rock - on peat, clay or chalk",
            "Features of littoral rock",
            "Features of littoral rock - on peat, clay or chalk",
            "Saltmarshes and saline reedbeds",
            "Artificial saltmarshes and saline reedbeds",
            "Littoral coarse sediment",
            "Littoral mud",
            "Littoral mixed sediments",
            "Littoral seagrass",
            "Littoral seagrass on peat, clay or chalk",
            "Littoral biogenic reefs - Mussels",
            "Littoral biogenic reefs - Sabellaria",
            "Features of littoral sediment",
            "Artificial littoral coarse sediment",
            "Artificial littoral mud",
            "Artificial littoral sand",
            "Artificial littoral muddy sand",
            "Artificial littoral mixed sediments",
            "Artificial littoral seagrass",
            "Artificial littoral biogenic reefs",
            "Littoral sand",
            "Littoral muddy sand",
            "Artificial hard structures",
            "Artificial features of hard structures",
            "Artificial hard structures with integrated greening of grey infrastructure (IGGI)",
            "Watercourse footprint",
            "Replacement for felled woodland"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor",
            "Condition Assessment N/A",
            "N/A - Other"
          ],
          "title": "Habitat condition",
          "description": "Outcome of the condition assessment for the habitat parcel."
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "habitatEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "broadHabitat",
        "habitatType",
        "condition",
        "strategicSignificance"
      ]
    },
    "offSiteHedgerowBaseline": {
      "type": "object",
      "properties": {
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "Compensation inside LPA boundary or NCA of impact site",
            "Compensation outside LPA or NCA of impact site, but in neighbouring LPA or NCA",
            "Compensation outside LPA or NCA of impact site and neighbouring LPA or NCA",
            "This metric is being used by an off-site provider",
            "Intertidal habitats - Compensation inside Marine Plan Area of impact site",
            "Intertidal habitats - Compensation outside same Marine Plan Area but in neighbouring Marine Plan Area",
            "Intertidal habitats - Compensation outside Marine Plan Area of impact site and beyond neighbouring Marine Plan Area"
          ]
        },
        "lengthRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "lengthEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "habitatType",
        "length",
        "condition",
        "strategicSignificance"
      ]
    },
    "offSiteHedgerowCreation": {
      "type": "object",
      "properties": {
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "Compensation inside LPA boundary or NCA of impact site",
            "Compensation outside LPA or NCA of impact site, but in neighbouring LPA or NCA",
            "Compensation outside LPA or NCA of impact site and neighbouring LPA or NCA",
            "This metric is being used by an off-site provider",
            "Intertidal habitats - Compensation inside Marine Plan Area of impact site",
            "Intertidal habitats - Compensation outside same Marine Plan Area but in neighbouring Marine Plan Area",
            "Intertidal habitats - Compensation outside Marine Plan Area of impact site and beyond neighbouring Marine Plan Area"
          ]
        },
        "habitatCreatedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "delayInStartingHabitatCreation": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "baselineReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "habitatType",
        "length",
        "condition",
        "strategicSignificance"
      ]
    },
    "offSiteHedgerowEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "habitatType": {
              "type": "string"
            },
            "length": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "spatialRiskCategory": {
              "type": "string"
            },
            "lengthRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "lengthEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "offSiteReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "habitatType",
            "length",
            "condition",
            "strategicSignificance"
          ]
        },
        "habitatType": {
          "type": "string",
          "enum": [
            "Species-rich native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow with trees",
            "Species-rich native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees - associated with bank or ditch",
            "Species-rich native hedgerow",
            "Native hedgerow - associated with bank or ditch",
            "Native hedgerow with trees",
            "Ecologically valuable line of trees",
            "Ecologically valuable line of trees - associated with bank or ditch",
            "Native hedgerow",
            "Line of trees",
            "Line of trees - associated with bank or ditch",
            "Non-native and ornamental hedgerow"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Moderate",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "hedgerowEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "hedgerowEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "habitatType",
        "condition",
        "strategicSignificance"
      ]
    },
    "offSiteWatercourseBaseline": {
      "type": "object",
      "properties": {
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "This metric is being used by an off-site provider",
            "Within waterbody catchment",
            "Outside waterbody catchment, but within operational catchment",
            "Outside operational catchment"
          ]
        },
        "lengthRetained": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "lengthEnhanced": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres.",
          "default": 0
        },
        "bespokeCompensation": {
          "type": "string",
          "default": "No",
          "enum": [
            "Yes",
            "No",
            "Pending"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "offSiteReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "watercourseType",
        "length",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment",
        "spatialRiskCategory"
      ]
    },
    "offSiteWatercourseCreation": {
      "type": "object",
      "properties": {
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "length": {
          "type": "number",
          "minimum": 0,
          "title": "Length",
          "description": "Hedgerow or watercourse length in kilometres."
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "habitatCreatedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "delayInStarting": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "spatialRiskCategory": {
          "type": "string",
          "enum": [
            "This metric is being used by an off-site provider",
            "Within waterbody catchment",
            "Outside waterbody catchment, but within operational catchment",
            "Outside operational catchment"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "watercourseType",
        "length",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment",
        "spatialRiskCategory"
      ]
    },
    "offSiteWatercourseEnhancement": {
      "type": "object",
      "properties": {
        "baseline": {
          "type": "object",
          "properties": {
            "watercourseType": {
              "type": "string"
            },
            "length": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres."
            },
            "condition": {
              "type": "string"
            },
            "strategicSignificance": {
              "type": "string"
            },
            "watercourseEncroachment": {
              "type": "string"
            },
            "riparianEncroachment": {
              "type": "string"
            },
            "spatialRiskCategory": {
              "type": "string"
            },
            "lengthRetained": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "lengthEnhanced": {
              "type": "number",
              "minimum": 0,
              "title": "Length",
              "description": "Hedgerow or watercourse length in kilometres.",
              "default": 0
            },
            "bespokeCompensation": {
              "type": "string",
              "default": "No"
            },
            "userComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "planningAuthorityComments": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "habitatReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            },
            "offSiteReferenceNumber": {
              "type": "string",
              "description": "Free-text field; not used in calculations."
            }
          },
          "required": [
            "watercourseType",
            "length",
            "condition",
            "strategicSignificance",
            "watercourseEncroachment",
            "riparianEncroachment",
            "spatialRiskCategory"
          ]
        },
        "watercourseType": {
          "type": "string",
          "enum": [
            "Priority habitat",
            "Other rivers and streams",
            "Ditches",
            "Canals",
            "Culvert"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "Good",
            "Fairly Good",
            "Moderate",
            "Fairly Poor",
            "Poor"
          ]
        },
        "strategicSignificance": {
          "type": "string",
          "enum": [
            "Formally identified in local strategy",
            "Location ecologically desirable but not in local strategy",
            "Area/compensation not in local strategy/ no local strategy"
          ],
          "title": "Strategic significance",
          "description": "Whether the habitat parcel is formally identified in a local strategy."
        },
        "watercourseEnhancedInAdvance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEnhancedDelay": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 30
            },
            {
              "const": "30+"
            }
          ],
          "default": 0
        },
        "watercourseEncroachment": {
          "type": "string",
          "enum": [
            "No Encroachment",
            "Minor",
            "Major",
            "N/A - Culvert"
          ]
        },
        "riparianEncroachment": {
          "type": "string",
          "enum": [
            "Major/Major",
            "Major/Moderate",
            "Major/Minor",
            "Major/No Encroachment",
            "Moderate/ Moderate",
            "Moderate/ Minor",
            "Moderate/ No Encroachment",
            "Minor/ Minor",
            "Minor/ No Encroachment",
            "No Encroachment/ No Encroachment",
            "N/A - Culvert"
          ]
        },
        "userComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "planningAuthorityComments": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        },
        "habitatReferenceNumber": {
          "type": "string",
          "description": "Free-text field; not used in calculations."
        }
      },
      "required": [
        "baseline",
        "watercourseType",
        "condition",
        "strategicSignificance",
        "watercourseEncroachment",
        "riparianEncroachment"
      ]
    }
  }
}
