Skip to content

Commit

Permalink
fix: add keywords to editable fields(MAPCO-5673) (#244)
Browse files Browse the repository at this point in the history
* fix: add keywords to editable fields

* fix: name change
  • Loading branch information
RonitKissis authored Dec 5, 2024
1 parent ea31067 commit 7767628
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/models/rasterCatalog/rasterCatalogUpsertRequest.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Link } from '../common';
import { LayerMetadata } from '../layerMetadata';
import { LayerMetadata, PycswLayerCatalogRecord } from '../layerMetadata';

export type UpdateLayerMetadata = Partial<
Pick<LayerMetadata, 'classification' | 'productName' | 'productSubType' | 'description' | 'producerName' | 'region' | 'scale'>
export type EditLayerMetadata = Partial<
Pick<
PycswLayerCatalogRecord,
'classification' | 'productName' | 'productSubType' | 'description' | 'producerName' | 'region' | 'scale' | 'keywords'
>
>;

export interface IRasterCatalogUpsertRequestBody {
Expand All @@ -11,5 +14,5 @@ export interface IRasterCatalogUpsertRequestBody {
}

export interface IRasterCatalogEditRequestBody {
metadata: UpdateLayerMetadata;
metadata: EditLayerMetadata;
}
3 changes: 3 additions & 0 deletions src/yaml/editLayerMetadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ components:
type: integer
minimum: 0
maximum: 100000000
keywords:
type: string
description: The keywords of the product

0 comments on commit 7767628

Please sign in to comment.