diff --git a/src/models/rasterCatalog/rasterCatalogUpsertRequest.ts b/src/models/rasterCatalog/rasterCatalogUpsertRequest.ts index 5a37ef2..f599d6b 100644 --- a/src/models/rasterCatalog/rasterCatalogUpsertRequest.ts +++ b/src/models/rasterCatalog/rasterCatalogUpsertRequest.ts @@ -1,8 +1,11 @@ import { Link } from '../common'; -import { LayerMetadata } from '../layerMetadata'; +import { LayerMetadata, PycswLayerCatalogRecord } from '../layerMetadata'; -export type UpdateLayerMetadata = Partial< - Pick +export type EditLayerMetadata = Partial< + Pick< + PycswLayerCatalogRecord, + 'classification' | 'productName' | 'productSubType' | 'description' | 'producerName' | 'region' | 'scale' | 'keywords' + > >; export interface IRasterCatalogUpsertRequestBody { @@ -11,5 +14,5 @@ export interface IRasterCatalogUpsertRequestBody { } export interface IRasterCatalogEditRequestBody { - metadata: UpdateLayerMetadata; + metadata: EditLayerMetadata; } diff --git a/src/yaml/editLayerMetadata.yaml b/src/yaml/editLayerMetadata.yaml index 0c13ec5..aebf6eb 100644 --- a/src/yaml/editLayerMetadata.yaml +++ b/src/yaml/editLayerMetadata.yaml @@ -46,3 +46,6 @@ components: type: integer minimum: 0 maximum: 100000000 + keywords: + type: string + description: The keywords of the product