From bca3289ef3e9e04126574bc9c685d085c8f66565 Mon Sep 17 00:00:00 2001 From: Alex Lebinson Date: Mon, 15 Nov 2021 15:35:10 +0200 Subject: [PATCH] fix: layer polygon parts part of ingested data (#102) --- src/models/layerMetadata/layerMetadata.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/models/layerMetadata/layerMetadata.ts b/src/models/layerMetadata/layerMetadata.ts index f629e31..3341872 100644 --- a/src/models/layerMetadata/layerMetadata.ts +++ b/src/models/layerMetadata/layerMetadata.ts @@ -873,9 +873,18 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { @graphql({ nullable: true, }) + @fieldConfig({ + category: FieldCategory.GEO_INFO, + isCreationEssential: true, + validation: [ + { + errorMsgCode: 'validation-field.layerPolygonParts.json', + json: true, + }, + ], + }) //#endregion public layerPolygonParts: GeoJSON | undefined = undefined; - //#endregion //#region RASTER: includedInBests @pycsw({