protocol.param.GetSet update - min/max only for numeric types, longer string value

This commit is contained in:
Pavel Kirienko
2015-03-24 22:25:25 +03:00
parent d41a216546
commit 0c8f0700af
8 changed files with 56 additions and 24 deletions
+4 -3
View File
@@ -25,9 +25,10 @@ uint8[<=92] name
# Empty value indicates that there is no such parameter.
Value value
Value default_value # Optional
Value max_value # Optional
Value min_value # Optional
Value default_value # Optional
NumericValue max_value # Optional, not applicable for bool/string
NumericValue min_value # Optional, not applicable for bool/string
# Empty name in response indicates that there is no such parameter
uint8[<=92] name
@@ -0,0 +1,8 @@
#
# Numeric-only value.
# The actual type should be inferred from the available values, as described below.
# If none of the values below are present, the value is considered empty.
#
int64[<=1] value_int # Preferred over float if ambiguous
float32[<=1] value_float # Only if int is empty
@@ -2,4 +2,4 @@
# This type is nested in Value.
#
uint8[<64] value
uint8[<=127] value
+1 -1
View File
@@ -7,4 +7,4 @@
bool[<=1] value_bool # Preferred over int, float and string if ambiguous
int64[<=1] value_int # Preferred over float and string if ambiguous
float32[<=1] value_float # Preferred over string if ambiguous
ValueString[<=1] value_string # This one will be used only if all above are empty
String[<=1] value_string # This one will be used only if all above are empty