From 9ffd6e967639e2376c89be95ede81812ddc2e4b4 Mon Sep 17 00:00:00 2001 From: Harriet H-W Date: Thu, 20 Feb 2025 15:28:27 +0000 Subject: [PATCH] change content block pension rate cadence previously we had the enums as 'weekly', 'monthly' etc, but we now want to use this field as if it was the exact copy content designers would be pasting into documents. --- .../formats/content_block_pension/notification/schema.json | 6 ++++-- .../formats/content_block_pension/publisher_v2/schema.json | 6 ++++-- .../content_block_pension/publisher_v2/example.json | 2 +- content_schemas/formats/content_block_pension.jsonnet | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/content_schemas/dist/formats/content_block_pension/notification/schema.json b/content_schemas/dist/formats/content_block_pension/notification/schema.json index 08d376089..97d924c65 100644 --- a/content_schemas/dist/formats/content_block_pension/notification/schema.json +++ b/content_schemas/dist/formats/content_block_pension/notification/schema.json @@ -408,8 +408,10 @@ "cadence": { "type": "string", "enum": [ - "weekly", - "monthly" + "a day", + "a week", + "a month", + "a year" ] }, "description": { diff --git a/content_schemas/dist/formats/content_block_pension/publisher_v2/schema.json b/content_schemas/dist/formats/content_block_pension/publisher_v2/schema.json index a047a7f9e..07bcd3b69 100644 --- a/content_schemas/dist/formats/content_block_pension/publisher_v2/schema.json +++ b/content_schemas/dist/formats/content_block_pension/publisher_v2/schema.json @@ -225,8 +225,10 @@ "cadence": { "type": "string", "enum": [ - "weekly", - "monthly" + "a day", + "a week", + "a month", + "a year" ] }, "description": { diff --git a/content_schemas/examples/content_block_pension/publisher_v2/example.json b/content_schemas/examples/content_block_pension/publisher_v2/example.json index efe5d5879..ed0a0b1f7 100644 --- a/content_schemas/examples/content_block_pension/publisher_v2/example.json +++ b/content_schemas/examples/content_block_pension/publisher_v2/example.json @@ -11,7 +11,7 @@ "rate-1": { "name": "Rate 1", "amount": "£221.20", - "cadence": "weekly", + "cadence": "a week", "description": "Your weekly pension amount" } } diff --git a/content_schemas/formats/content_block_pension.jsonnet b/content_schemas/formats/content_block_pension.jsonnet index 6aa324fd7..b44afe7de 100644 --- a/content_schemas/formats/content_block_pension.jsonnet +++ b/content_schemas/formats/content_block_pension.jsonnet @@ -18,7 +18,7 @@ local utils = import "shared/utils/content_block_utils.jsonnet"; }, cadence: { type: "string", - enum: ["weekly", "monthly"], + enum: ["a day", "a week", "a month", "a year"], }, description: { type: "string",