Hello. I’m trying to track down what’s possible with UI Schema rules for integers, whether I can apply math (integer > 50) to those integer rules (and seen what’s possible with other, undocumented field data type rules.)
I see Rules syntax for integer fields:
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#/properties/my_boolean_field",
"schema": {
"const": 1234
}
}
}
…but I’m not sure if / how I can apply math to this rule?
Rules For Other Data Types
If it’s helpful for others looking for Rules syntax for other data types:
I see Rules syntax for boolean fields:
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#/properties/my_boolean_field",
"schema": {
"const": true
}
}
}
And Rules for enum fields:
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#/properties/my_enum_field",
"schema": {
"enum": ["foo"]
}
}
}
Thanks.