|
74 | 74 | "DynamicValue": { |
75 | 75 | "description": "A value that can be a literal, a path, or a function call returning any type.", |
76 | 76 | "oneOf": [ |
77 | | - { "type": "string" }, |
78 | | - { "type": "number" }, |
79 | | - { "type": "boolean" }, |
80 | | - { "$ref": "#/$defs/DataBinding" }, |
81 | | - { "$ref": "#/$defs/FunctionCall" } |
| 77 | + { |
| 78 | + "type": "string" |
| 79 | + }, |
| 80 | + { |
| 81 | + "type": "number" |
| 82 | + }, |
| 83 | + { |
| 84 | + "type": "boolean" |
| 85 | + }, |
| 86 | + { |
| 87 | + "$ref": "#/$defs/DataBinding" |
| 88 | + }, |
| 89 | + { |
| 90 | + "$ref": "#/$defs/FunctionCall" |
| 91 | + } |
82 | 92 | ] |
83 | 93 | }, |
84 | 94 | "DynamicString": { |
85 | 95 | "description": "Represents a string", |
86 | 96 | "oneOf": [ |
87 | | - { "type": "string" }, |
88 | | - { "$ref": "#/$defs/DataBinding" }, |
| 97 | + { |
| 98 | + "type": "string" |
| 99 | + }, |
| 100 | + { |
| 101 | + "$ref": "#/$defs/DataBinding" |
| 102 | + }, |
89 | 103 | { |
90 | 104 | "allOf": [ |
91 | | - { "$ref": "#/$defs/FunctionCall" }, |
92 | 105 | { |
93 | | - "properties": { "returnType": { "const": "string" } }, |
| 106 | + "$ref": "#/$defs/FunctionCall" |
| 107 | + }, |
| 108 | + { |
| 109 | + "properties": { |
| 110 | + "returnType": { |
| 111 | + "const": "string" |
| 112 | + } |
| 113 | + }, |
94 | 114 | "required": ["returnType"] |
95 | 115 | } |
96 | 116 | ] |
|
100 | 120 | "DynamicNumber": { |
101 | 121 | "description": "Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.", |
102 | 122 | "oneOf": [ |
103 | | - { "type": "number" }, |
104 | | - { "$ref": "#/$defs/DataBinding" }, |
| 123 | + { |
| 124 | + "type": "number" |
| 125 | + }, |
| 126 | + { |
| 127 | + "$ref": "#/$defs/DataBinding" |
| 128 | + }, |
105 | 129 | { |
106 | 130 | "allOf": [ |
107 | | - { "$ref": "#/$defs/FunctionCall" }, |
108 | 131 | { |
109 | | - "properties": { "returnType": { "const": "number" } }, |
| 132 | + "$ref": "#/$defs/FunctionCall" |
| 133 | + }, |
| 134 | + { |
| 135 | + "properties": { |
| 136 | + "returnType": { |
| 137 | + "const": "number" |
| 138 | + } |
| 139 | + }, |
110 | 140 | "required": ["returnType"] |
111 | 141 | } |
112 | 142 | ] |
|
116 | 146 | "DynamicBoolean": { |
117 | 147 | "description": "A boolean value that can be a literal, a path, or a logic expression (including function calls returning boolean).", |
118 | 148 | "oneOf": [ |
119 | | - { "type": "boolean" }, |
120 | | - { "$ref": "#/$defs/DataBinding" }, |
121 | | - { "$ref": "#/$defs/LogicExpression" } |
| 149 | + { |
| 150 | + "type": "boolean" |
| 151 | + }, |
| 152 | + { |
| 153 | + "$ref": "#/$defs/DataBinding" |
| 154 | + }, |
| 155 | + { |
| 156 | + "$ref": "#/$defs/LogicExpression" |
| 157 | + } |
122 | 158 | ] |
123 | 159 | }, |
124 | 160 | "DynamicStringList": { |
125 | 161 | "description": "Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.", |
126 | 162 | "oneOf": [ |
127 | 163 | { |
128 | 164 | "type": "array", |
129 | | - "items": { "type": "string" } |
| 165 | + "items": { |
| 166 | + "type": "string" |
| 167 | + } |
| 168 | + }, |
| 169 | + { |
| 170 | + "$ref": "#/$defs/DataBinding" |
130 | 171 | }, |
131 | | - { "$ref": "#/$defs/DataBinding" }, |
132 | 172 | { |
133 | 173 | "allOf": [ |
134 | | - { "$ref": "#/$defs/FunctionCall" }, |
135 | 174 | { |
136 | | - "properties": { "returnType": { "const": "array" } }, |
| 175 | + "$ref": "#/$defs/FunctionCall" |
| 176 | + }, |
| 177 | + { |
| 178 | + "properties": { |
| 179 | + "returnType": { |
| 180 | + "const": "array" |
| 181 | + } |
| 182 | + }, |
137 | 183 | "required": ["returnType"] |
138 | 184 | } |
139 | 185 | ] |
|
149 | 195 | "description": "The name of the function to call." |
150 | 196 | }, |
151 | 197 | "args": { |
152 | | - "type": "array", |
| 198 | + "type": "object", |
153 | 199 | "description": "Arguments passed to the function.", |
154 | | - "items": { |
| 200 | + "additionalProperties": { |
155 | 201 | "anyOf": [ |
156 | | - { "$ref": "#/$defs/DynamicValue" }, |
| 202 | + { |
| 203 | + "$ref": "#/$defs/DynamicValue" |
| 204 | + }, |
157 | 205 | { |
158 | 206 | "type": "object", |
159 | 207 | "description": "A literal object argument (e.g. configuration)." |
|
164 | 212 | "returnType": { |
165 | 213 | "type": "string", |
166 | 214 | "description": "The expected return type of the function call.", |
167 | | - "enum": ["string", "number", "boolean", "array", "object", "any", "void"], |
| 215 | + "enum": [ |
| 216 | + "string", |
| 217 | + "number", |
| 218 | + "boolean", |
| 219 | + "array", |
| 220 | + "object", |
| 221 | + "any", |
| 222 | + "void" |
| 223 | + ], |
168 | 224 | "default": "boolean" |
169 | 225 | } |
170 | 226 | }, |
|
0 commit comments