diff --git a/src/models/layerMetadata/layerMetadata.ts b/src/models/layerMetadata/layerMetadata.ts index 3333b4d..f5777ff 100644 --- a/src/models/layerMetadata/layerMetadata.ts +++ b/src/models/layerMetadata/layerMetadata.ts @@ -981,7 +981,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.NUMBER, }) @graphql({ - nullable: false, //keep it true like in max? + nullable: true, }) @fieldConfig({ category: FieldCategory.MAIN, // is it required? diff --git a/src/models/polygonParts/polygonPartRecord.ts b/src/models/polygonParts/polygonPartRecord.ts index b54cc0b..d4eeb4e 100644 --- a/src/models/polygonParts/polygonPartRecord.ts +++ b/src/models/polygonParts/polygonPartRecord.ts @@ -23,7 +23,7 @@ interface IPropPYCSWMapping extends IPYCSWMapping { const POLYGON_PARTS_KEYS = keys(); const POLYGON_PARTS_SERVED_KEYS = - keys>(); + keys>(); @DBEntity({ table: 'records', @@ -79,6 +79,13 @@ export class PolygonPartRecord implements IPolygonPart, IOrmCatalog { @graphql() @fieldConfig({ category: FieldCategory.MAIN, + infoMsgCode: ['info-general-tooltip.required'], + validation: [ + { + errorMsgCode: 'validation-general.required', + required: true, + }, + ], }) //#endregion public sourceName!: string;