Skip to content

Commit

Permalink
Add mock finder
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraghiorghisor-tw committed Aug 7, 2024
1 parent 07b3b64 commit 1605832
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 0 deletions.
1 change: 1 addition & 0 deletions content_schemas/allowed_document_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
- ministerial_role
- ministers_index
- modern_slavery_statement
- mock_spike_finder_document
- national
- national_statistics
- national_statistics_announcement
Expand Down
1 change: 1 addition & 0 deletions content_schemas/dist/formats/generic/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"ministerial_role",
"ministers_index",
"modern_slavery_statement",
"mock_spike_finder_document",
"national",
"national_statistics",
"national_statistics_announcement",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"marine_equipment_approved_recommendation",
"marine_notice",
"medical_safety_alert",
"mock_spike_finder_document",
"product_safety_alert_report_recall",
"protected_food_drink_name",
"raib_report",
Expand Down Expand Up @@ -706,6 +707,9 @@
{
"$ref": "#/definitions/medical_safety_alert_metadata"
},
{
"$ref": "#/definitions/mock_spike_finder_document_metadata"
},
{
"$ref": "#/definitions/product_safety_alert_report_recall_metadata"
},
Expand Down Expand Up @@ -2712,6 +2716,32 @@
}
}
},
"mock_spike_finder_document_metadata": {
"type": "object",
"additionalProperties": false,
"properties": {
"bulk_published": {
"type": "boolean"
},
"mock_spike_finder_document_facet_one": {
"type": "array",
"items": {
"type": "string",
"enum": [
"facet_one_value_one",
"facet_one_value_two"
]
}
},
"mock_spike_finder_document_facet_two": {
"type": "string",
"enum": [
"facet_two_value_one",
"facet_two_value_two"
]
}
}
},
"nested_headers": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"marine_equipment_approved_recommendation",
"marine_notice",
"medical_safety_alert",
"mock_spike_finder_document",
"product_safety_alert_report_recall",
"protected_food_drink_name",
"raib_report",
Expand Down Expand Up @@ -794,6 +795,9 @@
{
"$ref": "#/definitions/medical_safety_alert_metadata"
},
{
"$ref": "#/definitions/mock_spike_finder_document_metadata"
},
{
"$ref": "#/definitions/product_safety_alert_report_recall_metadata"
},
Expand Down Expand Up @@ -2813,6 +2817,32 @@
}
}
},
"mock_spike_finder_document_metadata": {
"type": "object",
"additionalProperties": false,
"properties": {
"bulk_published": {
"type": "boolean"
},
"mock_spike_finder_document_facet_one": {
"type": "array",
"items": {
"type": "string",
"enum": [
"facet_one_value_one",
"facet_one_value_two"
]
}
},
"mock_spike_finder_document_facet_two": {
"type": "string",
"enum": [
"facet_two_value_one",
"facet_two_value_two"
]
}
}
},
"multiple_content_types": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"marine_equipment_approved_recommendation",
"marine_notice",
"medical_safety_alert",
"mock_spike_finder_document",
"product_safety_alert_report_recall",
"protected_food_drink_name",
"raib_report",
Expand Down Expand Up @@ -630,6 +631,9 @@
{
"$ref": "#/definitions/medical_safety_alert_metadata"
},
{
"$ref": "#/definitions/mock_spike_finder_document_metadata"
},
{
"$ref": "#/definitions/product_safety_alert_report_recall_metadata"
},
Expand Down Expand Up @@ -2510,6 +2514,32 @@
}
}
},
"mock_spike_finder_document_metadata": {
"type": "object",
"additionalProperties": false,
"properties": {
"bulk_published": {
"type": "boolean"
},
"mock_spike_finder_document_facet_one": {
"type": "array",
"items": {
"type": "string",
"enum": [
"facet_one_value_one",
"facet_one_value_two"
]
}
},
"mock_spike_finder_document_facet_two": {
"type": "string",
"enum": [
"facet_two_value_one",
"facet_two_value_two"
]
}
}
},
"multiple_content_types": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
{
"$ref": "#/definitions/medical_safety_alert_metadata",
},
{
"$ref": "#/definitions/mock_spike_finder_document_metadata",
},
{
"$ref": "#/definitions/product_safety_alert_report_recall_metadata",
},
Expand Down Expand Up @@ -2168,6 +2171,32 @@
},
},
},
mock_spike_finder_document_metadata: {
type: "object",
additionalProperties: false,
properties: {
bulk_published: {
type: "boolean",
},
mock_spike_finder_document_facet_one: {
type: "array",
items: {
type: "string",
enum: [
"facet_one_value_one",
"facet_one_value_two"
],
},
},
mock_spike_finder_document_facet_two: {
type: "string",
enum: [
"facet_two_value_one",
"facet_two_value_two"
]
},
},
},
product_safety_alert_report_recall_metadata: {
type: "object",
additionalProperties: false,
Expand Down
1 change: 1 addition & 0 deletions content_schemas/formats/specialist_document.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"marine_equipment_approved_recommendation",
"marine_notice",
"medical_safety_alert",
"mock_spike_finder_document",
"product_safety_alert_report_recall",
"protected_food_drink_name",
"raib_report",
Expand Down

0 comments on commit 1605832

Please sign in to comment.