From 03c2c960d06ba9de1c58669047beff0de7eef1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 13 Nov 2024 17:30:54 +0100 Subject: [PATCH] refactor(CMS): Allow locations of level 0 --- cms/src/api/location/content-types/location/schema.json | 2 +- .../documentation/documentation/1.0.0/full_documentation.json | 2 +- cms/types/generated/contentTypes.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index 852b511..272e120 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -27,7 +27,7 @@ "level": { "type": "integer", "required": true, - "min": 1, + "min": 0, "max": 3 }, "code": { 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 177af9e..3689469 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 @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2024-11-13T16:21:06.223Z" + "x-generation-date": "2024-11-13T16:30:05.905Z" }, "x-strapi-config": { "path": "/documentation", diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index ea97afb..c86c1b6 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -950,7 +950,7 @@ export interface ApiLocationLocation extends Schema.CollectionType { Attribute.Required & Attribute.SetMinMax< { - min: 1; + min: 0; max: 3; }, number