Skip to content

Commit 3a8f78b

Browse files
authored
HTM-2136: Save keywords for layers (#1833)
2 parents b4d5fc3 + 111881b commit 3a8f78b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/org/tailormap/api/persistence/helper/GeoServiceHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ private GeoServiceLayer toGeoServiceLayer(Layer l, List<? extends Layer> layers)
276276
.collect(Collectors.toList()))
277277
.queryable(l.isQueryable())
278278
.abstractText(l.get_abstract())
279+
.keywords(l.getKeywords() == null ? Set.of() : Set.copyOf(List.of(l.getKeywords())))
279280
.children(l.getLayerChildren().stream()
280281
.map(layers::indexOf)
281282
.map(String::valueOf)

src/main/resources/openapi/persistence-schemas.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,11 @@ components:
504504
type: boolean
505505
abstractText:
506506
type: string
507+
keywords:
508+
type: array
509+
items:
510+
type: string
511+
uniqueItems: true
507512
children:
508513
type: array
509514
items:

0 commit comments

Comments
 (0)