Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/openapi/core/layerMetadata.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if keywords should also be added to src/types/core/metadata.type.ts RasterLayerMetadata and let me know

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, fixed

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ components:
Description:
type: string
description: Layer's description
Keywords:
type: string
description: Layer's keywords
Footprint:
type: object
oneOf:
Expand Down
1 change: 1 addition & 0 deletions src/schemas/ingestion/metadata.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const baseRasterLayerMetadataSchema = z
classification: z
.string()
.regex(new RegExp(INGESTION_VALIDATIONS.classification.pattern), { message: 'Classification value must be between 0 and 100' }),
keywords: z.string().optional(),
})
.describe('baseRasterLayerMetadataSchema');

Expand Down
1 change: 1 addition & 0 deletions src/types/core/metadata.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type RasterLayerMetadata = {
minResolutionMeter: number;
productSubType?: string;
productBoundingBox?: string;
keywords?: string;
displayPath: string;
transparency: Transparency;
tileMimeFormat: TilesMimeFormat;
Expand Down
Loading