Commit 0111e4c8 authored by Jonas Waeber's avatar Jonas Waeber

Fix date container builder.

parent 329971b5
Pipeline #16848 passed with stages
in 5 minutes and 55 seconds
......@@ -35,12 +35,12 @@ class DateContainerBuilder(private val containedIds: List<String>) : IFieldBuild
}
val qualifier = when (val value = jsonObject["dateQualifier"]) {
is String -> listOf(value)
is JsonArray<*> -> value.mapNotNull { value as String? }
is JsonArray<*> -> value.mapNotNull { it as String? }
else -> emptyList()
}
val certainty = when (val value = jsonObject["certainty"]) {
is String -> listOf(value)
is JsonArray<*> -> value.mapNotNull { value as String? }
is JsonArray<*> -> value.mapNotNull { it as String? }
else -> emptyList()
}
val facetList = when (jsonObject["@type"] as String) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment