Skip to content

Commit f5a51f9

Browse files
authored
Merge pull request #2612 from alphagov/create-farming-grants-finder
Add farming grants finder
2 parents 0942e81 + 90242bd commit f5a51f9

File tree

13 files changed

+800
-0
lines changed

13 files changed

+800
-0
lines changed

content_schemas/allowed_document_types.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
- export_health_certificate
4747
- external_content
4848
- facet
49+
- farming_grant_option
4950
- fatality_notice
5051
- field_of_operation
5152
- fields_of_operation

content_schemas/dist/formats/generic/frontend/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"export_health_certificate",
8383
"external_content",
8484
"facet",
85+
"farming_grant_option",
8586
"fatality_notice",
8687
"field_of_operation",
8788
"fields_of_operation",

content_schemas/dist/formats/generic/notification/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"export_health_certificate",
107107
"external_content",
108108
"facet",
109+
"farming_grant_option",
109110
"fatality_notice",
110111
"field_of_operation",
111112
"fields_of_operation",

content_schemas/dist/formats/generic/publisher_v2/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"export_health_certificate",
9393
"external_content",
9494
"facet",
95+
"farming_grant_option",
9596
"fatality_notice",
9697
"field_of_operation",
9798
"fields_of_operation",

content_schemas/dist/formats/generic_with_external_related_links/frontend/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"export_health_certificate",
8383
"external_content",
8484
"facet",
85+
"farming_grant_option",
8586
"fatality_notice",
8687
"field_of_operation",
8788
"fields_of_operation",

content_schemas/dist/formats/generic_with_external_related_links/notification/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"export_health_certificate",
107107
"external_content",
108108
"facet",
109+
"farming_grant_option",
109110
"fatality_notice",
110111
"field_of_operation",
111112
"fields_of_operation",

content_schemas/dist/formats/generic_with_external_related_links/publisher_v2/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"export_health_certificate",
9393
"external_content",
9494
"facet",
95+
"farming_grant_option",
9596
"fatality_notice",
9697
"field_of_operation",
9798
"fields_of_operation",

