Skip to content

Commit

Permalink
Add search_id field to world_location schema
Browse files Browse the repository at this point in the history
This is required as part of the migration from Search API v1 to v2. This
field is currently pushed directly into Search API v1 by Whitehall,
however v2 uses only the official schemas and therefore isn't able to
access it.
  • Loading branch information
csutter committed Mar 21, 2024
1 parent 9c89879 commit c029ec6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@
"external_related_links": {
"$ref": "#/definitions/external_related_links"
},
"search_id": {
"description": "A human-readable identifier used for filtering within Finder Frontend.",
"type": "string"
},
"tags": {
"$ref": "#/definitions/tags"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@
"external_related_links": {
"$ref": "#/definitions/external_related_links"
},
"search_id": {
"description": "A human-readable identifier used for filtering within Finder Frontend.",
"type": "string"
},
"tags": {
"$ref": "#/definitions/tags"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
"external_related_links": {
"$ref": "#/definitions/external_related_links"
},
"search_id": {
"description": "A human-readable identifier used for filtering within Finder Frontend.",
"type": "string"
},
"tags": {
"$ref": "#/definitions/tags"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@
{
"content_id": "5e9f047a-7706-11e4-a3cb-005056011aef",
"title": "India",
"search_id": "india",
"schema_name": "world_location",
"locale": "en",
"analytics_identifier": "WL61",
Expand All @@ -558,6 +559,7 @@
{
"content_id": "5e9f047a-7706-11e4-a3cb-005056011aee",
"title": "Another location",
"search_id": "another-location",
"schema_name": "world_location",
"locale": "en",
"analytics_identifier": "WLexample",
Expand Down
4 changes: 4 additions & 0 deletions content_schemas/formats/world_location.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
external_related_links: {
"$ref": "#/definitions/external_related_links",
},
search_id: {
type: "string",
description: "A human-readable identifier used for filtering within Finder Frontend.",
},
tags: {
"$ref": "#/definitions/tags",
},
Expand Down

0 comments on commit c029ec6

Please sign in to comment.