From cec604f1dc42a32c170919ba944a6507ee8499ab Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 10 Jan 2025 14:01:21 +0100 Subject: [PATCH] feat(flow/vorab/result): required stepId --- .../form-flow-page/content-types/form-flow-page/schema.json | 2 +- src/api/result-page/content-types/result-page/schema.json | 3 ++- .../content-types/vorab-check-page/schema.json | 3 ++- types/generated/contentTypes.d.ts | 3 +++ 4 files changed, 8 insertions(+), 3 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 2dff139..9789465 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 @@ -135,7 +135,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 bbbfd04..bad11be 100644 --- a/src/api/result-page/content-types/result-page/schema.json +++ b/src/api/result-page/content-types/result-page/schema.json @@ -128,7 +128,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 69b831c..0574bca 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 @@ -91,7 +91,8 @@ "localized": false } }, - "type": "string" + "type": "string", + "required": true } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 7e7379c..5108c52 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -732,6 +732,7 @@ export interface ApiFormFlowPageFormFlowPage }>; publishedAt: Schema.Attribute.DateTime; stepId: Schema.Attribute.String & + Schema.Attribute.Required & Schema.Attribute.SetPluginOptions<{ i18n: { localized: false; @@ -955,6 +956,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; @@ -1092,6 +1094,7 @@ export interface ApiVorabCheckPageVorabCheckPage }>; publishedAt: Schema.Attribute.DateTime; stepId: Schema.Attribute.String & + Schema.Attribute.Required & Schema.Attribute.SetPluginOptions<{ i18n: { localized: false;