From a9fe2d03b22a0dd5760019f1325a7a86ebb07b85 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 3 Apr 2021 13:02:49 -0400 Subject: Update dictionary settings structure (#1587) * Update dictionary settings structure to use an array instead of an object * Update ensureDictionarySettings implementation * Remove some usage of ObjectPropertyAccessor --- ext/data/schemas/options-schema.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ext/data/schemas') diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index d829b392..ad6fb869 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -726,16 +726,21 @@ } }, "dictionaries": { - "type": "object", - "additionalProperties": { + "type": "array", + "items": { "type": "object", "required": [ + "name", "priority", "enabled", "allowSecondarySearches", "definitionsCollapsible" ], "properties": { + "name": { + "type": "string", + "default": "" + }, "priority": { "type": "number", "default": 0 -- cgit v1.2.3