mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 16:45:05 +00:00
Allow to search in a defined item subset
This commit is contained in:
parent
5f2f20c8d7
commit
458fa7edd9
@ -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.
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user