Allow to search in a defined item subset

This commit is contained in:
Eike Kettner 2020-10-25 21:36:29 +01:00
parent 5f2f20c8d7
commit 458fa7edd9
2 changed files with 5 additions and 1 deletions

View File

@ -4483,6 +4483,8 @@ components:
dueDateUntil:
type: integer
format: date-time
itemSubset:
$ref: "#/components/schemas/IdList"
ItemLight:
description: |
An item with only a few important properties.

View File

@ -134,7 +134,9 @@ trait Conversions {
m.dueDateFrom,
m.dueDateUntil,
m.allNames,
None,
m.itemSubset
.map(_.ids.flatMap(i => Ident.fromString(i).toOption).toSet)
.filter(_.nonEmpty),
None
)