Attention: The EBRAINS drive will be unavailable for most of the weekend starting the 25th October. Although the Lab is availble while the Drive is down, files that are stored in the Drive will not be loaded and you will be unable to save documents directly on the Lab.


Changes for page Technical details

Last modified by lzehl on 2021/07/05 18:57

From version 86.2
edited by lzehl
on 2021/07/05 15:01
Change comment: There is no comment for this version
To version 86.3
edited by lzehl
on 2021/07/05 15:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -199,14 +199,29 @@
199 199  {{/code}}
200 200  
201 201  (% class="wikigeneratedid" %)
202 -If the expected data **##"type"##** is an **##"integer"##** or a **##"number"##** (float or integer) the expected range or multiples can be further defined. Here abstract examples for all possible  **##"integer"##** and **##"number"##** constraints:
202 +If the expected data **##"type"##** is an **##"integer"##** or a **##"number"##** (float or integer) the expected range or multiples can be further defined. Here abstract examples for all possible  **##"integer"##** and **##"number"##** constraints (not that both constraints can be defined for both data types):
203 203  
204 204  {{code language="json"}}
205 205  {
206 206   "properties": {
207 + "integerProperty_noConstraints": {
208 + "type": "integer",
209 + "_instruction": "Enter an integer."
210 + },
211 + "integerProperty_rangeConstraints": {
212 + "maximum": 50,
213 + "minimum": 10,
214 + "type": "integer",
215 + "_instruction": "Enter an integer equal or between 10 and 50."
216 + },
207 207   "numberProperty_noConstraints": {
208 208   "type": "number",
209 209   "_instruction": "Enter a number (float or integer)."
220 + },
221 + "numberProperty_multipleOfConstraints": {
222 + "multipleOf": 10.5,
223 + "type": "number",
224 + "_instruction": "Enter any number which is a multiple of 10.5."
210 210   }
211 211   }
212 212  }
Public

openMINDS