Skip to content

Commit

Permalink
Add additional world location information to /world content item
Browse files Browse the repository at this point in the history
We are replacing the Whitehall World Location API with the content item
for `/world`.

Therefore adding the additional information needed that is currently
supplied by the API.
  • Loading branch information
brucebolt committed Jul 13, 2023
1 parent 41398e8 commit cce11c9
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 1,242 deletions.
21 changes: 20 additions & 1 deletion content_schemas/dist/formats/world_index/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,23 +333,42 @@
"items": {
"type": "object",
"required": [
"active",
"content_id",
"name",
"slug",
"active"
"updated_at"
],
"additionalProperties": false,
"properties": {
"active": {
"description": "Whether the location is currently active",
"type": "boolean"
},
"analytics_identifier": {
"description": "The analytics identifier for the world location",
"type": "string"
},
"content_id": {
"description": "The content ID for the world location",
"$ref": "#/definitions/guid"
},
"iso2": {
"description": "The two-letter code for the world location in ISO2 format",
"type": "string"
},
"name": {
"description": "The name of the world location",
"type": "string"
},
"slug": {
"description": "The slug of the world location",
"type": "string"
},
"updated_at": {
"description": "The timestamp for the last update to the world location",
"type": "string",
"format": "date-time"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,23 +424,42 @@
"items": {
"type": "object",
"required": [
"active",
"content_id",
"name",
"slug",
"active"
"updated_at"
],
"additionalProperties": false,
"properties": {
"active": {
"description": "Whether the location is currently active",
"type": "boolean"
},
"analytics_identifier": {
"description": "The analytics identifier for the world location",
"type": "string"
},
"content_id": {
"description": "The content ID for the world location",
"$ref": "#/definitions/guid"
},
"iso2": {
"description": "The two-letter code for the world location in ISO2 format",
"type": "string"
},
"name": {
"description": "The name of the world location",
"type": "string"
},
"slug": {
"description": "The slug of the world location",
"type": "string"
},
"updated_at": {
"description": "The timestamp for the last update to the world location",
"type": "string",
"format": "date-time"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,23 +212,42 @@
"items": {
"type": "object",
"required": [
"active",
"content_id",
"name",
"slug",
"active"
"updated_at"
],
"additionalProperties": false,
"properties": {
"active": {
"description": "Whether the location is currently active",
"type": "boolean"
},
"analytics_identifier": {
"description": "The analytics identifier for the world location",
"type": "string"
},
"content_id": {
"description": "The content ID for the world location",
"$ref": "#/definitions/guid"
},
"iso2": {
"description": "The two-letter code for the world location in ISO2 format",
"type": "string"
},
"name": {
"description": "The name of the world location",
"type": "string"
},
"slug": {
"description": "The slug of the world location",
"type": "string"
},
"updated_at": {
"description": "The timestamp for the last update to the world location",
"type": "string",
"format": "date-time"
}
}
}
Expand Down
Loading

0 comments on commit cce11c9

Please sign in to comment.