Changes for page Technical details
Last modified by lzehl on 2021/07/05 18:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -160,7 +160,7 @@ 160 160 ==== Data type depending constraints ==== 161 161 162 162 (% style="text-align: justify;" %) 163 -Depending on the expected data **##"type"##** additional constraints can be made for the metadata entry of a respective property. Currently, the openMINDS schema template syntax supports the following data types: **##"string"##**, **##"number"##** (integer or float), ##**"integer"**##, **##"float"##**, **##"boolean"##**, **##"object"##** or **##"array"##**. Except for **##"boolean"##**, all these data types can have additional constraints whichwill be summarized in the following.163 +Depending on the expected data **##"type"##** additional constraints can be made for the metadata entry of a respective property. Currently, the openMINDS schema template syntax supports the following data types: **##"string"##**, **##"number"##** (integer or float), ##**"integer"**##, **##"float"##**, **##"boolean"##**, **##"object"##** or **##"array"##**. Except for **##"boolean"##**, all these data types can have additional constraints. The essential constraints will be summarized in the following (cf. [[JSON-Schema specifications 7.0>>https://json-schema.org/understanding-json-schema/index.html||rel="noopener noreferrer" target="_blank"]] for more). 164 164 165 165 (% style="text-align: justify;" %) 166 166 If the expected data **##"type"##** is a **##"string"##** the expected number of characters, the format or a regular expression pattern of the string can be further defined. Here abstract examples for all possible string constraints: ... ... @@ -190,9 +190,9 @@ 190 190 "_instruction": "Enter a string matching one of the given formats." 191 191 }, 192 192 "stringProperty_patternConstraints": { 193 - "pattern": "«regular_expression»" 193 + "pattern": "«regular_expression_ECMA_262_dialect»" 194 194 "type": "string", 195 - "_instruction": "Enter a string matching the given regex pattern (ECMA 262 dialect)."195 + "_instruction": "Enter a string matching the given regex pattern." 196 196 } 197 197 } 198 198 }