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
-
... ... @@ -163,7 +163,7 @@ 163 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"##**, ##**"integer"**##, **##"float"##**, **##"boolean"##**, **##"array"##** and **##"object"##**. 164 164 165 165 (% style="text-align: justify;" %) 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 a nabstract example for all possiblestringconstraints: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 a conceptual example for all possible constraints: 167 167 168 168 {{code language="json"}} 169 169 { ... ... @@ -174,26 +174,10 @@ 174 174 "_instruction": "Enter a free text." 175 175 }, 176 176 "stringProperty_lengthConstraints": { 177 - "maxLength": 6 ,177 + "maxLength": 6 178 178 "minLength": 2, 179 179 "type": "string", 180 180 "_instruction": "Enter a free text (allowed numbers of characters: 2 - 6)." 181 - }, 182 - "stringProperty_formatConstraints": { 183 - "type": "string", 184 - "_formats": [ 185 - "email", 186 - "date", 187 - "time", 188 - "date-time", 189 - "iri" 190 - ] 191 - "_instruction": "Enter a string matching one of the given formats." 192 - }, 193 - "stringProperty_patternConstraints": { 194 - "pattern": "«regular_expression»" 195 - "type": "string", 196 - "_instruction": "Enter a string matching the given regex pattern (ECMA 262 dialect)." 197 197 } 198 198 } 199 199 }