content_schemas/dist/formats/specialist_document/frontend/schema.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"employment_tribunal_decision",
5050
"esi_fund",
5151
"export_health_certificate",
52+
"farming_grant_option",
5253
"flood_and_coastal_erosion_risk_management_research_report",
5354
"international_development_fund",
5455
"licence_transaction",
@@ -686,6 +687,9 @@
686687
{
687688
"$ref": "#/definitions/flood_and_coastal_erosion_risk_management_research_report"
688689
},
690+
{
691+
"$ref": "#/definitions/farming_grant_option_metadata"
692+
},
689693
{
690694
"$ref": "#/definitions/maib_report_metadata"
691695
},
@@ -1697,6 +1701,102 @@
16971701
}
16981702
}
16991703
},
1704+
"farming_grant_option_metadata": {
1705+
"type": "object",
1706+
"additionalProperties": false,
1707+
"properties": {
1708+
"areas_of_interest": {
1709+
"type": "array",
1710+
"items": {
1711+
"type": "string",
1712+
"enum": [
1713+
"access-and-engagement",
1714+
"air-quality",
1715+
"biodiversity",
1716+
"boundaries",
1717+
"crops",
1718+
"flood-risk",
1719+
"forestry",
1720+
"historic-environment",
1721+
"livestock-management",
1722+
"peat",
1723+
"pollinators-and-wildlife",
1724+
"precision-farming",
1725+
"slurry-management",
1726+
"soil",
1727+
"trees-non-woodland",
1728+
"vegetation-control",
1729+
"water"
1730+
]
1731+
}
1732+
},
1733+
"bulk_published": {
1734+
"type": "boolean"
1735+
},
1736+
"funding_types": {
1737+
"type": "array",
1738+
"items": {
1739+
"type": "string",
1740+
"enum": [
1741+
"option",
1742+
"item",
1743+
"action"
1744+
]
1745+
}
1746+
},
1747+
"grant_schemes": {
1748+
"type": "array",
1749+
"items": {
1750+
"type": "string",
1751+
"enum": [
1752+
"combined-offer",
1753+
"countryside-stewardship",
1754+
"farming-equipment-and-technology-fund",
1755+
"slurry-infrastructure-grant",
1756+
"sustainable-farming-incentive"
1757+
]
1758+
}
1759+
},
1760+
"land_types": {
1761+
"type": "array",
1762+
"items": {
1763+
"type": "string",
1764+
"enum": [
1765+
"arable-land",
1766+
"coast",
1767+
"grassland",
1768+
"lowland-heath",
1769+
"moorland-and-upland",
1770+
"organic-land",
1771+
"priority-habitats",
1772+
"waterbodies",
1773+
"wetland",
1774+
"woodland"
1775+
]
1776+
}
1777+
},
1778+
"open_or_closed": {
1779+
"type": "array",
1780+
"items": {
1781+
"type": "string",
1782+
"enum": [
1783+
"open",
1784+
"closed"
1785+
]
1786+
}
1787+
},
1788+
"payment_types": {
1789+
"type": "array",
1790+
"items": {
1791+
"type": "string",
1792+
"enum": [
1793+
"capital",
1794+
"revenue"
1795+
]
1796+
}
1797+
}
1798+
}
1799+
},
17001800
"first_published_at": {
17011801
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
17021802
"type": "string",

content_schemas/dist/formats/specialist_document/notification/schema.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"employment_tribunal_decision",
7474
"esi_fund",
7575
"export_health_certificate",
76+
"farming_grant_option",
7677
"flood_and_coastal_erosion_risk_management_research_report",
7778
"international_development_fund",
7879
"licence_transaction",
@@ -778,6 +779,9 @@
778779
{
779780
"$ref": "#/definitions/flood_and_coastal_erosion_risk_management_research_report"
780781
},
782+
{
783+
"$ref": "#/definitions/farming_grant_option_metadata"
784+
},
781785
{
782786
"$ref": "#/definitions/maib_report_metadata"
783787
},
@@ -1789,6 +1793,102 @@
17891793
}
17901794
}
17911795
},
1796+
"farming_grant_option_metadata": {
1797+
"type": "object",
1798+
"additionalProperties": false,
1799+
"properties": {
1800+
"areas_of_interest": {
1801+
"type": "array",
1802+
"items": {
1803+
"type": "string",
1804+
"enum": [
1805+
"access-and-engagement",
1806+
"air-quality",
1807+
"biodiversity",
1808+
"boundaries",
1809+
"crops",
1810+
"flood-risk",
1811+
"forestry",
1812+
"historic-environment",
1813+
"livestock-management",
1814+
"peat",
1815+
"pollinators-and-wildlife",
1816+
"precision-farming",
1817+
"slurry-management",
1818+
"soil",
1819+
"trees-non-woodland",
1820+
"vegetation-control",
1821+
"water"
1822+
]
1823+
}
1824+
},
1825+
"bulk_published": {
1826+
"type": "boolean"
1827+
},
1828+
"funding_types": {
1829+
"type": "array",
1830+
"items": {
1831+
"type": "string",
1832+
"enum": [
1833+
"option",
1834+
"item",
1835+
"action"
1836+
]
1837+
}
1838+
},
1839+
"grant_schemes": {
1840+
"type": "array",
1841+
"items": {
1842+
"type": "string",
1843+
"enum": [
1844+
"combined-offer",
1845+
"countryside-stewardship",
1846+
"farming-equipment-and-technology-fund",
1847+
"slurry-infrastructure-grant",
1848+
"sustainable-farming-incentive"
1849+
]
1850+
}
1851+
},
1852+
"land_types": {
1853+
"type": "array",
1854+
"items": {
1855+
"type": "string",
1856+
"enum": [
1857+
"arable-land",
1858+
"coast",
1859+
"grassland",
1860+
"lowland-heath",
1861+
"moorland-and-upland",
1862+
"organic-land",
1863+
"priority-habitats",
1864+
"waterbodies",
1865+
"wetland",
1866+
"woodland"
1867+
]
1868+
}
1869+
},
1870+
"open_or_closed": {
1871+
"type": "array",
1872+
"items": {
1873+
"type": "string",
1874+
"enum": [
1875+
"open",
1876+
"closed"
1877+
]
1878+
}
1879+
},
1880+
"payment_types": {
1881+
"type": "array",
1882+
"items": {
1883+
"type": "string",
1884+
"enum": [
1885+
"capital",
1886+
"revenue"
1887+
]
1888+
}
1889+
}
1890+
}
1891+
},
17921892
"first_published_at": {
17931893
"description": "The date the content was first published. Automatically determined by the publishing-api, unless overridden by the publishing application.",
17941894
"type": "string",

0 commit comments

Comments
 (0)