summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-02 22:13:52 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-02 22:13:52 +0000
commit6b6abc95d04dcd4c5be6b1082e2b4a63f7b6047f (patch)
tree58f79101d0524c398c71f0693f995510627be620 /libs/uvl/root
parent51bfdb1377c91b0947ae10025d6b6261c34de721 (diff)
* luci/libs/uvl:
- fix handling of missing package/section/variable fields in scheme specs - fix dereferencing of scheme tables in luci.uvl.uvlitem.scheme() - unify TYPE_VARIABLE and TYPE_OPTION - implement external "regexp:..." validators - extend reference scheme to implement "lazylist" type for lists
Diffstat (limited to 'libs/uvl/root')
-rw-r--r--libs/uvl/root/lib/uci/schema/meta/schema24
1 files changed, 15 insertions, 9 deletions
diff --git a/libs/uvl/root/lib/uci/schema/meta/schema b/libs/uvl/root/lib/uci/schema/meta/schema
index 2454a188c..d424ef979 100644
--- a/libs/uvl/root/lib/uci/schema/meta/schema
+++ b/libs/uvl/root/lib/uci/schema/meta/schema
@@ -38,7 +38,7 @@ config variable
option name 'description'
option title 'Description of the defined package'
option section 'schema.package'
- option type 'variable'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -92,7 +92,7 @@ config variable
option name 'description'
option title 'Description of the defined section'
option section 'schema.section'
- option type 'variable'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -101,7 +101,7 @@ config variable
option name 'depends'
option title 'List of dependencies within and between defined sections'
option section 'schema.section'
- option type 'list'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -191,7 +191,7 @@ config variable
option name 'description'
option title 'Description of the defined variable'
option section 'schema.variable'
- option type 'variable'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -200,7 +200,7 @@ config variable
option name 'depends'
option title 'List of dependencies between defined variables'
option section 'schema.variable'
- option type 'list'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -240,6 +240,12 @@ config enum
option title 'This is a list variable'
option variable 'schema.variable.type'
+# List-or-Option variable type (schema.@variable.type=lazylist)
+config enum
+ option value 'lazylist'
+ option title 'This is a list or option variable'
+ option variable 'schema.variable.type'
+
# Reference variable type (schema.@variable.type=reference)
config enum
option value 'reference'
@@ -260,7 +266,7 @@ config variable
option name 'validator'
option title 'Datatype of this variable'
option section 'schema.variable'
- option type 'list'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -269,7 +275,7 @@ config variable
option name 'valueof'
option title 'Reference to section or option to read values from'
option section 'schema.variable'
- option type 'list'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -323,7 +329,7 @@ config variable
option name 'description'
option title 'Description of the defined enum value'
option section 'schema.enum'
- option type 'variable'
+ option type 'lazylist'
option datatype 'string'
option required false
@@ -332,7 +338,7 @@ config variable
option name 'depends'
option title 'List of dependencies on defined variables'
option section 'schema.enum'
- option type 'list'
+ option type 'lazylist'
option datatype 'string'
option required false