Skip to content

Commit

Permalink
Remove description requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Jun 19, 2024
1 parent b4bc8d4 commit bbacb8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions client/src/types/generated/strapi.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ export interface Layer {
config: unknown;
createdAt?: string;
createdBy?: LayerCreatedBy;
description: string;
description?: string;
interaction_config?: unknown;
legend: DefaultLegendComponent;
locale?: string;
Expand Down Expand Up @@ -1027,7 +1027,7 @@ export interface LayerLocalizationResponse {

export type LayerRequestData = {
config: unknown;
description: string;
description?: string;
interaction_config?: unknown;
legend: DefaultLegendComponent;
locale?: string;
Expand Down Expand Up @@ -1060,7 +1060,7 @@ export const LayerLocalizationRequestType = {

export interface LayerLocalizationRequest {
config: unknown;
description: string;
description?: string;
interaction_config?: unknown;
legend: DefaultLegendComponent;
locale: string;
Expand Down
2 changes: 1 addition & 1 deletion cms/src/api/layer/content-types/layer/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
},
"type": "text",
"required": true
"required": false
},
"config": {
"pluginOptions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -1597,7 +1597,6 @@
"required": [
"title",
"type",
"description",
"config",
"legend",
"locale"
Expand Down Expand Up @@ -1641,7 +1640,6 @@
"required": [
"title",
"type",
"description",
"config",
"legend"
],
Expand Down Expand Up @@ -1795,7 +1793,6 @@
"required": [
"title",
"type",
"description",
"config",
"legend"
],
Expand Down
1 change: 0 additions & 1 deletion cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ export interface ApiLayerLayer extends Schema.CollectionType {
}> &
Attribute.DefaultTo<'GEE'>;
description: Attribute.Text &
Attribute.Required &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
Expand Down

0 comments on commit bbacb8c

Please sign in to comment.