From a0b08ea1c8177d281026e7bc4bec65cddf8fceb7 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 3 Apr 2019 19:42:59 +0200 Subject: [PATCH] tiramisu-json format 1.0 --- test/data/boolean1.json | 2 +- test/data/boolean1_frozen.json | 2 +- test/data/choice1.json | 2 +- test/data/choice1_frozen.json | 2 +- test/data/choice1_leadership.json | 2 +- test/data/choice1_leadership_hidden.json | 2 +- test/data/choice1_leadership_value.json | 2 +- test/data/choice1_multi.json | 2 +- test/data/choice1_rename.json | 2 +- test/data/choice1_requires.json | 2 +- test/data/date1.json | 2 +- test/data/date1_frozen.json | 2 +- test/data/filename1.json | 2 +- test/data/hostname1.json | 2 +- test/data/ip1.json | 2 +- test/data/ip1_frozen.json | 2 +- test/data/mail1.json | 2 +- test/data/number1.json | 2 +- test/data/number1_frozen.json | 2 +- test/data/number1_mod_value.json | 2 +- test/data/number1_value.json | 2 +- test/data/subconfig_boolean1.json | 2 +- test/data/subconfig_boolean1_frozen.json | 2 +- test/data/subconfig_choice1.json | 2 +- test/data/subconfig_choice1_frozen.json | 2 +- test/data/subconfig_choice1_leadership.json | 2 +- .../subconfig_choice1_leadership_hidden.json | 2 +- .../subconfig_choice1_leadership_value.json | 2 +- test/data/subconfig_choice1_multi.json | 2 +- test/data/subconfig_choice1_rename.json | 2 +- test/data/subconfig_choice1_requires.json | 2 +- test/data/subconfig_date1.json | 2 +- test/data/subconfig_date1_frozen.json | 2 +- test/data/subconfig_filename1.json | 2 +- test/data/subconfig_hostname1.json | 2 +- test/data/subconfig_ip1.json | 2 +- test/data/subconfig_ip1_frozen.json | 2 +- test/data/subconfig_mail1.json | 2 +- test/data/subconfig_number1.json | 2 +- test/data/subconfig_number1_frozen.json | 2 +- test/data/subconfig_number1_mod_value.json | 2 +- test/data/subconfig_number1_value.json | 2 +- test/data/subconfig_unicode1.json | 2 +- test/data/subconfig_unicode1_frozen.json | 2 +- ...nfig_unicode1_leader_hidden_followers.json | 2 +- test/data/subconfig_unicode1_leadership.json | 2 +- ...fig_unicode1_leadership_default_value.json | 2 +- .../subconfig_unicode1_leadership_hidden.json | 2 +- ...nicode1_leadership_hidden_all_default.json | 2 +- ...bconfig_unicode1_leadership_not_equal.json | 2 +- ...ubconfig_unicode1_leadership_requires.json | 2 +- ...nfig_unicode1_leadership_requires_all.json | 2 +- ...unicode1_leadership_requires_follower.json | 2 +- ...e1_leadership_requires_follower_value.json | 2 +- ...nicode1_leadership_requires_followers.json | 2 +- ...g_unicode1_leadership_requires_leader.json | 2 +- ...ig_unicode1_leadership_requires_value.json | 2 +- ...ubconfig_unicode1_leadership_submulti.json | 2 +- .../subconfig_unicode1_leadership_value.json | 2 +- test/data/subconfig_unicode1_mandatory.json | 2 +- test/data/subconfig_unicode1_mod_value.json | 2 +- test/data/subconfig_unicode1_multi.json | 2 +- .../data/subconfig_unicode1_multi_hidden.json | 2 +- .../subconfig_unicode1_multi_mandatory.json | 2 +- .../subconfig_unicode1_multi_mandatory.prop | 2 +- .../subconfig_unicode1_multi_mod_value.json | 2 +- ...fig_unicode1_multi_not_equal_collapse.json | 2 +- .../subconfig_unicode1_multi_requires.json | 2 +- test/data/subconfig_unicode1_multi_value.json | 2 +- test/data/subconfig_unicode1_not_equal.json | 2 +- ...g_unicode1_optiondescription_requires.json | 2 +- test/data/subconfig_unicode1_requires.json | 2 +- .../subconfig_unicode1_simple_callback.json | 2 +- test/data/subconfig_unicode2.json | 2 +- test/data/subconfig_unicode2_copy.json | 2 +- test/data/subconfig_unicode2_multi_copy.json | 2 +- test/data/subconfig_unicode_hidden.json | 2 +- test/data/subconfig_unicode_property.json | 2 +- ...ig_unicode_property_optiondescription.json | 2 +- test/data/subconfig_username1.json | 2 +- test/data/subconfig_username1_frozen.json | 2 +- test/data/unicode1.json | 2 +- test/data/unicode1.updates1 | 2 +- test/data/unicode1_frozen.json | 2 +- .../unicode1_leader_hidden_followers.json | 2 +- test/data/unicode1_leadership.json | 2 +- .../unicode1_leadership_default_value.json | 2 +- test/data/unicode1_leadership_hidden.json | 2 +- ...nicode1_leadership_hidden_all_default.json | 2 +- test/data/unicode1_leadership_not_equal.json | 2 +- test/data/unicode1_leadership_requires.json | 2 +- .../unicode1_leadership_requires_all.json | 2 +- ...unicode1_leadership_requires_follower.json | 2 +- ...e1_leadership_requires_follower_value.json | 2 +- ...nicode1_leadership_requires_followers.json | 2 +- .../unicode1_leadership_requires_leader.json | 2 +- .../unicode1_leadership_requires_value.json | 2 +- test/data/unicode1_leadership_submulti.json | 2 +- test/data/unicode1_leadership_value.json | 2 +- test/data/unicode1_leadership_value.updates1 | 2 +- test/data/unicode1_leadership_value.updates2 | 2 +- test/data/unicode1_leadership_value.updates3 | 2 +- test/data/unicode1_leadership_value.updates4 | 2 +- test/data/unicode1_leadership_value.updates5 | 2 +- test/data/unicode1_leadership_value.updates6 | 2 +- test/data/unicode1_mandatory.json | 2 +- test/data/unicode1_mod_value.json | 2 +- test/data/unicode1_mod_value.updates1 | 2 +- test/data/unicode1_mod_value.updates2 | 2 +- test/data/unicode1_multi.json | 2 +- test/data/unicode1_multi.updates1 | 2 +- test/data/unicode1_multi_hidden.json | 2 +- test/data/unicode1_multi_mandatory.json | 2 +- test/data/unicode1_multi_mandatory.prop | 2 +- test/data/unicode1_multi_mod_value.json | 2 +- test/data/unicode1_multi_mod_value.updates1 | 2 +- test/data/unicode1_multi_mod_value.updates2 | 2 +- .../unicode1_multi_not_equal_collapse.json | 2 +- test/data/unicode1_multi_requires.json | 2 +- test/data/unicode1_multi_value.json | 2 +- test/data/unicode1_not_equal.json | 2 +- .../unicode1_optiondescription_requires.json | 2 +- test/data/unicode1_requires.json | 2 +- test/data/unicode1_simple_callback.json | 2 +- test/data/unicode2.json | 2 +- test/data/unicode2_copy.json | 2 +- test/data/unicode2_multi_copy.json | 2 +- test/data/unicode_hidden.json | 2 +- test/data/unicode_property.json | 2 +- .../unicode_property_optiondescription.json | 2 +- test/data/username1.json | 2 +- test/data/username1_frozen.json | 2 +- test/test_json.py | 8 + tiramisu_json_api/api.py | 191 ++++++++---------- 134 files changed, 221 insertions(+), 242 deletions(-) diff --git a/test/data/boolean1.json b/test/data/boolean1.json index d792631..83f9f8f 100644 --- a/test/data/boolean1.json +++ b/test/data/boolean1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/boolean1_frozen.json b/test/data/boolean1_frozen.json index 71d0d1a..a8e8448 100644 --- a/test/data/boolean1_frozen.json +++ b/test/data/boolean1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.boolean", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.boolean": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1.json b/test/data/choice1.json index 937eca9..60b933e 100644 --- a/test/data/choice1.json +++ b/test/data/choice1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_frozen.json b/test/data/choice1_frozen.json index 624e576..64a771a 100644 --- a/test/data/choice1_frozen.json +++ b/test/data/choice1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "readOnly": true}], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"readOnly": true}}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership.json b/test/data/choice1_leadership.json index 39167f6..a3371c3 100644 --- a/test/data/choice1_leadership.json +++ b/test/data/choice1_leadership.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_hidden.json b/test/data/choice1_leadership_hidden.json index 0bd07a8..77df40f 100644 --- a/test/data/choice1_leadership_hidden.json +++ b/test/data/choice1_leadership_hidden.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true}, {"key": "options.choice1.choice3", "display": false, "hidden": true}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}, "options.choice1.choice3": {"null": {"display": false, "hidden": true}}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_value.json b/test/data/choice1_leadership_value.json index ea0c6cd..8263190 100644 --- a/test/data/choice1_leadership_value.json +++ b/test/data/choice1_leadership_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true, "value": ["choice 2"], "owner": "user"}, {"key": "options.choice1.choice2", "index": 0, "value": "choice 4", "owner": "user"}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_multi.json b/test/data/choice1_multi.json index 221d7d0..819320d 100644 --- a/test/data/choice1_multi.json +++ b/test/data/choice1_multi.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "required": true}], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true}}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_rename.json b/test/data/choice1_rename.json index 937eca9..60b933e 100644 --- a/test/data/choice1_rename.json +++ b/test/data/choice1_rename.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_requires.json b/test/data/choice1_requires.json index 167e7c8..508b905 100644 --- a/test/data/choice1_requires.json +++ b/test/data/choice1_requires.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "required": true, "value": "hide", "owner": "default"}, {"key": "options.unicode2", "hidden": true}], "form": [{"key": "options.choice", "clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"hide": {"hide": ["options.unicode2"]}, "show": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true, "value": "hide", "owner": "default"}, "options.unicode2": {"hidden": true}}, "form": {"options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"hide": {"hide": ["options.unicode2"]}, "show": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1.json b/test/data/date1.json index 880c042..72bcff7 100644 --- a/test/data/date1.json +++ b/test/data/date1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1_frozen.json b/test/data/date1_frozen.json index c2c8240..6206870 100644 --- a/test/data/date1_frozen.json +++ b/test/data/date1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.date", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.date": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/filename1.json b/test/data/filename1.json index 197f1e6..4a3201a 100644 --- a/test/data/filename1.json +++ b/test/data/filename1.json @@ -1 +1 @@ -{"schema": {"usbpath": {"name": "usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": [{"key": "usbpath", "required": true}], "form": [{"key": "usbpath", "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"usbpath": {"name": "usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"usbpath": {"required": true}}, "form": {"usbpath": {"pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/hostname1.json b/test/data/hostname1.json index fd84021..d01acc0 100644 --- a/test/data/hostname1.json +++ b/test/data/hostname1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.hostname1": {"name": "options.hostname1", "type": "domainname", "title": "Domainname Description"}, "options.hostname2": {"name": "options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "options.hostname3": {"name": "options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "options.hostname4": {"name": "options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.hostname1", "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "options.hostname2", "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "options.hostname3", "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, {"key": "options.hostname4", "pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.hostname1": {"name": "options.hostname1", "type": "domainname", "title": "Domainname Description"}, "options.hostname2": {"name": "options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "options.hostname3": {"name": "options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "options.hostname4": {"name": "options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.hostname1": {"pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname2": {"pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname3": {"pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "options.hostname4": {"pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1.json b/test/data/ip1.json index 4141cda..d929250 100644 --- a/test/data/ip1.json +++ b/test/data/ip1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1_frozen.json b/test/data/ip1_frozen.json index 49c3288..a5f0640 100644 --- a/test/data/ip1_frozen.json +++ b/test/data/ip1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.ip", "readOnly": true}], "form": [{"key": "options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.ip": {"readOnly": true}}, "form": {"options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/mail1.json b/test/data/mail1.json index ae261fc..66cab21 100644 --- a/test/data/mail1.json +++ b/test/data/mail1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.mail": {"name": "options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.mail", "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.mail": {"name": "options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.mail": {"pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1.json b/test/data/number1.json index bfa75a8..155e2e9 100644 --- a/test/data/number1.json +++ b/test/data/number1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_frozen.json b/test/data/number1_frozen.json index 27e7f54..e680d56 100644 --- a/test/data/number1_frozen.json +++ b/test/data/number1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "readOnly": true}], "form": [{"key": "options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"readOnly": true}}, "form": {"options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_mod_value.json b/test/data/number1_mod_value.json index 4b74a4a..810a292 100644 --- a/test/data/number1_mod_value.json +++ b/test/data/number1_mod_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "value": 3, "owner": "user"}], "form": [{"key": "options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 3, "owner": "user"}}, "form": {"options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_value.json b/test/data/number1_value.json index 8e8d153..6cc4bce 100644 --- a/test/data/number1_value.json +++ b/test/data/number1_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "value": 0, "owner": "default"}], "form": [{"key": "options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 0, "owner": "default"}}, "form": {"options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.json b/test/data/subconfig_boolean1.json index 88c7764..c06cd49 100644 --- a/test/data/subconfig_boolean1.json +++ b/test/data/subconfig_boolean1.json @@ -1 +1 @@ -{"schema": {"boolean1.options": {"name": "boolean1.options", "properties": {"boolean1.options.boolean": {"name": "boolean1.options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"boolean1.options": {"name": "boolean1.options", "properties": {"boolean1.options.boolean": {"name": "boolean1.options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.json b/test/data/subconfig_boolean1_frozen.json index 98f4327..0c537bd 100644 --- a/test/data/subconfig_boolean1_frozen.json +++ b/test/data/subconfig_boolean1_frozen.json @@ -1 +1 @@ -{"schema": {"boolean1_frozen.options": {"name": "boolean1_frozen.options", "properties": {"boolean1_frozen.options.boolean": {"name": "boolean1_frozen.options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "boolean1_frozen.options.boolean", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"boolean1_frozen.options": {"name": "boolean1_frozen.options", "properties": {"boolean1_frozen.options.boolean": {"name": "boolean1_frozen.options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"boolean1_frozen.options.boolean": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1.json b/test/data/subconfig_choice1.json index c20fd69..39dc62c 100644 --- a/test/data/subconfig_choice1.json +++ b/test/data/subconfig_choice1.json @@ -1 +1 @@ -{"schema": {"choice1.options": {"name": "choice1.options", "properties": {"choice1.options.choice": {"name": "choice1.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "choice1.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1.options": {"name": "choice1.options", "properties": {"choice1.options.choice": {"name": "choice1.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"choice1.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.json b/test/data/subconfig_choice1_frozen.json index f9045d4..1251624 100644 --- a/test/data/subconfig_choice1_frozen.json +++ b/test/data/subconfig_choice1_frozen.json @@ -1 +1 @@ -{"schema": {"choice1_frozen.options": {"name": "choice1_frozen.options", "properties": {"choice1_frozen.options.choice": {"name": "choice1_frozen.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_frozen.options.choice", "readOnly": true}], "form": [{"key": "choice1_frozen.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_frozen.options": {"name": "choice1_frozen.options", "properties": {"choice1_frozen.options.choice": {"name": "choice1_frozen.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_frozen.options.choice": {"readOnly": true}}, "form": {"choice1_frozen.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership.json b/test/data/subconfig_choice1_leadership.json index 401200d..e8c83bd 100644 --- a/test/data/subconfig_choice1_leadership.json +++ b/test/data/subconfig_choice1_leadership.json @@ -1 +1 @@ -{"schema": {"choice1_leadership.options": {"name": "choice1_leadership.options", "properties": {"choice1_leadership.options.choice1": {"name": "choice1_leadership.options.choice1", "properties": {"choice1_leadership.options.choice1.choice1": {"name": "choice1_leadership.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership.options.choice1.choice2": {"name": "choice1_leadership.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership.options.choice1.choice3": {"name": "choice1_leadership.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "choice1_leadership.options.choice1.choice4": {"name": "choice1_leadership.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "choice1_leadership.options.choice1.choice1", "required": true}], "form": [{"key": "choice1_leadership.options.choice1.choice1", "type": "choice"}, {"key": "choice1_leadership.options.choice1.choice2", "type": "choice"}, {"key": "choice1_leadership.options.choice1.choice3", "type": "choice"}, {"key": "choice1_leadership.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_leadership.options": {"name": "choice1_leadership.options", "properties": {"choice1_leadership.options.choice1": {"name": "choice1_leadership.options.choice1", "properties": {"choice1_leadership.options.choice1.choice1": {"name": "choice1_leadership.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership.options.choice1.choice2": {"name": "choice1_leadership.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership.options.choice1.choice3": {"name": "choice1_leadership.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "choice1_leadership.options.choice1.choice4": {"name": "choice1_leadership.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership.options.choice1.choice1": {"required": true}}, "form": {"choice1_leadership.options.choice1.choice1": {"type": "choice"}, "choice1_leadership.options.choice1.choice2": {"type": "choice"}, "choice1_leadership.options.choice1.choice3": {"type": "choice"}, "choice1_leadership.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_hidden.json b/test/data/subconfig_choice1_leadership_hidden.json index 458c855..19779ca 100644 --- a/test/data/subconfig_choice1_leadership_hidden.json +++ b/test/data/subconfig_choice1_leadership_hidden.json @@ -1 +1 @@ -{"schema": {"choice1_leadership_hidden.options": {"name": "choice1_leadership_hidden.options", "properties": {"choice1_leadership_hidden.options.choice1": {"name": "choice1_leadership_hidden.options.choice1", "properties": {"choice1_leadership_hidden.options.choice1.choice1": {"name": "choice1_leadership_hidden.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership_hidden.options.choice1.choice2": {"name": "choice1_leadership_hidden.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership_hidden.options.choice1.choice3": {"name": "choice1_leadership_hidden.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "choice1_leadership_hidden.options.choice1.choice4": {"name": "choice1_leadership_hidden.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "choice1_leadership_hidden.options.choice1.choice1", "required": true}, {"key": "choice1_leadership_hidden.options.choice1.choice3", "display": false, "hidden": true}], "form": [{"key": "choice1_leadership_hidden.options.choice1.choice1", "type": "choice"}, {"key": "choice1_leadership_hidden.options.choice1.choice2", "type": "choice"}, {"key": "choice1_leadership_hidden.options.choice1.choice3", "type": "choice"}, {"key": "choice1_leadership_hidden.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_leadership_hidden.options": {"name": "choice1_leadership_hidden.options", "properties": {"choice1_leadership_hidden.options.choice1": {"name": "choice1_leadership_hidden.options.choice1", "properties": {"choice1_leadership_hidden.options.choice1.choice1": {"name": "choice1_leadership_hidden.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership_hidden.options.choice1.choice2": {"name": "choice1_leadership_hidden.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership_hidden.options.choice1.choice3": {"name": "choice1_leadership_hidden.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "choice1_leadership_hidden.options.choice1.choice4": {"name": "choice1_leadership_hidden.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_hidden.options.choice1.choice1": {"required": true}, "choice1_leadership_hidden.options.choice1.choice3": {"null": {"display": false, "hidden": true}}}, "form": {"choice1_leadership_hidden.options.choice1.choice1": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice2": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice3": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_value.json b/test/data/subconfig_choice1_leadership_value.json index 42760bd..2f7022e 100644 --- a/test/data/subconfig_choice1_leadership_value.json +++ b/test/data/subconfig_choice1_leadership_value.json @@ -1 +1 @@ -{"schema": {"choice1_leadership_value.options": {"name": "choice1_leadership_value.options", "properties": {"choice1_leadership_value.options.choice1": {"name": "choice1_leadership_value.options.choice1", "properties": {"choice1_leadership_value.options.choice1.choice1": {"name": "choice1_leadership_value.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "choice1_leadership_value.options.choice1.choice2": {"name": "choice1_leadership_value.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "choice1_leadership_value.options.choice1.choice3": {"name": "choice1_leadership_value.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "choice1_leadership_value.options.choice1.choice4": {"name": "choice1_leadership_value.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "choice1_leadership_value.options.choice1.choice1", "required": true, "value": ["choice 2"], "owner": "user"}, {"key": "choice1_leadership_value.options.choice1.choice2", "index": 0, "value": "choice 4", "owner": "user"}], "form": [{"key": "choice1_leadership_value.options.choice1.choice1", "type": "choice"}, {"key": "choice1_leadership_value.options.choice1.choice2", "type": "choice"}, {"key": "choice1_leadership_value.options.choice1.choice3", "type": "choice"}, {"key": "choice1_leadership_value.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_leadership_value.options": {"name": "choice1_leadership_value.options", "properties": {"choice1_leadership_value.options.choice1": {"name": "choice1_leadership_value.options.choice1", "properties": {"choice1_leadership_value.options.choice1.choice1": {"name": "choice1_leadership_value.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "choice1_leadership_value.options.choice1.choice2": {"name": "choice1_leadership_value.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "choice1_leadership_value.options.choice1.choice3": {"name": "choice1_leadership_value.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "choice1_leadership_value.options.choice1.choice4": {"name": "choice1_leadership_value.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_value.options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "choice1_leadership_value.options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "form": {"choice1_leadership_value.options.choice1.choice1": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice2": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice3": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.json b/test/data/subconfig_choice1_multi.json index 21e7589..acca9c6 100644 --- a/test/data/subconfig_choice1_multi.json +++ b/test/data/subconfig_choice1_multi.json @@ -1 +1 @@ -{"schema": {"choice1_multi.options": {"name": "choice1_multi.options", "properties": {"choice1_multi.options.choice": {"name": "choice1_multi.options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_multi.options.choice", "required": true}], "form": [{"key": "choice1_multi.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_multi.options": {"name": "choice1_multi.options", "properties": {"choice1_multi.options.choice": {"name": "choice1_multi.options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_multi.options.choice": {"required": true}}, "form": {"choice1_multi.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.json b/test/data/subconfig_choice1_rename.json index e4331cb..50e4881 100644 --- a/test/data/subconfig_choice1_rename.json +++ b/test/data/subconfig_choice1_rename.json @@ -1 +1 @@ -{"schema": {"choice1_rename.options": {"name": "choice1_rename.options", "properties": {"choice1_rename.options.choice": {"name": "choice1_rename.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "choice1_rename.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_rename.options": {"name": "choice1_rename.options", "properties": {"choice1_rename.options.choice": {"name": "choice1_rename.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"choice1_rename.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.json b/test/data/subconfig_choice1_requires.json index 6b27c04..ffa0271 100644 --- a/test/data/subconfig_choice1_requires.json +++ b/test/data/subconfig_choice1_requires.json @@ -1 +1 @@ -{"schema": {"choice1_requires.options": {"name": "choice1_requires.options", "properties": {"choice1_requires.options.choice": {"name": "choice1_requires.options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "choice1_requires.options.unicode2": {"name": "choice1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_requires.options.choice", "required": true, "value": "hide", "owner": "default"}, {"key": "choice1_requires.options.unicode2", "hidden": true}], "form": [{"key": "choice1_requires.options.choice", "clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"hide": {"hide": ["choice1_requires.options.unicode2"]}, "show": {"show": ["choice1_requires.options.unicode2"]}}}}, {"key": "choice1_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"choice1_requires.options": {"name": "choice1_requires.options", "properties": {"choice1_requires.options.choice": {"name": "choice1_requires.options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "choice1_requires.options.unicode2": {"name": "choice1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_requires.options.choice": {"required": true, "value": "hide", "owner": "default"}, "choice1_requires.options.unicode2": {"hidden": true}}, "form": {"choice1_requires.options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"hide": {"hide": ["choice1_requires.options.unicode2"]}, "show": {"show": ["choice1_requires.options.unicode2"]}}}}, "choice1_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1.json b/test/data/subconfig_date1.json index cc4a5f6..32ffcf3 100644 --- a/test/data/subconfig_date1.json +++ b/test/data/subconfig_date1.json @@ -1 +1 @@ -{"schema": {"date1.options": {"name": "date1.options", "properties": {"date1.options.date": {"name": "date1.options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"date1.options": {"name": "date1.options", "properties": {"date1.options.date": {"name": "date1.options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.json b/test/data/subconfig_date1_frozen.json index f09d5ac..12c3a0f 100644 --- a/test/data/subconfig_date1_frozen.json +++ b/test/data/subconfig_date1_frozen.json @@ -1 +1 @@ -{"schema": {"date1_frozen.options": {"name": "date1_frozen.options", "properties": {"date1_frozen.options.date": {"name": "date1_frozen.options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "date1_frozen.options.date", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"date1_frozen.options": {"name": "date1_frozen.options", "properties": {"date1_frozen.options.date": {"name": "date1_frozen.options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"date1_frozen.options.date": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_filename1.json b/test/data/subconfig_filename1.json index 04221e5..2dc2073 100644 --- a/test/data/subconfig_filename1.json +++ b/test/data/subconfig_filename1.json @@ -1 +1 @@ -{"schema": {"filename1.usbpath": {"name": "filename1.usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": [{"key": "filename1.usbpath", "required": true}], "form": [{"key": "filename1.usbpath", "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"filename1.usbpath": {"name": "filename1.usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"filename1.usbpath": {"required": true}}, "form": {"filename1.usbpath": {"pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.json b/test/data/subconfig_hostname1.json index 90916ec..aebfe61 100644 --- a/test/data/subconfig_hostname1.json +++ b/test/data/subconfig_hostname1.json @@ -1 +1 @@ -{"schema": {"hostname1.options": {"name": "hostname1.options", "properties": {"hostname1.options.hostname1": {"name": "hostname1.options.hostname1", "type": "domainname", "title": "Domainname Description"}, "hostname1.options.hostname2": {"name": "hostname1.options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "hostname1.options.hostname3": {"name": "hostname1.options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "hostname1.options.hostname4": {"name": "hostname1.options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "hostname1.options.hostname1", "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "hostname1.options.hostname2", "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "hostname1.options.hostname3", "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, {"key": "hostname1.options.hostname4", "pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"hostname1.options": {"name": "hostname1.options", "properties": {"hostname1.options.hostname1": {"name": "hostname1.options.hostname1", "type": "domainname", "title": "Domainname Description"}, "hostname1.options.hostname2": {"name": "hostname1.options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "hostname1.options.hostname3": {"name": "hostname1.options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "hostname1.options.hostname4": {"name": "hostname1.options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"hostname1.options.hostname1": {"pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname2": {"pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname3": {"pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "hostname1.options.hostname4": {"pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1.json b/test/data/subconfig_ip1.json index 4b21604..1f1d524 100644 --- a/test/data/subconfig_ip1.json +++ b/test/data/subconfig_ip1.json @@ -1 +1 @@ -{"schema": {"ip1.options": {"name": "ip1.options", "properties": {"ip1.options.ip": {"name": "ip1.options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "ip1.options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"ip1.options": {"name": "ip1.options", "properties": {"ip1.options.ip": {"name": "ip1.options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"ip1.options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.json b/test/data/subconfig_ip1_frozen.json index 5b65a62..18b11ad 100644 --- a/test/data/subconfig_ip1_frozen.json +++ b/test/data/subconfig_ip1_frozen.json @@ -1 +1 @@ -{"schema": {"ip1_frozen.options": {"name": "ip1_frozen.options", "properties": {"ip1_frozen.options.ip": {"name": "ip1_frozen.options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "ip1_frozen.options.ip", "readOnly": true}], "form": [{"key": "ip1_frozen.options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"ip1_frozen.options": {"name": "ip1_frozen.options", "properties": {"ip1_frozen.options.ip": {"name": "ip1_frozen.options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"ip1_frozen.options.ip": {"readOnly": true}}, "form": {"ip1_frozen.options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_mail1.json b/test/data/subconfig_mail1.json index 90f62ea..8d64d5a 100644 --- a/test/data/subconfig_mail1.json +++ b/test/data/subconfig_mail1.json @@ -1 +1 @@ -{"schema": {"mail1.options": {"name": "mail1.options", "properties": {"mail1.options.mail": {"name": "mail1.options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "mail1.options.mail", "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"mail1.options": {"name": "mail1.options", "properties": {"mail1.options.mail": {"name": "mail1.options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"mail1.options.mail": {"pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1.json b/test/data/subconfig_number1.json index b5b95e6..d390f75 100644 --- a/test/data/subconfig_number1.json +++ b/test/data/subconfig_number1.json @@ -1 +1 @@ -{"schema": {"number1.options": {"name": "number1.options", "properties": {"number1.options.integer": {"name": "number1.options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "number1.options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"number1.options": {"name": "number1.options", "properties": {"number1.options.integer": {"name": "number1.options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"number1.options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.json b/test/data/subconfig_number1_frozen.json index 4cd1bc1..e8b5398 100644 --- a/test/data/subconfig_number1_frozen.json +++ b/test/data/subconfig_number1_frozen.json @@ -1 +1 @@ -{"schema": {"number1_frozen.options": {"name": "number1_frozen.options", "properties": {"number1_frozen.options.integer": {"name": "number1_frozen.options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_frozen.options.integer", "readOnly": true}], "form": [{"key": "number1_frozen.options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"number1_frozen.options": {"name": "number1_frozen.options", "properties": {"number1_frozen.options.integer": {"name": "number1_frozen.options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_frozen.options.integer": {"readOnly": true}}, "form": {"number1_frozen.options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.json b/test/data/subconfig_number1_mod_value.json index 140e7f0..2cad967 100644 --- a/test/data/subconfig_number1_mod_value.json +++ b/test/data/subconfig_number1_mod_value.json @@ -1 +1 @@ -{"schema": {"number1_mod_value.options": {"name": "number1_mod_value.options", "properties": {"number1_mod_value.options.integer": {"name": "number1_mod_value.options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_mod_value.options.integer", "value": 3, "owner": "user"}], "form": [{"key": "number1_mod_value.options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"number1_mod_value.options": {"name": "number1_mod_value.options", "properties": {"number1_mod_value.options.integer": {"name": "number1_mod_value.options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_mod_value.options.integer": {"value": 3, "owner": "user"}}, "form": {"number1_mod_value.options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.json b/test/data/subconfig_number1_value.json index d84434e..a0ae28b 100644 --- a/test/data/subconfig_number1_value.json +++ b/test/data/subconfig_number1_value.json @@ -1 +1 @@ -{"schema": {"number1_value.options": {"name": "number1_value.options", "properties": {"number1_value.options.integer": {"name": "number1_value.options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_value.options.integer", "value": 0, "owner": "default"}], "form": [{"key": "number1_value.options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"number1_value.options": {"name": "number1_value.options", "properties": {"number1_value.options.integer": {"name": "number1_value.options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_value.options.integer": {"value": 0, "owner": "default"}}, "form": {"number1_value.options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.json b/test/data/subconfig_unicode1.json index a349400..fb4642f 100644 --- a/test/data/subconfig_unicode1.json +++ b/test/data/subconfig_unicode1.json @@ -1 +1 @@ -{"schema": {"unicode1.options": {"name": "unicode1.options", "properties": {"unicode1.options.unicode": {"name": "unicode1.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode1.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1.options": {"name": "unicode1.options", "properties": {"unicode1.options.unicode": {"name": "unicode1.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode1.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.json b/test/data/subconfig_unicode1_frozen.json index 06ea590..6e047db 100644 --- a/test/data/subconfig_unicode1_frozen.json +++ b/test/data/subconfig_unicode1_frozen.json @@ -1 +1 @@ -{"schema": {"unicode1_frozen.options": {"name": "unicode1_frozen.options", "properties": {"unicode1_frozen.options.unicode": {"name": "unicode1_frozen.options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_frozen.options.unicode", "readOnly": true}], "form": [{"key": "unicode1_frozen.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_frozen.options": {"name": "unicode1_frozen.options", "properties": {"unicode1_frozen.options.unicode": {"name": "unicode1_frozen.options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_frozen.options.unicode": {"readOnly": true}}, "form": {"unicode1_frozen.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.json b/test/data/subconfig_unicode1_leader_hidden_followers.json index 4b8bfd6..55328b9 100644 --- a/test/data/subconfig_unicode1_leader_hidden_followers.json +++ b/test/data/subconfig_unicode1_leader_hidden_followers.json @@ -1 +1 @@ -{"schema": {"unicode1_leader_hidden_followers.options": {"name": "unicode1_leader_hidden_followers.options", "properties": {"unicode1_leader_hidden_followers.options.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode", "properties": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leader_hidden_followers.options.unicode.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "unicode1_leader_hidden_followers.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leader_hidden_followers.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leader_hidden_followers.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_leader_hidden_followers.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leader_hidden_followers.options": {"name": "unicode1_leader_hidden_followers.options", "properties": {"unicode1_leader_hidden_followers.options.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode", "properties": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership.json b/test/data/subconfig_unicode1_leadership.json index 20dcc4e..3268211 100644 --- a/test/data/subconfig_unicode1_leadership.json +++ b/test/data/subconfig_unicode1_leadership.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership.options": {"name": "unicode1_leadership.options", "properties": {"unicode1_leadership.options.unicode": {"name": "unicode1_leadership.options.unicode", "properties": {"unicode1_leadership.options.unicode.unicode": {"name": "unicode1_leadership.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership.options.unicode.unicode1": {"name": "unicode1_leadership.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership.options.unicode.unicode2": {"name": "unicode1_leadership.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership.options.unicode.unicode3": {"name": "unicode1_leadership.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_leadership.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leadership.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_leadership.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership.options": {"name": "unicode1_leadership.options", "properties": {"unicode1_leadership.options.unicode": {"name": "unicode1_leadership.options.unicode", "properties": {"unicode1_leadership.options.unicode.unicode": {"name": "unicode1_leadership.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership.options.unicode.unicode1": {"name": "unicode1_leadership.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership.options.unicode.unicode2": {"name": "unicode1_leadership.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership.options.unicode.unicode3": {"name": "unicode1_leadership.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership.options.unicode.unicode": {"type": "input"}, "unicode1_leadership.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_default_value.json b/test/data/subconfig_unicode1_leadership_default_value.json index 4dbc35f..342fb18 100644 --- a/test/data/subconfig_unicode1_leadership_default_value.json +++ b/test/data/subconfig_unicode1_leadership_default_value.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_default_value.options": {"name": "unicode1_leadership_default_value.options", "properties": {"unicode1_leadership_default_value.options.unicode": {"name": "unicode1_leadership_default_value.options.unicode", "properties": {"unicode1_leadership_default_value.options.unicode.unicode": {"name": "unicode1_leadership_default_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"name": "unicode1_leadership_default_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"name": "unicode1_leadership_default_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"name": "unicode1_leadership_default_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_default_value.options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "default"}, {"key": "unicode1_leadership_default_value.options.unicode.unicode2", "index": 0, "value": "follower2", "owner": "default"}, {"key": "unicode1_leadership_default_value.options.unicode.unicode2", "index": 1, "value": "follower2", "owner": "default"}], "form": [{"key": "unicode1_leadership_default_value.options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "unicode1_leadership_default_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_default_value.options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "unicode1_leadership_default_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_default_value.options": {"name": "unicode1_leadership_default_value.options", "properties": {"unicode1_leadership_default_value.options.unicode": {"name": "unicode1_leadership_default_value.options.unicode", "properties": {"unicode1_leadership_default_value.options.unicode.unicode": {"name": "unicode1_leadership_default_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"name": "unicode1_leadership_default_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"name": "unicode1_leadership_default_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"name": "unicode1_leadership_default_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_default_value.options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "default"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"0": {"value": "follower2", "owner": "default"}, "1": {"value": "follower2", "owner": "default"}}}, "form": {"unicode1_leadership_default_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden.json b/test/data/subconfig_unicode1_leadership_hidden.json index 8691bcc..ebd77c8 100644 --- a/test/data/subconfig_unicode1_leadership_hidden.json +++ b/test/data/subconfig_unicode1_leadership_hidden.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_hidden.options": {"name": "unicode1_leadership_hidden.options", "properties": {"unicode1_leadership_hidden.options.unicode": {"name": "unicode1_leadership_hidden.options.unicode", "properties": {"unicode1_leadership_hidden.options.unicode.unicode": {"name": "unicode1_leadership_hidden.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"name": "unicode1_leadership_hidden.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"name": "unicode1_leadership_hidden.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"name": "unicode1_leadership_hidden.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_hidden.options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "user"}, {"key": "unicode1_leadership_hidden.options.unicode.unicode2", "display": false, "hidden": true, "index": 0, "value": "super", "owner": "user"}, {"key": "unicode1_leadership_hidden.options.unicode.unicode2", "display": false, "hidden": true, "index": 1}, {"key": "unicode1_leadership_hidden.options.unicode.unicode2", "display": false, "hidden": true}], "form": [{"key": "unicode1_leadership_hidden.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leadership_hidden.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_hidden.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_leadership_hidden.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_hidden.options": {"name": "unicode1_leadership_hidden.options", "properties": {"unicode1_leadership_hidden.options.unicode": {"name": "unicode1_leadership_hidden.options.unicode", "properties": {"unicode1_leadership_hidden.options.unicode.unicode": {"name": "unicode1_leadership_hidden.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"name": "unicode1_leadership_hidden.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"name": "unicode1_leadership_hidden.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"name": "unicode1_leadership_hidden.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden.options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false, "hidden": true}}}, "form": {"unicode1_leadership_hidden.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.json b/test/data/subconfig_unicode1_leadership_hidden_all_default.json index c197769..8ff3c6f 100644 --- a/test/data/subconfig_unicode1_leadership_hidden_all_default.json +++ b/test/data/subconfig_unicode1_leadership_hidden_all_default.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_hidden_all_default.options": {"name": "unicode1_leadership_hidden_all_default.options", "properties": {"unicode1_leadership_hidden_all_default.options.unicode": {"name": "unicode1_leadership_hidden_all_default.options.unicode", "type": "string", "title": "Unicode leader"}, "unicode1_leadership_hidden_all_default.options.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1", "properties": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_hidden_all_default.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_leadership_hidden_all_default.options.unicode", "type": "input"}, {"key": "unicode1_leadership_hidden_all_default.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_leadership_hidden_all_default.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_leadership_hidden_all_default.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_hidden_all_default.options": {"name": "unicode1_leadership_hidden_all_default.options", "properties": {"unicode1_leadership_hidden_all_default.options.unicode": {"name": "unicode1_leadership_hidden_all_default.options.unicode", "type": "string", "title": "Unicode leader"}, "unicode1_leadership_hidden_all_default.options.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1", "properties": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_hidden_all_default.options.unicode": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_not_equal.json b/test/data/subconfig_unicode1_leadership_not_equal.json index 2a26c27..247a12c 100644 --- a/test/data/subconfig_unicode1_leadership_not_equal.json +++ b/test/data/subconfig_unicode1_leadership_not_equal.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_not_equal.options": {"name": "unicode1_leadership_not_equal.options", "properties": {"unicode1_leadership_not_equal.options.unicode": {"name": "unicode1_leadership_not_equal.options.unicode", "properties": {"unicode1_leadership_not_equal.options.unicode.unicode": {"name": "unicode1_leadership_not_equal.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"name": "unicode1_leadership_not_equal.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"name": "unicode1_leadership_not_equal.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"name": "unicode1_leadership_not_equal.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_not_equal.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_leadership_not_equal.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leadership_not_equal.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_not_equal.options.unicode.unicode2", "type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode3"]}}, {"key": "unicode1_leadership_not_equal.options.unicode.unicode3", "type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode2"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_not_equal.options": {"name": "unicode1_leadership_not_equal.options", "properties": {"unicode1_leadership_not_equal.options.unicode": {"name": "unicode1_leadership_not_equal.options.unicode", "properties": {"unicode1_leadership_not_equal.options.unicode.unicode": {"name": "unicode1_leadership_not_equal.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"name": "unicode1_leadership_not_equal.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"name": "unicode1_leadership_not_equal.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"name": "unicode1_leadership_not_equal.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_not_equal.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_not_equal.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode3"]}}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode2"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires.json b/test/data/subconfig_unicode1_leadership_requires.json index 499fb93..eaf8b7e 100644 --- a/test/data/subconfig_unicode1_leadership_requires.json +++ b/test/data/subconfig_unicode1_leadership_requires.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires.options": {"name": "unicode1_leadership_requires.options", "properties": {"unicode1_leadership_requires.options.unicode": {"name": "unicode1_leadership_requires.options.unicode", "properties": {"unicode1_leadership_requires.options.unicode.unicode": {"name": "unicode1_leadership_requires.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires.options.unicode.unicode1": {"name": "unicode1_leadership_requires.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires.options.unicode.unicode2": {"name": "unicode1_leadership_requires.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires.options.unicode.unicode3": {"name": "unicode1_leadership_requires.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_requires.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_leadership_requires.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leadership_requires.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_requires.options.unicode.unicode2", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires.options.unicode.unicode3"]}}}}, {"key": "unicode1_leadership_requires.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires.options": {"name": "unicode1_leadership_requires.options", "properties": {"unicode1_leadership_requires.options.unicode": {"name": "unicode1_leadership_requires.options.unicode", "properties": {"unicode1_leadership_requires.options.unicode.unicode": {"name": "unicode1_leadership_requires.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires.options.unicode.unicode1": {"name": "unicode1_leadership_requires.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires.options.unicode.unicode2": {"name": "unicode1_leadership_requires.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires.options.unicode.unicode3": {"name": "unicode1_leadership_requires.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_requires.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_requires.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_requires.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_requires.options.unicode.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_all.json b/test/data/subconfig_unicode1_leadership_requires_all.json index 323cf4d..bb01329 100644 --- a/test/data/subconfig_unicode1_leadership_requires_all.json +++ b/test/data/subconfig_unicode1_leadership_requires_all.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_all.options": {"name": "unicode1_leadership_requires_all.options", "properties": {"unicode1_leadership_requires_all.options.unicode": {"name": "unicode1_leadership_requires_all.options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "unicode1_leadership_requires_all.options.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1", "properties": {"unicode1_leadership_requires_all.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_requires_all.options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "unicode1_leadership_requires_all.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_leadership_requires_all.options.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_all.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_all.options.unicode1"]}}}}, {"key": "unicode1_leadership_requires_all.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_leadership_requires_all.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_leadership_requires_all.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_all.options": {"name": "unicode1_leadership_requires_all.options", "properties": {"unicode1_leadership_requires_all.options.unicode": {"name": "unicode1_leadership_requires_all.options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "unicode1_leadership_requires_all.options.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1", "properties": {"unicode1_leadership_requires_all.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_all.options.unicode1": {"properties": ["hidden"], "hidden": true}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_all.options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_all.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_all.options.unicode1"]}}}}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.json b/test/data/subconfig_unicode1_leadership_requires_follower.json index 37b068c..fbf1943 100644 --- a/test/data/subconfig_unicode1_leadership_requires_follower.json +++ b/test/data/subconfig_unicode1_leadership_requires_follower.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_follower.options": {"name": "unicode1_leadership_requires_follower.options", "properties": {"unicode1_leadership_requires_follower.options.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1", "properties": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_requires_follower.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_leadership_requires_follower.options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}}}}, {"key": "unicode1_leadership_requires_follower.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_leadership_requires_follower.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_follower.options": {"name": "unicode1_leadership_requires_follower.options", "properties": {"unicode1_leadership_requires_follower.options.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1", "properties": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.json b/test/data/subconfig_unicode1_leadership_requires_follower_value.json index d3ca146..86bd2e4 100644 --- a/test/data/subconfig_unicode1_leadership_requires_follower_value.json +++ b/test/data/subconfig_unicode1_leadership_requires_follower_value.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_follower_value.options": {"name": "unicode1_leadership_requires_follower_value.options", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode1", "required": true, "value": ["test", "pas test"], "owner": "user"}, {"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode2", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "hidden": true, "index": 1}], "form": [{"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}}}}, {"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_follower_value.options": {"name": "unicode1_leadership_requires_follower_value.options", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"hidden": true}}}, "form": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.json b/test/data/subconfig_unicode1_leadership_requires_followers.json index 2ec6578..625c871 100644 --- a/test/data/subconfig_unicode1_leadership_requires_followers.json +++ b/test/data/subconfig_unicode1_leadership_requires_followers.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_followers.options": {"name": "unicode1_leadership_requires_followers.options", "properties": {"unicode1_leadership_requires_followers.options.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1", "properties": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_requires_followers.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_leadership_requires_followers.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_leadership_requires_followers.options.unicode1.unicode2", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}}}}, {"key": "unicode1_leadership_requires_followers.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_followers.options": {"name": "unicode1_leadership_requires_followers.options", "properties": {"unicode1_leadership_requires_followers.options.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1", "properties": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.json b/test/data/subconfig_unicode1_leadership_requires_leader.json index 5a45379..5261bcf 100644 --- a/test/data/subconfig_unicode1_leadership_requires_leader.json +++ b/test/data/subconfig_unicode1_leadership_requires_leader.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_leader.options": {"name": "unicode1_leadership_requires_leader.options", "properties": {"unicode1_leadership_requires_leader.options.unicode": {"name": "unicode1_leadership_requires_leader.options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "unicode1_leadership_requires_leader.options.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1", "properties": {"unicode1_leadership_requires_leader.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_leadership_requires_leader.options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "unicode1_leadership_requires_leader.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_leadership_requires_leader.options.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_leader.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_leader.options.unicode1"]}}}}, {"key": "unicode1_leadership_requires_leader.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_leadership_requires_leader.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_leadership_requires_leader.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_leader.options": {"name": "unicode1_leadership_requires_leader.options", "properties": {"unicode1_leadership_requires_leader.options.unicode": {"name": "unicode1_leadership_requires_leader.options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "unicode1_leadership_requires_leader.options.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1", "properties": {"unicode1_leadership_requires_leader.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_leader.options.unicode1": {"properties": ["hidden"], "hidden": true}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_leader.options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_leader.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_leader.options.unicode1"]}}}}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_value.json b/test/data/subconfig_unicode1_leadership_requires_value.json index 266dc69..e43ea7f 100644 --- a/test/data/subconfig_unicode1_leadership_requires_value.json +++ b/test/data/subconfig_unicode1_leadership_requires_value.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_requires_value.options": {"name": "unicode1_leadership_requires_value.options", "properties": {"unicode1_leadership_requires_value.options.unicode": {"name": "unicode1_leadership_requires_value.options.unicode", "properties": {"unicode1_leadership_requires_value.options.unicode.unicode": {"name": "unicode1_leadership_requires_value.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"name": "unicode1_leadership_requires_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"name": "unicode1_leadership_requires_value.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"name": "unicode1_leadership_requires_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_requires_value.options.unicode.unicode", "required": true, "value": ["test", "val2"], "owner": "user"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode3", "hidden": true, "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "unicode1_leadership_requires_value.options.unicode.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}}}}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_leadership_requires_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_requires_value.options": {"name": "unicode1_leadership_requires_value.options", "properties": {"unicode1_leadership_requires_value.options.unicode": {"name": "unicode1_leadership_requires_value.options.unicode", "properties": {"unicode1_leadership_requires_value.options.unicode.unicode": {"name": "unicode1_leadership_requires_value.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"name": "unicode1_leadership_requires_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"name": "unicode1_leadership_requires_value.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"name": "unicode1_leadership_requires_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_requires_value.options.unicode.unicode": {"required": true, "value": ["test", "val2"], "owner": "user"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"1": {"hidden": true, "value": "super", "owner": "user"}}}, "form": {"unicode1_leadership_requires_value.options.unicode.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_submulti.json b/test/data/subconfig_unicode1_leadership_submulti.json index 7e64d25..1e663cc 100644 --- a/test/data/subconfig_unicode1_leadership_submulti.json +++ b/test/data/subconfig_unicode1_leadership_submulti.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_submulti.options": {"name": "unicode1_leadership_submulti.options", "properties": {"unicode1_leadership_submulti.options.unicode": {"name": "unicode1_leadership_submulti.options.unicode", "properties": {"unicode1_leadership_submulti.options.unicode.unicode": {"name": "unicode1_leadership_submulti.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"name": "unicode1_leadership_submulti.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"name": "unicode1_leadership_submulti.options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"name": "unicode1_leadership_submulti.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_submulti.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_leadership_submulti.options.unicode.unicode", "type": "input"}, {"key": "unicode1_leadership_submulti.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_submulti.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_leadership_submulti.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_submulti.options": {"name": "unicode1_leadership_submulti.options", "properties": {"unicode1_leadership_submulti.options.unicode": {"name": "unicode1_leadership_submulti.options.unicode", "properties": {"unicode1_leadership_submulti.options.unicode.unicode": {"name": "unicode1_leadership_submulti.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"name": "unicode1_leadership_submulti.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"name": "unicode1_leadership_submulti.options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"name": "unicode1_leadership_submulti.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_submulti.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_submulti.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_value.json b/test/data/subconfig_unicode1_leadership_value.json index 1ad0aba..0229408 100644 --- a/test/data/subconfig_unicode1_leadership_value.json +++ b/test/data/subconfig_unicode1_leadership_value.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_value.options": {"name": "unicode1_leadership_value.options", "properties": {"unicode1_leadership_value.options.unicode": {"name": "unicode1_leadership_value.options.unicode", "properties": {"unicode1_leadership_value.options.unicode.unicode": {"name": "unicode1_leadership_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_value.options.unicode.unicode1": {"name": "unicode1_leadership_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_value.options.unicode.unicode2": {"name": "unicode1_leadership_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_value.options.unicode.unicode3": {"name": "unicode1_leadership_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "unicode1_leadership_value.options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "unicode1_leadership_value.options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_leadership_value.options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "unicode1_leadership_value.options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "unicode1_leadership_value.options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "unicode1_leadership_value.options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "unicode1_leadership_value.options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "unicode1_leadership_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_leadership_value.options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "unicode1_leadership_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_leadership_value.options": {"name": "unicode1_leadership_value.options", "properties": {"unicode1_leadership_value.options.unicode": {"name": "unicode1_leadership_value.options.unicode", "properties": {"unicode1_leadership_value.options.unicode.unicode": {"name": "unicode1_leadership_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_value.options.unicode.unicode1": {"name": "unicode1_leadership_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_value.options.unicode.unicode2": {"name": "unicode1_leadership_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_value.options.unicode.unicode3": {"name": "unicode1_leadership_value.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_value.options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "unicode1_leadership_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "form": {"unicode1_leadership_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.json b/test/data/subconfig_unicode1_mandatory.json index 9a898fd..0e324d5 100644 --- a/test/data/subconfig_unicode1_mandatory.json +++ b/test/data/subconfig_unicode1_mandatory.json @@ -1 +1 @@ -{"schema": {"unicode1_mandatory.options": {"name": "unicode1_mandatory.options", "properties": {"unicode1_mandatory.options.unicode": {"name": "unicode1_mandatory.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_mandatory.options.unicode", "required": true}], "form": [{"key": "unicode1_mandatory.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_mandatory.options": {"name": "unicode1_mandatory.options", "properties": {"unicode1_mandatory.options.unicode": {"name": "unicode1_mandatory.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mandatory.options.unicode": {"required": true}}, "form": {"unicode1_mandatory.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.json b/test/data/subconfig_unicode1_mod_value.json index 7957ac1..d491616 100644 --- a/test/data/subconfig_unicode1_mod_value.json +++ b/test/data/subconfig_unicode1_mod_value.json @@ -1 +1 @@ -{"schema": {"unicode1_mod_value.options": {"name": "unicode1_mod_value.options", "properties": {"unicode1_mod_value.options.unicode": {"name": "unicode1_mod_value.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_mod_value.options.unicode", "value": "a", "owner": "user"}], "form": [{"key": "unicode1_mod_value.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_mod_value.options": {"name": "unicode1_mod_value.options", "properties": {"unicode1_mod_value.options.unicode": {"name": "unicode1_mod_value.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mod_value.options.unicode": {"value": "a", "owner": "user"}}, "form": {"unicode1_mod_value.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.json b/test/data/subconfig_unicode1_multi.json index b9602cc..fe97bcb 100644 --- a/test/data/subconfig_unicode1_multi.json +++ b/test/data/subconfig_unicode1_multi.json @@ -1 +1 @@ -{"schema": {"unicode1_multi.options": {"name": "unicode1_multi.options", "properties": {"unicode1_multi.options.unicode": {"name": "unicode1_multi.options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi.options.unicode", "required": true}], "form": [{"key": "unicode1_multi.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi.options": {"name": "unicode1_multi.options", "properties": {"unicode1_multi.options.unicode": {"name": "unicode1_multi.options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi.options.unicode": {"required": true}}, "form": {"unicode1_multi.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.json b/test/data/subconfig_unicode1_multi_hidden.json index 6719180..7d89864 100644 --- a/test/data/subconfig_unicode1_multi_hidden.json +++ b/test/data/subconfig_unicode1_multi_hidden.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_hidden.options": {"name": "unicode1_multi_hidden.options", "properties": {"unicode1_multi_hidden.options.unicode": {"name": "unicode1_multi_hidden.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_hidden.options.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "unicode1_multi_hidden.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_hidden.options": {"name": "unicode1_multi_hidden.options", "properties": {"unicode1_multi_hidden.options.unicode": {"name": "unicode1_multi_hidden.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_hidden.options.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"unicode1_multi_hidden.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.json b/test/data/subconfig_unicode1_multi_mandatory.json index a0c301f..1a641e4 100644 --- a/test/data/subconfig_unicode1_multi_mandatory.json +++ b/test/data/subconfig_unicode1_multi_mandatory.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_mandatory.options": {"name": "unicode1_multi_mandatory.options", "properties": {"unicode1_multi_mandatory.options.unicode": {"name": "unicode1_multi_mandatory.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_mandatory.options.unicode", "required": true, "needs_len": true}], "form": [{"key": "unicode1_multi_mandatory.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_mandatory.options": {"name": "unicode1_multi_mandatory.options", "properties": {"unicode1_multi_mandatory.options.unicode": {"name": "unicode1_multi_mandatory.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mandatory.options.unicode": {"required": true, "needs_len": true}}, "form": {"unicode1_multi_mandatory.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.prop b/test/data/subconfig_unicode1_multi_mandatory.prop index 8d1e0a6..95c9f6b 100644 --- a/test/data/subconfig_unicode1_multi_mandatory.prop +++ b/test/data/subconfig_unicode1_multi_mandatory.prop @@ -1 +1 @@ -{"unicode1_multi_mandatory.options.unicode": {"null": ["mandatory", "empty"]}} \ No newline at end of file +{"unicode1_multi_mandatory.options.unicode": {"null": ["empty", "mandatory"]}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.json b/test/data/subconfig_unicode1_multi_mod_value.json index 840ebb6..1508d89 100644 --- a/test/data/subconfig_unicode1_multi_mod_value.json +++ b/test/data/subconfig_unicode1_multi_mod_value.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_mod_value.options": {"name": "unicode1_multi_mod_value.options", "properties": {"unicode1_multi_mod_value.options.unicode": {"name": "unicode1_multi_mod_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_mod_value.options.unicode", "required": true, "value": ["c", "d", "e"], "owner": "user"}], "form": [{"key": "unicode1_multi_mod_value.options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_mod_value.options": {"name": "unicode1_multi_mod_value.options", "properties": {"unicode1_multi_mod_value.options.unicode": {"name": "unicode1_multi_mod_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mod_value.options.unicode": {"required": true, "value": ["c", "d", "e"], "owner": "user"}}, "form": {"unicode1_multi_mod_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.json b/test/data/subconfig_unicode1_multi_not_equal_collapse.json index d9ce19e..5a299f3 100644 --- a/test/data/subconfig_unicode1_multi_not_equal_collapse.json +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"name": "unicode1_multi_not_equal_collapse.descr1", "properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "unicode1_multi_not_equal_collapse.descr2": {"name": "unicode1_multi_not_equal_collapse.descr2", "properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"name": "unicode1_multi_not_equal_collapse.descr3", "properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": [{"key": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "required": true}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2", "value": "a", "owner": "default"}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "required": true, "value": ["a", "b"], "owner": "default"}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "required": true}], "form": [{"key": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, {"key": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2", "clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr2.unicode2"]}}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"name": "unicode1_multi_not_equal_collapse.descr1", "properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "unicode1_multi_not_equal_collapse.descr2": {"name": "unicode1_multi_not_equal_collapse.descr2", "properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"name": "unicode1_multi_not_equal_collapse.descr3", "properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"required": true}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"value": "a", "owner": "default"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"required": true, "value": ["a", "b"], "owner": "default"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"required": true}}, "form": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, "unicode1_multi_not_equal_collapse.descr3.unicode3": {"type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr2.unicode2"]}}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.json b/test/data/subconfig_unicode1_multi_requires.json index 99c2e17..eb93672 100644 --- a/test/data/subconfig_unicode1_multi_requires.json +++ b/test/data/subconfig_unicode1_multi_requires.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_requires.options": {"name": "unicode1_multi_requires.options", "properties": {"unicode1_multi_requires.options.unicode1": {"name": "unicode1_multi_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_multi_requires.options.unicode2": {"name": "unicode1_multi_requires.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_requires.options.unicode2", "required": true, "hidden": true}], "form": [{"key": "unicode1_multi_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_multi_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_multi_requires.options.unicode2"]}}}}, {"key": "unicode1_multi_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_requires.options": {"name": "unicode1_multi_requires.options", "properties": {"unicode1_multi_requires.options.unicode1": {"name": "unicode1_multi_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_multi_requires.options.unicode2": {"name": "unicode1_multi_requires.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_requires.options.unicode2": {"required": true, "hidden": true}}, "form": {"unicode1_multi_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_multi_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_multi_requires.options.unicode2"]}}}}, "unicode1_multi_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.json b/test/data/subconfig_unicode1_multi_value.json index 04ea41e..c9c56a4 100644 --- a/test/data/subconfig_unicode1_multi_value.json +++ b/test/data/subconfig_unicode1_multi_value.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_value.options": {"name": "unicode1_multi_value.options", "properties": {"unicode1_multi_value.options.unicode": {"name": "unicode1_multi_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_value.options.unicode", "required": true, "value": ["a", "b"], "owner": "default"}], "form": [{"key": "unicode1_multi_value.options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_multi_value.options": {"name": "unicode1_multi_value.options", "properties": {"unicode1_multi_value.options.unicode": {"name": "unicode1_multi_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_value.options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "form": {"unicode1_multi_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.json b/test/data/subconfig_unicode1_not_equal.json index d1aaba2..714aa57 100644 --- a/test/data/subconfig_unicode1_not_equal.json +++ b/test/data/subconfig_unicode1_not_equal.json @@ -1 +1 @@ -{"schema": {"unicode1_not_equal.options": {"name": "unicode1_not_equal.options", "properties": {"unicode1_not_equal.options.unicode1": {"name": "unicode1_not_equal.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode1_not_equal.options.unicode2": {"name": "unicode1_not_equal.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode1_not_equal.options.unicode1", "type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode2"]}}, {"key": "unicode1_not_equal.options.unicode2", "type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode1"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_not_equal.options": {"name": "unicode1_not_equal.options", "properties": {"unicode1_not_equal.options.unicode1": {"name": "unicode1_not_equal.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode1_not_equal.options.unicode2": {"name": "unicode1_not_equal.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode1_not_equal.options.unicode1": {"type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode2"]}}, "unicode1_not_equal.options.unicode2": {"type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode1"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.json b/test/data/subconfig_unicode1_optiondescription_requires.json index 42dd85c..c66e752 100644 --- a/test/data/subconfig_unicode1_optiondescription_requires.json +++ b/test/data/subconfig_unicode1_optiondescription_requires.json @@ -1 +1 @@ -{"schema": {"unicode1_optiondescription_requires.options": {"name": "unicode1_optiondescription_requires.options", "properties": {"unicode1_optiondescription_requires.options.unicode1": {"name": "unicode1_optiondescription_requires.options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1_optiondescription_requires.unicode1": {"name": "unicode1_optiondescription_requires.unicode1", "properties": {"unicode1_optiondescription_requires.unicode1.unicode2": {"name": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"name": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": [{"key": "unicode1_optiondescription_requires.unicode1", "properties": ["hidden"], "hidden": true}], "form": [{"key": "unicode1_optiondescription_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_optiondescription_requires.unicode1"]}, "expected": {"test": {"show": ["unicode1_optiondescription_requires.unicode1"]}}}}, {"key": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "input"}, {"key": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_optiondescription_requires.options": {"name": "unicode1_optiondescription_requires.options", "properties": {"unicode1_optiondescription_requires.options.unicode1": {"name": "unicode1_optiondescription_requires.options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1_optiondescription_requires.unicode1": {"name": "unicode1_optiondescription_requires.unicode1", "properties": {"unicode1_optiondescription_requires.unicode1.unicode2": {"name": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"name": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1_optiondescription_requires.unicode1": {"properties": ["hidden"], "hidden": true}}, "form": {"unicode1_optiondescription_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_optiondescription_requires.unicode1"]}, "expected": {"test": {"show": ["unicode1_optiondescription_requires.unicode1"]}}}}, "unicode1_optiondescription_requires.unicode1.unicode2": {"type": "input"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.json b/test/data/subconfig_unicode1_requires.json index 5edf3f7..4127788 100644 --- a/test/data/subconfig_unicode1_requires.json +++ b/test/data/subconfig_unicode1_requires.json @@ -1 +1 @@ -{"schema": {"unicode1_requires.options": {"name": "unicode1_requires.options", "properties": {"unicode1_requires.options.unicode1": {"name": "unicode1_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_requires.options.unicode2": {"name": "unicode1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_requires.options.unicode2", "hidden": true}], "form": [{"key": "unicode1_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_requires.options.unicode2"]}}}}, {"key": "unicode1_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_requires.options": {"name": "unicode1_requires.options", "properties": {"unicode1_requires.options.unicode1": {"name": "unicode1_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_requires.options.unicode2": {"name": "unicode1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_requires.options.unicode2": {"hidden": true}}, "form": {"unicode1_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_requires.options.unicode2"]}}}}, "unicode1_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.json b/test/data/subconfig_unicode1_simple_callback.json index 03a0514..4e52a42 100644 --- a/test/data/subconfig_unicode1_simple_callback.json +++ b/test/data/subconfig_unicode1_simple_callback.json @@ -1 +1 @@ -{"schema": {"unicode1_simple_callback.options": {"name": "unicode1_simple_callback.options", "properties": {"unicode1_simple_callback.options.unicode1": {"name": "unicode1_simple_callback.options.unicode1", "type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_simple_callback.options.unicode1", "value": "word", "owner": "default"}], "form": [{"key": "unicode1_simple_callback.options.unicode1", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode1_simple_callback.options": {"name": "unicode1_simple_callback.options", "properties": {"unicode1_simple_callback.options.unicode1": {"name": "unicode1_simple_callback.options.unicode1", "type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_simple_callback.options.unicode1": {"value": "word", "owner": "default"}}, "form": {"unicode1_simple_callback.options.unicode1": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.json b/test/data/subconfig_unicode2.json index 8e69e9b..b2e9101 100644 --- a/test/data/subconfig_unicode2.json +++ b/test/data/subconfig_unicode2.json @@ -1 +1 @@ -{"schema": {"unicode2.options": {"name": "unicode2.options", "properties": {"unicode2.options.unicode1": {"name": "unicode2.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2.options.unicode2": {"name": "unicode2.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode2.options.unicode1", "type": "input"}, {"key": "unicode2.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode2.options": {"name": "unicode2.options", "properties": {"unicode2.options.unicode1": {"name": "unicode2.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2.options.unicode2": {"name": "unicode2.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode2.options.unicode1": {"type": "input"}, "unicode2.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.json b/test/data/subconfig_unicode2_copy.json index a0036dc..3aea312 100644 --- a/test/data/subconfig_unicode2_copy.json +++ b/test/data/subconfig_unicode2_copy.json @@ -1 +1 @@ -{"schema": {"unicode2_copy.options": {"name": "unicode2_copy.options", "properties": {"unicode2_copy.options.unicode1": {"name": "unicode2_copy.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2_copy.options.unicode2": {"name": "unicode2_copy.options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode2_copy.options.unicode1", "type": "input", "copy": ["unicode2_copy.options.unicode2"]}, {"key": "unicode2_copy.options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode2_copy.options": {"name": "unicode2_copy.options", "properties": {"unicode2_copy.options.unicode1": {"name": "unicode2_copy.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2_copy.options.unicode2": {"name": "unicode2_copy.options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode2_copy.options.unicode1": {"type": "input", "copy": ["unicode2_copy.options.unicode2"]}, "unicode2_copy.options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.json b/test/data/subconfig_unicode2_multi_copy.json index 333adab..c86482d 100644 --- a/test/data/subconfig_unicode2_multi_copy.json +++ b/test/data/subconfig_unicode2_multi_copy.json @@ -1 +1 @@ -{"schema": {"unicode2_multi_copy.options": {"name": "unicode2_multi_copy.options", "properties": {"unicode2_multi_copy.options.unicode1": {"name": "unicode2_multi_copy.options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "unicode2_multi_copy.options.unicode2": {"name": "unicode2_multi_copy.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode2_multi_copy.options.unicode1", "required": true}, {"key": "unicode2_multi_copy.options.unicode2", "required": true}], "form": [{"key": "unicode2_multi_copy.options.unicode1", "type": "input", "copy": ["unicode2_multi_copy.options.unicode2"]}, {"key": "unicode2_multi_copy.options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode2_multi_copy.options": {"name": "unicode2_multi_copy.options", "properties": {"unicode2_multi_copy.options.unicode1": {"name": "unicode2_multi_copy.options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "unicode2_multi_copy.options.unicode2": {"name": "unicode2_multi_copy.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_multi_copy.options.unicode1": {"required": true}, "unicode2_multi_copy.options.unicode2": {"required": true}}, "form": {"unicode2_multi_copy.options.unicode1": {"type": "input", "copy": ["unicode2_multi_copy.options.unicode2"]}, "unicode2_multi_copy.options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.json b/test/data/subconfig_unicode_hidden.json index 4c8a136..d314c2f 100644 --- a/test/data/subconfig_unicode_hidden.json +++ b/test/data/subconfig_unicode_hidden.json @@ -1 +1 @@ -{"schema": {"unicode_hidden.options": {"name": "unicode_hidden.options", "properties": {"unicode_hidden.options.unicode": {"name": "unicode_hidden.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_hidden.options.unicode", "display": false, "hidden": true}], "form": [{"key": "unicode_hidden.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode_hidden.options": {"name": "unicode_hidden.options", "properties": {"unicode_hidden.options.unicode": {"name": "unicode_hidden.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_hidden.options.unicode": {"display": false, "hidden": true}}, "form": {"unicode_hidden.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.json b/test/data/subconfig_unicode_property.json index e5211f3..d799946 100644 --- a/test/data/subconfig_unicode_property.json +++ b/test/data/subconfig_unicode_property.json @@ -1 +1 @@ -{"schema": {"unicode_property.options": {"name": "unicode_property.options", "properties": {"unicode_property.options.unicode": {"name": "unicode_property.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_property.options.unicode", "properties": ["expert"]}], "form": [{"key": "unicode_property.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode_property.options": {"name": "unicode_property.options", "properties": {"unicode_property.options.unicode": {"name": "unicode_property.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property.options.unicode": {"properties": ["expert"]}}, "form": {"unicode_property.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.json b/test/data/subconfig_unicode_property_optiondescription.json index b60b986..c1ec499 100644 --- a/test/data/subconfig_unicode_property_optiondescription.json +++ b/test/data/subconfig_unicode_property_optiondescription.json @@ -1 +1 @@ -{"schema": {"unicode_property_optiondescription.options": {"name": "unicode_property_optiondescription.options", "properties": {"unicode_property_optiondescription.options.unicode": {"name": "unicode_property_optiondescription.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_property_optiondescription.options", "properties": ["expert"]}], "form": [{"key": "unicode_property_optiondescription.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"unicode_property_optiondescription.options": {"name": "unicode_property_optiondescription.options", "properties": {"unicode_property_optiondescription.options.unicode": {"name": "unicode_property_optiondescription.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property_optiondescription.options": {"properties": ["expert"]}}, "form": {"unicode_property_optiondescription.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1.json b/test/data/subconfig_username1.json index d638a25..e341f39 100644 --- a/test/data/subconfig_username1.json +++ b/test/data/subconfig_username1.json @@ -1 +1 @@ -{"schema": {"username1.options": {"name": "username1.options", "properties": {"username1.options.username": {"name": "username1.options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "username1.options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"username1.options": {"name": "username1.options", "properties": {"username1.options.username": {"name": "username1.options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"username1.options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.json b/test/data/subconfig_username1_frozen.json index 93d8553..3687c04 100644 --- a/test/data/subconfig_username1_frozen.json +++ b/test/data/subconfig_username1_frozen.json @@ -1 +1 @@ -{"schema": {"username1_frozen.options": {"name": "username1_frozen.options", "properties": {"username1_frozen.options.username": {"name": "username1_frozen.options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "username1_frozen.options.username", "readOnly": true}], "form": [{"key": "username1_frozen.options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"username1_frozen.options": {"name": "username1_frozen.options", "properties": {"username1_frozen.options.username": {"name": "username1_frozen.options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"username1_frozen.options.username": {"readOnly": true}}, "form": {"username1_frozen.options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1.json b/test/data/unicode1.json index 9ab28b4..8475aad 100644 --- a/test/data/unicode1.json +++ b/test/data/unicode1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1.updates1 b/test/data/unicode1.updates1 index 19c59da..b852548 100644 --- a/test/data/unicode1.updates1 +++ b/test/data/unicode1.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": [{"key": "options.unicode", "owner": "user", "value": "val"}]} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "user", "value": "val"}}} \ No newline at end of file diff --git a/test/data/unicode1_frozen.json b/test/data/unicode1_frozen.json index 0494842..b0c88a1 100644 --- a/test/data/unicode1_frozen.json +++ b/test/data/unicode1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "readOnly": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"readOnly": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leader_hidden_followers.json b/test/data/unicode1_leader_hidden_followers.json index 2a7e36e..9e675af 100644 --- a/test/data/unicode1_leader_hidden_followers.json +++ b/test/data/unicode1_leader_hidden_followers.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership.json b/test/data/unicode1_leadership.json index 655214d..7e93e41 100644 --- a/test/data/unicode1_leadership.json +++ b/test/data/unicode1_leadership.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_default_value.json b/test/data/unicode1_leadership_default_value.json index 7021ebb..b37933c 100644 --- a/test/data/unicode1_leadership_default_value.json +++ b/test/data/unicode1_leadership_default_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "default"}, {"key": "options.unicode.unicode2", "index": 0, "value": "follower2", "owner": "default"}, {"key": "options.unicode.unicode2", "index": 1, "value": "follower2", "owner": "default"}], "form": [{"key": "options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "default"}, "options.unicode.unicode2": {"0": {"value": "follower2", "owner": "default"}, "1": {"value": "follower2", "owner": "default"}}}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_hidden.json b/test/data/unicode1_leadership_hidden.json index b890b17..4b2028d 100644 --- a/test/data/unicode1_leadership_hidden.json +++ b/test/data/unicode1_leadership_hidden.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "user"}, {"key": "options.unicode.unicode2", "display": false, "hidden": true, "index": 0, "value": "super", "owner": "user"}, {"key": "options.unicode.unicode2", "display": false, "hidden": true, "index": 1}, {"key": "options.unicode.unicode2", "display": false, "hidden": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false, "hidden": true}}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_hidden_all_default.json b/test/data/unicode1_leadership_hidden_all_default.json index be3b9b8..6b814f7 100644 --- a/test/data/unicode1_leadership_hidden_all_default.json +++ b/test/data/unicode1_leadership_hidden_all_default.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_not_equal.json b/test/data/unicode1_leadership_not_equal.json index a1772d0..2e17434 100644 --- a/test/data/unicode1_leadership_not_equal.json +++ b/test/data/unicode1_leadership_not_equal.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input", "not_equal": {"options": ["options.unicode.unicode3"]}}, {"key": "options.unicode.unicode3", "type": "input", "not_equal": {"options": ["options.unicode.unicode2"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input", "not_equal": {"options": ["options.unicode.unicode3"]}}, "options.unicode.unicode3": {"type": "input", "not_equal": {"options": ["options.unicode.unicode2"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires.json b/test/data/unicode1_leadership_requires.json index f7331ed..5402b3c 100644 --- a/test/data/unicode1_leadership_requires.json +++ b/test/data/unicode1_leadership_requires.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_all.json b/test/data/unicode1_leadership_requires_all.json index a38d53d..27484fc 100644 --- a/test/data/unicode1_leadership_requires_all.json +++ b/test/data/unicode1_leadership_requires_all.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"properties": ["hidden"], "hidden": true}, "options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower.json b/test/data/unicode1_leadership_requires_follower.json index deb1db9..4eb4ba0 100644 --- a/test/data/unicode1_leadership_requires_follower.json +++ b/test/data/unicode1_leadership_requires_follower.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower_value.json b/test/data/unicode1_leadership_requires_follower_value.json index 0dd61d3..e938f34 100644 --- a/test/data/unicode1_leadership_requires_follower_value.json +++ b/test/data/unicode1_leadership_requires_follower_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true, "value": ["test", "pas test"], "owner": "user"}, {"key": "options.unicode1.unicode2", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode1.unicode3", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode1.unicode3", "hidden": true, "index": 1}], "form": [{"key": "options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"hidden": true}}}, "form": {"options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_followers.json b/test/data/unicode1_leadership_requires_followers.json index 539a292..7890d23 100644 --- a/test/data/unicode1_leadership_requires_followers.json +++ b/test/data/unicode1_leadership_requires_followers.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_leader.json b/test/data/unicode1_leadership_requires_leader.json index 3fcc7a0..f9f36d9 100644 --- a/test/data/unicode1_leadership_requires_leader.json +++ b/test/data/unicode1_leadership_requires_leader.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"properties": ["hidden"], "hidden": true}, "options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_value.json b/test/data/unicode1_leadership_requires_value.json index 0ef3e6f..aa9226e 100644 --- a/test/data/unicode1_leadership_requires_value.json +++ b/test/data/unicode1_leadership_requires_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["test", "val2"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "options.unicode.unicode3", "hidden": true, "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "options.unicode.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["test", "val2"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "options.unicode.unicode3": {"1": {"hidden": true, "value": "super", "owner": "user"}}}, "form": {"options.unicode.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_submulti.json b/test/data/unicode1_leadership_submulti.json index 1356810..783d82a 100644 --- a/test/data/unicode1_leadership_submulti.json +++ b/test/data/unicode1_leadership_submulti.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.json b/test/data/unicode1_leadership_value.json index 60d5f1b..0ea07d5 100644 --- a/test/data/unicode1_leadership_value.json +++ b/test/data/unicode1_leadership_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates1 b/test/data/unicode1_leadership_value.updates1 index dfb9822..9990961 100644 --- a/test/data/unicode1_leadership_value.updates1 +++ b/test/data/unicode1_leadership_value.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": [{"key": "options.unicode.unicode", "owner": "default", "required": true, "value": ["val1", "val2"]}, {"index": 0, "key": "options.unicode.unicode2", "owner": "default", "value": "follower2"}, {"index": 1, "key": "options.unicode.unicode2", "owner": "default", "value": "follower2"}]} \ No newline at end of file +{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": {"options.unicode.unicode": {"owner": "default", "required": true, "value": ["val1", "val2"]}, "options.unicode.unicode2": {"0": {"owner": "default", "value": "follower2"}, "1": {"owner": "default", "value": "follower2"}}}} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates2 b/test/data/unicode1_leadership_value.updates2 index 79bbd82..85a62b6 100644 --- a/test/data/unicode1_leadership_value.updates2 +++ b/test/data/unicode1_leadership_value.updates2 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}]} \ No newline at end of file +{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}}}} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates3 b/test/data/unicode1_leadership_value.updates3 index 0f423a0..60f02a2 100644 --- a/test/data/unicode1_leadership_value.updates3 +++ b/test/data/unicode1_leadership_value.updates3 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode", "options.unicode.unicode2"], "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3", "val4", "val5"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 2, "value": "follower2", "owner": "default"}, {"key": "options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}]} \ No newline at end of file +{"updates": ["options.unicode.unicode", "options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4", "val5"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}, "2": {"value": "follower2", "owner": "default"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates4 b/test/data/unicode1_leadership_value.updates4 index 809f022..ad004cd 100644 --- a/test/data/unicode1_leadership_value.updates4 +++ b/test/data/unicode1_leadership_value.updates4 @@ -1 +1 @@ -{"model": [{"key": "options.unicode.unicode", "owner": "user", "required": true, "value": ["val3", "val4", "val5"]}, {"index": 0, "key": "options.unicode.unicode1", "owner": "user", "value": "super1"}, {"index": 1, "key": "options.unicode.unicode1", "owner": "user", "value": "super2"}, {"index": 0, "key": "options.unicode.unicode2", "owner": "user", "value": "pas test"}, {"index": 1, "key": "options.unicode.unicode2", "owner": "user", "value": "test"}, {"index": 2, "key": "options.unicode.unicode2", "owner": "default", "value": "follower2"}, {"index": 1, "key": "options.unicode.unicode3", "owner": "user", "value": "super"}], "updates": ["options.unicode.unicode", "options.unicode.unicode2"]} \ No newline at end of file +{"model": {"options.unicode.unicode": {"owner": "user", "required": true, "value": ["val3", "val4", "val5"]}, "options.unicode.unicode1": {"0": {"owner": "user", "value": "super1"}, "1": {"owner": "user", "value": "super2"}}, "options.unicode.unicode2": {"0": {"owner": "user", "value": "pas test"}, "1": {"owner": "user", "value": "test"}, "2": {"owner": "default", "value": "follower2"}}, "options.unicode.unicode3": {"1": {"owner": "user", "value": "super"}}}, "updates": ["options.unicode.unicode", "options.unicode.unicode2"]} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates5 b/test/data/unicode1_leadership_value.updates5 index a0d1111..449ec25 100644 --- a/test/data/unicode1_leadership_value.updates5 +++ b/test/data/unicode1_leadership_value.updates5 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode2"], "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "follower2", "owner": "default"}, {"key": "options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}]} \ No newline at end of file +{"updates": ["options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "follower2", "owner": "default"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.updates6 b/test/data/unicode1_leadership_value.updates6 index e5346fb..6d17630 100644 --- a/test/data/unicode1_leadership_value.updates6 +++ b/test/data/unicode1_leadership_value.updates6 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode2"], "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test2", "owner": "user"}, {"key": "options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}]} \ No newline at end of file +{"updates": ["options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test2", "owner": "user"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.json b/test/data/unicode1_mandatory.json index 90cddb2..38e543e 100644 --- a/test/data/unicode1_mandatory.json +++ b/test/data/unicode1_mandatory.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.json b/test/data/unicode1_mod_value.json index 461dcef..e9d8879 100644 --- a/test/data/unicode1_mod_value.json +++ b/test/data/unicode1_mod_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "value": "a", "owner": "user"}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"value": "a", "owner": "user"}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.updates1 b/test/data/unicode1_mod_value.updates1 index 19c59da..b852548 100644 --- a/test/data/unicode1_mod_value.updates1 +++ b/test/data/unicode1_mod_value.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": [{"key": "options.unicode", "owner": "user", "value": "val"}]} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "user", "value": "val"}}} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.updates2 b/test/data/unicode1_mod_value.updates2 index 0fd1958..edcf054 100644 --- a/test/data/unicode1_mod_value.updates2 +++ b/test/data/unicode1_mod_value.updates2 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": []} \ No newline at end of file +{"updates": ["options.unicode"], "model": {}} \ No newline at end of file diff --git a/test/data/unicode1_multi.json b/test/data/unicode1_multi.json index 92d1247..236cecc 100644 --- a/test/data/unicode1_multi.json +++ b/test/data/unicode1_multi.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi.updates1 b/test/data/unicode1_multi.updates1 index d013eba..52f9c46 100644 --- a/test/data/unicode1_multi.updates1 +++ b/test/data/unicode1_multi.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": [{"key": "options.unicode", "owner": "user", "required": true, "value": ["val"]}]} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "user", "required": true, "value": ["val"]}}} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.json b/test/data/unicode1_multi_hidden.json index e871ed4..3729b70 100644 --- a/test/data/unicode1_multi_hidden.json +++ b/test/data/unicode1_multi_hidden.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.json b/test/data/unicode1_multi_mandatory.json index ca6a104..e8b89ff 100644 --- a/test/data/unicode1_multi_mandatory.json +++ b/test/data/unicode1_multi_mandatory.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "needs_len": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "needs_len": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.prop b/test/data/unicode1_multi_mandatory.prop index 4c66872..651d55e 100644 --- a/test/data/unicode1_multi_mandatory.prop +++ b/test/data/unicode1_multi_mandatory.prop @@ -1 +1 @@ -{"options.unicode": {"null": ["mandatory", "empty"]}} \ No newline at end of file +{"options.unicode": {"null": ["empty", "mandatory"]}} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.json b/test/data/unicode1_multi_mod_value.json index 94f9485..0bbcf44 100644 --- a/test/data/unicode1_multi_mod_value.json +++ b/test/data/unicode1_multi_mod_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "value": ["c", "d", "e"], "owner": "user"}], "form": [{"key": "options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["c", "d", "e"], "owner": "user"}}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.updates1 b/test/data/unicode1_multi_mod_value.updates1 index 8134e66..063e084 100644 --- a/test/data/unicode1_multi_mod_value.updates1 +++ b/test/data/unicode1_multi_mod_value.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": [{"key": "options.unicode", "owner": "default", "required": true, "value": ["a", "b"]}]} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "default", "required": true, "value": ["a", "b"]}}} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.updates2 b/test/data/unicode1_multi_mod_value.updates2 index e304aac..b64529f 100644 --- a/test/data/unicode1_multi_mod_value.updates2 +++ b/test/data/unicode1_multi_mod_value.updates2 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": [{"key": "options.unicode", "owner": "user", "required": true, "value": ["c", "f", "e"]}]} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "user", "required": true, "value": ["c", "f", "e"]}}} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.json b/test/data/unicode1_multi_not_equal_collapse.json index 6ca6b75..f9365d7 100644 --- a/test/data/unicode1_multi_not_equal_collapse.json +++ b/test/data/unicode1_multi_not_equal_collapse.json @@ -1 +1 @@ -{"schema": {"descr1": {"name": "descr1", "properties": {"descr1.unicode1": {"name": "descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"name": "descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"name": "descr2", "properties": {"descr2.unicode2": {"name": "descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"name": "descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"name": "descr3", "properties": {"descr3.unicode3": {"name": "descr3.unicode3", "type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"name": "descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": [{"key": "descr1.unicode1_multi", "required": true}, {"key": "descr2.unicode2", "value": "a", "owner": "default"}, {"key": "descr2.unicode2_multi", "required": true, "value": ["a", "b"], "owner": "default"}, {"key": "descr3.unicode3_multi", "required": true}], "form": [{"key": "descr1.unicode1", "type": "input", "not_equal": {"options": ["descr2.unicode2", "descr3.unicode3"]}}, {"key": "descr1.unicode1_multi", "type": "input", "not_equal": {"options": ["descr2.unicode2_multi", "descr3.unicode3_multi"]}}, {"key": "descr2.unicode2", "clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1", "descr3.unicode3"]}}, {"key": "descr2.unicode2_multi", "clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr3.unicode3_multi"]}}, {"key": "descr3.unicode3", "type": "input", "not_equal": {"options": ["descr1.unicode1", "descr2.unicode2"]}}, {"key": "descr3.unicode3_multi", "type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr2.unicode2_multi"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"descr1": {"name": "descr1", "properties": {"descr1.unicode1": {"name": "descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"name": "descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"name": "descr2", "properties": {"descr2.unicode2": {"name": "descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"name": "descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"name": "descr3", "properties": {"descr3.unicode3": {"name": "descr3.unicode3", "type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"name": "descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"descr1.unicode1_multi": {"required": true}, "descr2.unicode2": {"value": "a", "owner": "default"}, "descr2.unicode2_multi": {"required": true, "value": ["a", "b"], "owner": "default"}, "descr3.unicode3_multi": {"required": true}}, "form": {"descr1.unicode1": {"type": "input", "not_equal": {"options": ["descr2.unicode2", "descr3.unicode3"]}}, "descr1.unicode1_multi": {"type": "input", "not_equal": {"options": ["descr2.unicode2_multi", "descr3.unicode3_multi"]}}, "descr2.unicode2": {"clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1", "descr3.unicode3"]}}, "descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr3.unicode3_multi"]}}, "descr3.unicode3": {"type": "input", "not_equal": {"options": ["descr1.unicode1", "descr2.unicode2"]}}, "descr3.unicode3_multi": {"type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr2.unicode2_multi"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.json b/test/data/unicode1_multi_requires.json index a7a9ee8..934e40b 100644 --- a/test/data/unicode1_multi_requires.json +++ b/test/data/unicode1_multi_requires.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode2", "required": true, "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode2": {"required": true, "hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.json b/test/data/unicode1_multi_value.json index 3ed7314..95b286a 100644 --- a/test/data/unicode1_multi_value.json +++ b/test/data/unicode1_multi_value.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "value": ["a", "b"], "owner": "default"}], "form": [{"key": "options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.json b/test/data/unicode1_not_equal.json index b94ac87..160aca5 100644 --- a/test/data/unicode1_not_equal.json +++ b/test/data/unicode1_not_equal.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input", "not_equal": {"options": ["options.unicode2"]}}, {"key": "options.unicode2", "type": "input", "not_equal": {"options": ["options.unicode1"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input", "not_equal": {"options": ["options.unicode2"]}}, "options.unicode2": {"type": "input", "not_equal": {"options": ["options.unicode1"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.json b/test/data/unicode1_optiondescription_requires.json index ff3fac0..dcb278e 100644 --- a/test/data/unicode1_optiondescription_requires.json +++ b/test/data/unicode1_optiondescription_requires.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1": {"name": "unicode1", "properties": {"unicode1.unicode2": {"name": "unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1.unicode3": {"name": "unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": [{"key": "unicode1", "properties": ["hidden"], "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1"]}, "expected": {"test": {"show": ["unicode1"]}}}}, {"key": "unicode1.unicode2", "type": "input"}, {"key": "unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1": {"name": "unicode1", "properties": {"unicode1.unicode2": {"name": "unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1.unicode3": {"name": "unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1": {"properties": ["hidden"], "hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1"]}, "expected": {"test": {"show": ["unicode1"]}}}}, "unicode1.unicode2": {"type": "input"}, "unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_requires.json b/test/data/unicode1_requires.json index d070d49..87cbd1c 100644 --- a/test/data/unicode1_requires.json +++ b/test/data/unicode1_requires.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode2", "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode2": {"hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.json b/test/data/unicode1_simple_callback.json index 260e37f..be082ce 100644 --- a/test/data/unicode1_simple_callback.json +++ b/test/data/unicode1_simple_callback.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "value": "word", "owner": "default"}], "form": [{"key": "options.unicode1", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "word", "owner": "default"}}, "form": {"options.unicode1": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2.json b/test/data/unicode2.json index a39c6b7..0b01840 100644 --- a/test/data/unicode2.json +++ b/test/data/unicode2.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input"}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input"}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_copy.json b/test/data/unicode2_copy.json index d59cee6..d1afb6d 100644 --- a/test/data/unicode2_copy.json +++ b/test/data/unicode2_copy.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input", "copy": ["options.unicode2"]}, {"key": "options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input", "copy": ["options.unicode2"]}, "options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.json b/test/data/unicode2_multi_copy.json index f90d134..c7a5361 100644 --- a/test/data/unicode2_multi_copy.json +++ b/test/data/unicode2_multi_copy.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "required": true}, {"key": "options.unicode2", "required": true}], "form": [{"key": "options.unicode1", "type": "input", "copy": ["options.unicode2"]}, {"key": "options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"required": true}, "options.unicode2": {"required": true}}, "form": {"options.unicode1": {"type": "input", "copy": ["options.unicode2"]}, "options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_hidden.json b/test/data/unicode_hidden.json index 5c65aed..675ac8e 100644 --- a/test/data/unicode_hidden.json +++ b/test/data/unicode_hidden.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "display": false, "hidden": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"display": false, "hidden": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_property.json b/test/data/unicode_property.json index d632116..407552e 100644 --- a/test/data/unicode_property.json +++ b/test/data/unicode_property.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "properties": ["expert"]}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"properties": ["expert"]}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.json b/test/data/unicode_property_optiondescription.json index 6bf0da0..b5d8577 100644 --- a/test/data/unicode_property_optiondescription.json +++ b/test/data/unicode_property_optiondescription.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options", "properties": ["expert"]}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options": {"properties": ["expert"]}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1.json b/test/data/username1.json index f639c51..4849f6b 100644 --- a/test/data/username1.json +++ b/test/data/username1.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1_frozen.json b/test/data/username1_frozen.json index 4a8521f..78e38db 100644 --- a/test/data/username1_frozen.json +++ b/test/data/username1_frozen.json @@ -1 +1 @@ -{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.username", "readOnly": true}], "form": [{"key": "options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.username": {"readOnly": true}}, "form": {"options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/test_json.py b/test/test_json.py index 5b7924b..e365669 100644 --- a/test/test_json.py +++ b/test/test_json.py @@ -104,8 +104,16 @@ def test_owner(): values[str(index)] = config.option(key, index).owner.get() except PropertiesOptionError: pass + if debug: + print(value) + print('------------------') + print(values) assert value == values else: + if debug: + print(value) + print('------------------') + print({'null': config.option(key).owner.get()}) assert value == {'null': config.option(key).owner.get()} diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 2a2ee3e..eb58e7b 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -117,7 +117,7 @@ class TiramisuOptionProperty: props = self.config.get_properties(self.model, self.path, self.index, only_raises) else: props = [] - if self.config.get_hidden(self.path, + if self.config.is_hidden(self.path, self.index): props.append('hidden') return props @@ -132,11 +132,7 @@ class _Value: withwarning: bool) -> None: leadership_len = None for key, option in schema['properties'].items(): - hidden = self.temp.get(key, {}).get('hidden', None) - model_display = not self.model.get(key, {}).get('hidden', False) and \ - self.model.get(key, {}).get('display', True) - - if hidden is False or (hidden is None and model_display is True): + if self.config.is_hidden(key, None) is False: if option['type'] in ['object', 'array']: # optiondescription or leadership self._dict_walk(ret, @@ -293,26 +289,22 @@ class _Option: if type not in ['all', 'option']: raise NotImplementedError() for path, schema in self.schema['properties'].items(): - if type == 'all' or schema['type'] not in ['object', 'array']: - hidden = self.temp.get(path, {}).get('hidden', None) - model_display = not self.model.get(path, {}).get('hidden', False) and \ - self.model.get(path, {}).get('display', True) - if hidden is False or (hidden is None and model_display is True): - if schema['type'] in ['object', 'array']: - yield TiramisuOptionDescription(self.config, - schema, - self.model, - self.form, - self.temp, - path) - else: - yield TiramisuOption(self.config, - schema, - self.model, - self.form, - self.temp, - path, - self.index) + if type == 'all' or schema['type'] not in ['object', 'array'] and self.config.is_hidden(path, None): + if schema['type'] in ['object', 'array']: + yield TiramisuOptionDescription(self.config, + schema, + self.model, + self.form, + self.temp, + path) + else: + yield TiramisuOption(self.config, + schema, + self.model, + self.form, + self.temp, + path, + self.index) class TiramisuOptionDescription(_Option): @@ -355,10 +347,7 @@ class TiramisuOptionDescription(_Option): raise APIError(_('please specify a valid sub function ({})').format(subfunc)) def group_type(self): - hidden = self.temp.get(self.path, {}).get('hidden', None) - model_display = not self.model.get(self.path, {}).get('hidden', False) and \ - self.model.get(self.path, {}).get('display', True) - if hidden is False or (hidden is None and model_display): + if self.config.is_hidden(self.path, None): # FIXME return 'default' raise PropertiesOptionError(None, None, None, opt_type='optiondescription') @@ -499,14 +488,14 @@ class Config: # config def __init__(self, json): - self.model_ori = json['model'] - self.gen_model(json['model']) + self.model = json['model'] + self.form = json['form'] self.form = {} - for option in json['form']: - if 'key' in option: + # support pattern + for key, option in json['form'].items(): + if key != 'null': if 'pattern' in option: option['pattern'] = re.compile(option['pattern']) - self.form[option['key']] = option self.temp = {} self.schema = json['schema'] self.updates = [] @@ -516,30 +505,6 @@ class Config: else: self.root = '' - def gen_model(self, - model) -> List[Dict]: - self.model = {} - for option in model: - self.update_model(option) - - def update_model(self, - model): - key = model['key'] - if 'index' in model: - if key not in self.model: - self.model[key] = copy(model) - self.model[key]['value'] = {} - del self.model[key]['index'] - del self.model[key]['owner'] - if 'hidden' in self.model[key]: - del self.model[key]['hidden'] - if model.get('hidden') is True: - self.model[key]['value'][model['index']] = () - else: - self.model[key]['value'][model['index']] = (model['value'], model['owner']) - else: - self.model[key] = model - def __getattr__(self, subfunc: str) -> Any: if subfunc == 'property': @@ -618,7 +583,7 @@ class Config: props.append('mandatory') if model.get('readOnly'): props.append('frozen') - if only_raises and self.get_hidden(path, + if only_raises and self.is_hidden(path, index): props.append('hidden') if self.form.get(path, {}).get('clearable'): @@ -655,19 +620,23 @@ class Config: return True return False - def get_hidden(self, + def is_hidden(self, path: str, index: Optional[int]) -> bool: property_ = 'hidden' - if property_ in self.temp.get(path, {}): - value = self.temp[path][property_] - else: - if index is None: - value = self.model.get(path, {}).get(property_, False) + for property_, needs in {'hidden': True, 'display': False}.items(): + if property_ in self.temp.get(path, {}): + value = self.temp[path][property_] else: - value = self.model.get(path, {}).get(property_, False) or \ - self.model.get(path, {}).get('value', {}).get(index) == () - return value + if self.isfollower(path): + if self.model.get(path, {}).get('null', {}).get(property_, None) == needs: + return True + elif self.model.get(path, {}).get(property_, None) == needs: + return True + index = str(index) + if index is not None and index in self.model.get(path, {}) and self.model.get(path, {}).get(index, {}).get(property_, None) == needs: + return True + return False def get_value(self, path: str, @@ -680,20 +649,28 @@ class Config: if value is None and self.get_schema(path).get('isMulti', False): value = [] else: - if index in self.temp.get(path, {}).get('value', {}): - value = self.temp[path].get('value') + index = str(index) + if 'delete' in self.temp.get(path, {}): + value = None + elif index in self.temp.get(path, {}): + if 'delete' in self.temp[path][index]: + value = None + else: + value = self.temp[path] else: - value = self.model.get(path, {}).get('value') - if value is not None: - if index in value: - if len(value[index]): - value = value[index][0] - else: - value = PropertiesOptionError(None, None, None, opt_type='option') + value = self.model.get(path) + if self.isfollower(path): + if self.is_hidden(path, index): + value = PropertiesOptionError(None, None, None, opt_type='option') + elif value is not None and index in value: + value = value[index]['value'] else: value = self.get_schema(path).get('default') else: - value = None + if value is not None and index in value and 'value' in value[index]: + value = value[index]['value'] + else: + value = self.get_schema(path).get('default') return value def get_owner(self, @@ -706,13 +683,14 @@ class Config: owner = self.model.get(path, {}).get('owner', 'default') else: if 'value' in self.temp.get(path, {}): - value = self.temp[path]['value'] + value = self.temp[path] else: - value = self.model.get(path, {}).get('value', {}) + value = self.model.get(path, {}) + index = str(index) + if self.is_hidden(path, index): + raise PropertiesOptionError(None, None, None, opt_type='option') if index in value: - if not value[index]: - raise PropertiesOptionError(None, None, None, opt_type='option') - owner = value[index][1] + owner = value[index]['owner'] else: owner = 'default' return owner @@ -774,45 +752,44 @@ class Config: if match: if remote: self.updates_data(self.send_data({'updates': self.updates, - 'model': self.model_ori})) + 'model': self.model})) else: if action == 'delete': - self.temp.setdefault(path, {})['owner'] = 'tmp' if index is None: + # leader or standard option + # set value to default value value = self.default_value(path) - self.temp[path]['value'] = value + self.temp[path] = {'value': value, 'owner': 'default'} if self.option(path).option.isleader(): + # if leader, set follower to default value leadership_path = path.rsplit('.', 1)[0] parent_schema = self.get_schema(leadership_path) iter_leadership = list(parent_schema['properties'].keys()) for follower in iter_leadership[1:]: - for idx in range(len(value)): - follower_value = self.get_schema(follower).get('default') - # FIXME PropertiesOptionError? - self.temp.setdefault(follower, {}).setdefault('value', {})[idx] = (follower_value, 'default') + # delete all values + self.temp[follower] = {'delete': True} elif self.option(path).option.isleader(): + # if remove an indexed leader value old_value = self.option(path).value.get() old_value.pop(index) - self.temp[path]['value'] = old_value + self.temp[path] = {'value': old_value, 'owner': 'tmp'} leadership_path = path.rsplit('.', 1)[0] parent_schema = self.get_schema(leadership_path) iter_leadership = list(parent_schema['properties'].keys()) for follower in iter_leadership[1:]: - if index in self.temp.get(follower, {}).get('value', {}): - del self.temp[follower]['value'][index] - if index in self.model.get(follower, {}).get('value', {}): - del self.model[follower]['value'][index] + # remove value for this index and reduce len + #FIXME on ne reduce pas la longueur !!!! + self.temp.setdefault(follower, {})[str(index)] = {'delete': True} else: - if index in self.temp.get(path, {}).get('value', {}): - del self.temp[path]['value'][index] - if index in self.model.get(path, {}).get('value', {}): - del self.model[path]['value'][index] + # it's a follower with index + self.temp.setdefault(path, {})[str(index)] = {'delete': True} elif index is None: - self.temp.setdefault(path, {})['owner'] = 'tmp' - self.temp[path]['value'] = value + # set a value for a not follower option + self.temp[path] = {'value': value, 'owner': 'tmp'} else: - self.temp.setdefault(path, {}).setdefault('value', {})[index] = (value, 'tmp') + # set a value for a follower option + self.temp.setdefault(path, {})[str(index)] = {'value': value, 'owner': 'tmp'} self.set_dependencies(path, value) self.set_not_equal(path, value) self.do_copy(path, value) @@ -827,13 +804,7 @@ class Config: def updates_data(self, data): self.updates = [] self.temp.clear() - for key in data['updates']: - if key in self.model: - del self.model[key] - for model in data['model']: - if key == model['key']: - self.update_model(model) - self.model_ori = data['model'] + self.model = data['model'] def test_value(self, path: str,