Skip to content

Commit

Permalink
Add govspeak support for finder summary
Browse files Browse the repository at this point in the history
Introduce new schema structures for finder summaries. Specialist finder summaries are now converted to GovSpeak. In order to send GovSpeak the schema structure will have to match multiple content type definitions, but other finders such as licence finder will still be sending a string summary. We need to support both.
  • Loading branch information
kashifatcha authored and minhngocd committed Mar 6, 2025
1 parent 11421aa commit d60e101
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content_schemas/dist/formats/finder/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@
},
{
"type": "null"
},
{
"type": "string"
}
]
},
Expand Down
22 changes: 22 additions & 0 deletions content_schemas/dist/formats/finder/notification/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,9 @@
},
{
"type": "null"
},
{
"$ref": "#/definitions/multiple_content_types"
}
]
},
Expand Down Expand Up @@ -1023,6 +1026,25 @@
"zh-tw"
]
},
"multiple_content_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"content_type",
"content"
],
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"payload_version": {
"description": "Counter to indicate when the payload was generated",
"type": "integer"
Expand Down
22 changes: 22 additions & 0 deletions content_schemas/dist/formats/finder/publisher_v2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@
},
{
"type": "null"
},
{
"$ref": "#/definitions/multiple_content_types"
}
]
},
Expand Down Expand Up @@ -672,6 +675,25 @@
"zh-tw"
]
},
"multiple_content_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"content_type",
"content"
],
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"public_updated_at": {
"description": "When the content was last significantly changed (a major update). Shown to users. Automatically determined by the publishing-api, unless overridden by the publishing application.",
"type": "string",
Expand Down
3 changes: 3 additions & 0 deletions content_schemas/formats/shared/definitions/finder.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
{
type: "null",
},
{
"$ref": "#/definitions/multiple_content_types",
},
],
},
finder_beta: {
Expand Down

0 comments on commit d60e101

Please sign in to comment.