From bbacb8c3affbaf5fe935106166d2069d1a5b357b Mon Sep 17 00:00:00 2001 From: barbara-chaves Date: Wed, 19 Jun 2024 12:16:13 +0200 Subject: [PATCH] Remove description requirement --- client/src/types/generated/strapi.schemas.ts | 6 +++--- cms/src/api/layer/content-types/layer/schema.json | 2 +- .../documentation/1.0.0/full_documentation.json | 5 +---- cms/types/generated/contentTypes.d.ts | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/client/src/types/generated/strapi.schemas.ts b/client/src/types/generated/strapi.schemas.ts index 3ee42d8..7b6dcdf 100644 --- a/client/src/types/generated/strapi.schemas.ts +++ b/client/src/types/generated/strapi.schemas.ts @@ -777,7 +777,7 @@ export interface Layer { config: unknown; createdAt?: string; createdBy?: LayerCreatedBy; - description: string; + description?: string; interaction_config?: unknown; legend: DefaultLegendComponent; locale?: string; @@ -1027,7 +1027,7 @@ export interface LayerLocalizationResponse { export type LayerRequestData = { config: unknown; - description: string; + description?: string; interaction_config?: unknown; legend: DefaultLegendComponent; locale?: string; @@ -1060,7 +1060,7 @@ export const LayerLocalizationRequestType = { export interface LayerLocalizationRequest { config: unknown; - description: string; + description?: string; interaction_config?: unknown; legend: DefaultLegendComponent; locale: string; diff --git a/cms/src/api/layer/content-types/layer/schema.json b/cms/src/api/layer/content-types/layer/schema.json index 830ba64..b2793c0 100644 --- a/cms/src/api/layer/content-types/layer/schema.json +++ b/cms/src/api/layer/content-types/layer/schema.json @@ -47,7 +47,7 @@ } }, "type": "text", - "required": true + "required": false }, "config": { "pluginOptions": { diff --git a/cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json index d2be161..aced934 100644 --- a/cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -21,7 +21,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2024-06-19T10:06:08.278Z" + "x-generation-date": "2024-06-19T10:15:10.215Z" }, "servers": [ { @@ -1597,7 +1597,6 @@ "required": [ "title", "type", - "description", "config", "legend", "locale" @@ -1641,7 +1640,6 @@ "required": [ "title", "type", - "description", "config", "legend" ], @@ -1795,7 +1793,6 @@ "required": [ "title", "type", - "description", "config", "legend" ], diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 92ecd9a..e821c4a 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -561,7 +561,6 @@ export interface ApiLayerLayer extends Schema.CollectionType { }> & Attribute.DefaultTo<'GEE'>; description: Attribute.Text & - Attribute.Required & Attribute.SetPluginOptions<{ i18n: { localized: true;