From 614c5c7d1ddbcaf5672e449f13cd1f7ea8da1960 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 17 Dec 2024 15:08:18 +0100 Subject: [PATCH] feat(flowPages): require stepId --- .../content-types/form-flow-page/schema.json | 2 +- .../result-page/content-types/result-page/schema.json | 10 +++------- .../content-types/vorab-check-page/schema.json | 3 ++- types/generated/contentTypes.d.ts | 3 +++ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/api/form-flow-page/content-types/form-flow-page/schema.json b/src/api/form-flow-page/content-types/form-flow-page/schema.json index 1aaf968..8567c64 100644 --- a/src/api/form-flow-page/content-types/form-flow-page/schema.json +++ b/src/api/form-flow-page/content-types/form-flow-page/schema.json @@ -124,7 +124,7 @@ } }, "type": "string", - "required": false + "required": true }, "backButtonLabel": { "pluginOptions": { diff --git a/src/api/result-page/content-types/result-page/schema.json b/src/api/result-page/content-types/result-page/schema.json index 5d02b91..fee6180 100644 --- a/src/api/result-page/content-types/result-page/schema.json +++ b/src/api/result-page/content-types/result-page/schema.json @@ -76,12 +76,7 @@ } }, "type": "enumeration", - "enum": [ - "error", - "success", - "warning", - "info" - ], + "enum": ["error", "success", "warning", "info"], "required": true, "default": "error" }, @@ -117,7 +112,8 @@ } }, "type": "string", - "unique": false + "unique": false, + "required": true } } } diff --git a/src/api/vorab-check-page/content-types/vorab-check-page/schema.json b/src/api/vorab-check-page/content-types/vorab-check-page/schema.json index 7d30054..9818ca9 100644 --- a/src/api/vorab-check-page/content-types/vorab-check-page/schema.json +++ b/src/api/vorab-check-page/content-types/vorab-check-page/schema.json @@ -80,7 +80,8 @@ "localized": false } }, - "type": "string" + "type": "string", + "required": true } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 7dcd1c4..5eb627a 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -725,6 +725,7 @@ export interface ApiFormFlowPageFormFlowPage }>; publishedAt: Schema.Attribute.DateTime; stepId: Schema.Attribute.String & + Schema.Attribute.Required & Schema.Attribute.SetPluginOptions<{ i18n: { localized: false; @@ -934,6 +935,7 @@ export interface ApiResultPageResultPage extends Struct.CollectionTypeSchema { Schema.Attribute.DefaultTo<'error'>; publishedAt: Schema.Attribute.DateTime; stepId: Schema.Attribute.String & + Schema.Attribute.Required & Schema.Attribute.SetPluginOptions<{ i18n: { localized: false; @@ -1064,6 +1066,7 @@ export interface ApiVorabCheckPageVorabCheckPage }>; publishedAt: Schema.Attribute.DateTime; stepId: Schema.Attribute.String & + Schema.Attribute.Required & Schema.Attribute.SetPluginOptions<{ i18n: { localized: false;