Skip to content

Commit bbacb8c

Browse files
Remove description requirement
1 parent b4bc8d4 commit bbacb8c

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

client/src/types/generated/strapi.schemas.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ export interface Layer {
777777
config: unknown;
778778
createdAt?: string;
779779
createdBy?: LayerCreatedBy;
780-
description: string;
780+
description?: string;
781781
interaction_config?: unknown;
782782
legend: DefaultLegendComponent;
783783
locale?: string;
@@ -1027,7 +1027,7 @@ export interface LayerLocalizationResponse {
10271027

10281028
export type LayerRequestData = {
10291029
config: unknown;
1030-
description: string;
1030+
description?: string;
10311031
interaction_config?: unknown;
10321032
legend: DefaultLegendComponent;
10331033
locale?: string;
@@ -1060,7 +1060,7 @@ export const LayerLocalizationRequestType = {
10601060

10611061
export interface LayerLocalizationRequest {
10621062
config: unknown;
1063-
description: string;
1063+
description?: string;
10641064
interaction_config?: unknown;
10651065
legend: DefaultLegendComponent;
10661066
locale: string;

cms/src/api/layer/content-types/layer/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
},
4949
"type": "text",
50-
"required": true
50+
"required": false
5151
},
5252
"config": {
5353
"pluginOptions": {

cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"name": "Apache 2.0",
2222
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
2323
},
24-
"x-generation-date": "2024-06-19T10:06:08.278Z"
24+
"x-generation-date": "2024-06-19T10:15:10.215Z"
2525
},
2626
"servers": [
2727
{
@@ -1597,7 +1597,6 @@
15971597
"required": [
15981598
"title",
15991599
"type",
1600-
"description",
16011600
"config",
16021601
"legend",
16031602
"locale"
@@ -1641,7 +1640,6 @@
16411640
"required": [
16421641
"title",
16431642
"type",
1644-
"description",
16451643
"config",
16461644
"legend"
16471645
],
@@ -1795,7 +1793,6 @@
17951793
"required": [
17961794
"title",
17971795
"type",
1798-
"description",
17991796
"config",
18001797
"legend"
18011798
],

cms/types/generated/contentTypes.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ export interface ApiLayerLayer extends Schema.CollectionType {
561561
}> &
562562
Attribute.DefaultTo<'GEE'>;
563563
description: Attribute.Text &
564-
Attribute.Required &
565564
Attribute.SetPluginOptions<{
566565
i18n: {
567566
localized: true;

0 commit comments

Comments
 (0)