From 6a11672f9b3a0b4b48843ff5e39daae1f0e5ea89 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 9 Feb 2020 18:28:46 +0100 Subject: Fail validation for entries with empty list fields --- tests/data/wrong/items/b9a832309c984ada9f267471660c1313.yaml | 1 + tests/data/wrong/settings.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/data/wrong') diff --git a/tests/data/wrong/items/b9a832309c984ada9f267471660c1313.yaml b/tests/data/wrong/items/b9a832309c984ada9f267471660c1313.yaml index b36cc4e..1fa0c74 100644 --- a/tests/data/wrong/items/b9a832309c984ada9f267471660c1313.yaml +++ b/tests/data/wrong/items/b9a832309c984ada9f267471660c1313.yaml @@ -5,3 +5,4 @@ position: 'somewhere' number: 'four' float: 'half and a bit' price: 'cheap' +things: diff --git a/tests/data/wrong/settings.yaml b/tests/data/wrong/settings.yaml index 243ab62..83a542b 100644 --- a/tests/data/wrong/settings.yaml +++ b/tests/data/wrong/settings.yaml @@ -1,5 +1,6 @@ name: "Lesana collection with certain errors" lang: 'somethingish' +entry_label: '{{ short_id }}: {{ name }} - {{ things | join("; ") }}' fields: - name: name type: string @@ -8,7 +9,7 @@ fields: type: text - name: position type: string - index: facet + index: field - name: number type: integer help: "Enter an integer here" @@ -18,3 +19,7 @@ fields: - name: price type: decimal help: 'prices are never float!' + - name: things + type: list + list: string + index: field -- cgit v1.2.3