@cloudcannon/configuration-types 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-config.latest.schema.json +250 -0
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +250 -0
- package/dist/cloudcannon-config.legacy-hugo.schema.json +250 -0
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +250 -0
- package/dist/cloudcannon-config.legacy-reader.schema.json +250 -0
- package/package.json +1 -1
- package/src/inputs.d.ts +73 -0
|
@@ -176,16 +176,31 @@
|
|
|
176
176
|
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
177
177
|
"type": "number"
|
|
178
178
|
},
|
|
179
|
+
"max_items_message": {
|
|
180
|
+
"description": "This key defines the message that explains why an Input needs to have a maximum number of items. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
181
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a maximum number of\nitems. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
179
184
|
"min_items": {
|
|
180
185
|
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
181
186
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
182
187
|
"type": "number"
|
|
183
188
|
},
|
|
189
|
+
"min_items_message": {
|
|
190
|
+
"description": "This key defines the message that explains why an Input needs to have a minimum number of items. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
191
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a minimum number of\nitems. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
184
194
|
"required": {
|
|
185
195
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
186
196
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
187
197
|
"type": "boolean"
|
|
188
198
|
},
|
|
199
|
+
"required_message": {
|
|
200
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
201
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
189
204
|
"structures": {
|
|
190
205
|
"anyOf": [
|
|
191
206
|
{
|
|
@@ -202,6 +217,11 @@
|
|
|
202
217
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
203
218
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
204
219
|
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"unique_on_message": {
|
|
222
|
+
"description": "This key defines the message that explains why an Input needs to be unique. This key requires you to define `options.unique_on`.\n\nThis key has no default.",
|
|
223
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to be unique. This key requires\nyou to define `options.unique_on`.\n\nThis key has no default.",
|
|
224
|
+
"type": "string"
|
|
205
225
|
}
|
|
206
226
|
},
|
|
207
227
|
"type": "object"
|
|
@@ -1069,11 +1089,21 @@
|
|
|
1069
1089
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1070
1090
|
"type": "number"
|
|
1071
1091
|
},
|
|
1092
|
+
"max_length_message": {
|
|
1093
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1094
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
},
|
|
1072
1097
|
"min_length": {
|
|
1073
1098
|
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1074
1099
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1075
1100
|
"type": "number"
|
|
1076
1101
|
},
|
|
1102
|
+
"min_length_message": {
|
|
1103
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1104
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1105
|
+
"type": "string"
|
|
1106
|
+
},
|
|
1077
1107
|
"pattern": {
|
|
1078
1108
|
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1079
1109
|
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
@@ -1154,6 +1184,11 @@
|
|
|
1154
1184
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1155
1185
|
"type": "boolean"
|
|
1156
1186
|
},
|
|
1187
|
+
"required_message": {
|
|
1188
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
1189
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
1190
|
+
"type": "string"
|
|
1191
|
+
},
|
|
1157
1192
|
"value_key": {
|
|
1158
1193
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
1159
1194
|
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
@@ -1299,6 +1334,11 @@
|
|
|
1299
1334
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1300
1335
|
"type": "number"
|
|
1301
1336
|
},
|
|
1337
|
+
"max_length_message": {
|
|
1338
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1339
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
},
|
|
1302
1342
|
"max_visible_lines": {
|
|
1303
1343
|
"default": 30,
|
|
1304
1344
|
"description": "Sets the maximum number of visible lines for this input, effectively controlling maximum height. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
@@ -1310,6 +1350,11 @@
|
|
|
1310
1350
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1311
1351
|
"type": "number"
|
|
1312
1352
|
},
|
|
1353
|
+
"min_length_message": {
|
|
1354
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1355
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1356
|
+
"type": "string"
|
|
1357
|
+
},
|
|
1313
1358
|
"min_visible_lines": {
|
|
1314
1359
|
"default": 10,
|
|
1315
1360
|
"description": "Sets the minimum number of visible lines for this input, effectively controlling initial height. When the containing text exceeds this number, the input grows line by line to the lines defined by `max_visible_lines`.",
|
|
@@ -1375,6 +1420,11 @@
|
|
|
1375
1420
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1376
1421
|
"type": "boolean"
|
|
1377
1422
|
},
|
|
1423
|
+
"required_message": {
|
|
1424
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
1425
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
1426
|
+
"type": "string"
|
|
1427
|
+
},
|
|
1378
1428
|
"show_gutter": {
|
|
1379
1429
|
"default": true,
|
|
1380
1430
|
"description": "This key toggles the gutter on the left of the editing interface, displaying line numbers and code folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
@@ -1560,11 +1610,21 @@
|
|
|
1560
1610
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1561
1611
|
"type": "number"
|
|
1562
1612
|
},
|
|
1613
|
+
"max_length_message": {
|
|
1614
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1615
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
1616
|
+
"type": "string"
|
|
1617
|
+
},
|
|
1563
1618
|
"min_length": {
|
|
1564
1619
|
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1565
1620
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1566
1621
|
"type": "number"
|
|
1567
1622
|
},
|
|
1623
|
+
"min_length_message": {
|
|
1624
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1625
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
},
|
|
1568
1628
|
"pattern": {
|
|
1569
1629
|
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1570
1630
|
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
@@ -1623,6 +1683,11 @@
|
|
|
1623
1683
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1624
1684
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1625
1685
|
"type": "boolean"
|
|
1686
|
+
},
|
|
1687
|
+
"required_message": {
|
|
1688
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
1689
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
1690
|
+
"type": "string"
|
|
1626
1691
|
}
|
|
1627
1692
|
},
|
|
1628
1693
|
"type": "object"
|
|
@@ -1835,17 +1900,32 @@
|
|
|
1835
1900
|
"markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
|
|
1836
1901
|
"type": "string"
|
|
1837
1902
|
},
|
|
1903
|
+
"end_before_message": {
|
|
1904
|
+
"description": "This key defines the message that explains why an Input needs to have an end date. This key requires you to define `options.end_before`.\n\nThis key has no default.",
|
|
1905
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have an end date. This key\nrequires you to define `options.end_before`.\n\nThis key has no default.",
|
|
1906
|
+
"type": "string"
|
|
1907
|
+
},
|
|
1838
1908
|
"required": {
|
|
1839
1909
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1840
1910
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1841
1911
|
"type": "boolean"
|
|
1842
1912
|
},
|
|
1913
|
+
"required_message": {
|
|
1914
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
1915
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
1916
|
+
"type": "string"
|
|
1917
|
+
},
|
|
1843
1918
|
"start_from": {
|
|
1844
1919
|
"description": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting an earlier date and time. If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be a later date and time.\n\nThis key has no default.",
|
|
1845
1920
|
"format": "date-time",
|
|
1846
1921
|
"markdownDescription": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an\nInput. When configured, CloudCannon will prevent you from selecting an earlier date and time.\nIf the Input already contains an earlier date and time, CloudCannon will require you to change\nit to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be\na later date and time.\n\nThis key has no default.",
|
|
1847
1922
|
"type": "string"
|
|
1848
1923
|
},
|
|
1924
|
+
"start_from_message": {
|
|
1925
|
+
"description": "This key defines the message that explains why an Input needs to have a start date. This key requires you to define `options.start_from`.\n\nThis key has no default.",
|
|
1926
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a start date. This key\nrequires you to define `options.start_from`.\n\nThis key has no default.",
|
|
1927
|
+
"type": "string"
|
|
1928
|
+
},
|
|
1849
1929
|
"timezone": {
|
|
1850
1930
|
"$ref": "#/definitions/Timezone",
|
|
1851
1931
|
"default": "Etc/UTC",
|
|
@@ -2167,11 +2247,26 @@
|
|
|
2167
2247
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
2168
2248
|
"type": "boolean"
|
|
2169
2249
|
},
|
|
2250
|
+
"max_file_size": {
|
|
2251
|
+
"description": "This key defines the maximum file size, in kilobytes, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from uploading a file larger than the specified size. If the Input already contains a file larger than the specified size, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer.",
|
|
2252
|
+
"markdownDescription": "This key defines the maximum file size, in kilobytes, that CloudCannon will allow in an Input.\nWhen configured, CloudCannon will prevent you from uploading a file larger than the specified\nsize. If the Input already contains a file larger than the specified size, CloudCannon will\nrequire you to change it to a valid value to save your changes, or discard your unsaved\nchanges.\n\nValue can be any positive integer.",
|
|
2253
|
+
"type": "number"
|
|
2254
|
+
},
|
|
2255
|
+
"max_file_size_message": {
|
|
2256
|
+
"description": "This key defines the message that explains why an Input needs to have a maximum file size. This key requires you to define `options.max_file_size`.\n\nThis key has no default.",
|
|
2257
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a maximum file size. This\nkey requires you to define `options.max_file_size`.\n\nThis key has no default.",
|
|
2258
|
+
"type": "string"
|
|
2259
|
+
},
|
|
2170
2260
|
"max_length": {
|
|
2171
2261
|
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
2172
2262
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
2173
2263
|
"type": "number"
|
|
2174
2264
|
},
|
|
2265
|
+
"max_length_message": {
|
|
2266
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
2267
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
2268
|
+
"type": "string"
|
|
2269
|
+
},
|
|
2175
2270
|
"mime_type": {
|
|
2176
2271
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
2177
2272
|
"enum": [
|
|
@@ -2187,6 +2282,11 @@
|
|
|
2187
2282
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
2188
2283
|
"type": "number"
|
|
2189
2284
|
},
|
|
2285
|
+
"min_length_message": {
|
|
2286
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
2287
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
2288
|
+
"type": "string"
|
|
2289
|
+
},
|
|
2190
2290
|
"paths": {
|
|
2191
2291
|
"$ref": "#/definitions/Paths",
|
|
2192
2292
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
@@ -2257,6 +2357,11 @@
|
|
|
2257
2357
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
2258
2358
|
"type": "boolean"
|
|
2259
2359
|
},
|
|
2360
|
+
"required_message": {
|
|
2361
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
2362
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
2363
|
+
"type": "string"
|
|
2364
|
+
},
|
|
2260
2365
|
"resize_style": {
|
|
2261
2366
|
"default": "contain",
|
|
2262
2367
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -7112,11 +7217,21 @@
|
|
|
7112
7217
|
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
7113
7218
|
"type": "number"
|
|
7114
7219
|
},
|
|
7220
|
+
"max_items_message": {
|
|
7221
|
+
"description": "This key defines the message that explains why an Input needs to have a maximum number of items. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
7222
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a maximum number of\nitems. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
7223
|
+
"type": "string"
|
|
7224
|
+
},
|
|
7115
7225
|
"min_items": {
|
|
7116
7226
|
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7117
7227
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7118
7228
|
"type": "number"
|
|
7119
7229
|
},
|
|
7230
|
+
"min_items_message": {
|
|
7231
|
+
"description": "This key defines the message that explains why an Input needs to have a minimum number of items. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
7232
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a minimum number of\nitems. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
7233
|
+
"type": "string"
|
|
7234
|
+
},
|
|
7120
7235
|
"picker_preview": {
|
|
7121
7236
|
"$ref": "#/definitions/Preview",
|
|
7122
7237
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -7143,11 +7258,21 @@
|
|
|
7143
7258
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7144
7259
|
"type": "boolean"
|
|
7145
7260
|
},
|
|
7261
|
+
"required_message": {
|
|
7262
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
7263
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
7264
|
+
"type": "string"
|
|
7265
|
+
},
|
|
7146
7266
|
"unique_on": {
|
|
7147
7267
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7148
7268
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7149
7269
|
"type": "string"
|
|
7150
7270
|
},
|
|
7271
|
+
"unique_on_message": {
|
|
7272
|
+
"description": "This key defines the message that explains why an Input needs to be unique. This key requires you to define `options.unique_on`.\n\nThis key has no default.",
|
|
7273
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to be unique. This key requires\nyou to define `options.unique_on`.\n\nThis key has no default.",
|
|
7274
|
+
"type": "string"
|
|
7275
|
+
},
|
|
7151
7276
|
"value_key": {
|
|
7152
7277
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7153
7278
|
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
@@ -7323,11 +7448,21 @@
|
|
|
7323
7448
|
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
7324
7449
|
"type": "number"
|
|
7325
7450
|
},
|
|
7451
|
+
"max_items_message": {
|
|
7452
|
+
"description": "This key defines the message that explains why an Input needs to have a maximum number of items. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
7453
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a maximum number of\nitems. This key requires you to define `options.max_items`.\n\nThis key has no default.",
|
|
7454
|
+
"type": "string"
|
|
7455
|
+
},
|
|
7326
7456
|
"min_items": {
|
|
7327
7457
|
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7328
7458
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7329
7459
|
"type": "number"
|
|
7330
7460
|
},
|
|
7461
|
+
"min_items_message": {
|
|
7462
|
+
"description": "This key defines the message that explains why an Input needs to have a minimum number of items. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
7463
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a minimum number of\nitems. This key requires you to define `options.min_items`.\n\nThis key has no default.",
|
|
7464
|
+
"type": "string"
|
|
7465
|
+
},
|
|
7331
7466
|
"picker_preview": {
|
|
7332
7467
|
"$ref": "#/definitions/Preview",
|
|
7333
7468
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -7354,11 +7489,21 @@
|
|
|
7354
7489
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7355
7490
|
"type": "boolean"
|
|
7356
7491
|
},
|
|
7492
|
+
"required_message": {
|
|
7493
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
7494
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
7495
|
+
"type": "string"
|
|
7496
|
+
},
|
|
7357
7497
|
"unique_on": {
|
|
7358
7498
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7359
7499
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7360
7500
|
"type": "string"
|
|
7361
7501
|
},
|
|
7502
|
+
"unique_on_message": {
|
|
7503
|
+
"description": "This key defines the message that explains why an Input needs to be unique. This key requires you to define `options.unique_on`.\n\nThis key has no default.",
|
|
7504
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to be unique. This key requires\nyou to define `options.unique_on`.\n\nThis key has no default.",
|
|
7505
|
+
"type": "string"
|
|
7506
|
+
},
|
|
7362
7507
|
"value_key": {
|
|
7363
7508
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7364
7509
|
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
@@ -7514,6 +7659,11 @@
|
|
|
7514
7659
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7515
7660
|
"type": "boolean"
|
|
7516
7661
|
},
|
|
7662
|
+
"required_message": {
|
|
7663
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
7664
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
7665
|
+
"type": "string"
|
|
7666
|
+
},
|
|
7517
7667
|
"step": {
|
|
7518
7668
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
7519
7669
|
"markdownDescription": "A number that specifies the granularity that the value must adhere to, or the special value\nany, which allows any decimal value between `max` and `min`.",
|
|
@@ -7735,6 +7885,11 @@
|
|
|
7735
7885
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7736
7886
|
"type": "boolean"
|
|
7737
7887
|
},
|
|
7888
|
+
"required_message": {
|
|
7889
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
7890
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
7891
|
+
"type": "string"
|
|
7892
|
+
},
|
|
7738
7893
|
"structures": {
|
|
7739
7894
|
"anyOf": [
|
|
7740
7895
|
{
|
|
@@ -8124,6 +8279,11 @@
|
|
|
8124
8279
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8125
8280
|
"type": "boolean"
|
|
8126
8281
|
},
|
|
8282
|
+
"required_message": {
|
|
8283
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
8284
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
8285
|
+
"type": "string"
|
|
8286
|
+
},
|
|
8127
8287
|
"step": {
|
|
8128
8288
|
"default": 1,
|
|
8129
8289
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
@@ -8403,6 +8563,11 @@
|
|
|
8403
8563
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8404
8564
|
"type": "number"
|
|
8405
8565
|
},
|
|
8566
|
+
"max_length_message": {
|
|
8567
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
8568
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
8569
|
+
"type": "string"
|
|
8570
|
+
},
|
|
8406
8571
|
"mime_type": {
|
|
8407
8572
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
8408
8573
|
"enum": [
|
|
@@ -8418,6 +8583,11 @@
|
|
|
8418
8583
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8419
8584
|
"type": "number"
|
|
8420
8585
|
},
|
|
8586
|
+
"min_length_message": {
|
|
8587
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
8588
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
8589
|
+
"type": "string"
|
|
8590
|
+
},
|
|
8421
8591
|
"numberedlist": {
|
|
8422
8592
|
"default": true,
|
|
8423
8593
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8517,6 +8687,11 @@
|
|
|
8517
8687
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8518
8688
|
"type": "boolean"
|
|
8519
8689
|
},
|
|
8690
|
+
"required_message": {
|
|
8691
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
8692
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
8693
|
+
"type": "string"
|
|
8694
|
+
},
|
|
8520
8695
|
"resize_style": {
|
|
8521
8696
|
"default": "contain",
|
|
8522
8697
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -8837,11 +9012,21 @@
|
|
|
8837
9012
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8838
9013
|
"type": "number"
|
|
8839
9014
|
},
|
|
9015
|
+
"max_length_message": {
|
|
9016
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
9017
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
9018
|
+
"type": "string"
|
|
9019
|
+
},
|
|
8840
9020
|
"min_length": {
|
|
8841
9021
|
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8842
9022
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8843
9023
|
"type": "number"
|
|
8844
9024
|
},
|
|
9025
|
+
"min_length_message": {
|
|
9026
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
9027
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
9028
|
+
"type": "string"
|
|
9029
|
+
},
|
|
8845
9030
|
"pattern": {
|
|
8846
9031
|
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8847
9032
|
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
@@ -8922,6 +9107,11 @@
|
|
|
8922
9107
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8923
9108
|
"type": "boolean"
|
|
8924
9109
|
},
|
|
9110
|
+
"required_message": {
|
|
9111
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
9112
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
9113
|
+
"type": "string"
|
|
9114
|
+
},
|
|
8925
9115
|
"value_key": {
|
|
8926
9116
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
8927
9117
|
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
@@ -10291,11 +10481,21 @@
|
|
|
10291
10481
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10292
10482
|
"type": "number"
|
|
10293
10483
|
},
|
|
10484
|
+
"max_length_message": {
|
|
10485
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
10486
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
10487
|
+
"type": "string"
|
|
10488
|
+
},
|
|
10294
10489
|
"min_length": {
|
|
10295
10490
|
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10296
10491
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10297
10492
|
"type": "number"
|
|
10298
10493
|
},
|
|
10494
|
+
"min_length_message": {
|
|
10495
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
10496
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
10497
|
+
"type": "string"
|
|
10498
|
+
},
|
|
10299
10499
|
"pattern": {
|
|
10300
10500
|
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10301
10501
|
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
@@ -10359,6 +10559,11 @@
|
|
|
10359
10559
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
10360
10560
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
10361
10561
|
"type": "boolean"
|
|
10562
|
+
},
|
|
10563
|
+
"required_message": {
|
|
10564
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
10565
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
10566
|
+
"type": "string"
|
|
10362
10567
|
}
|
|
10363
10568
|
},
|
|
10364
10569
|
"type": "object"
|
|
@@ -10482,11 +10687,21 @@
|
|
|
10482
10687
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10483
10688
|
"type": "number"
|
|
10484
10689
|
},
|
|
10690
|
+
"max_length_message": {
|
|
10691
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
10692
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
10693
|
+
"type": "string"
|
|
10694
|
+
},
|
|
10485
10695
|
"min_length": {
|
|
10486
10696
|
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10487
10697
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10488
10698
|
"type": "number"
|
|
10489
10699
|
},
|
|
10700
|
+
"min_length_message": {
|
|
10701
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
10702
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
10703
|
+
"type": "string"
|
|
10704
|
+
},
|
|
10490
10705
|
"pattern": {
|
|
10491
10706
|
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
10492
10707
|
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
@@ -10551,6 +10766,11 @@
|
|
|
10551
10766
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
10552
10767
|
"type": "boolean"
|
|
10553
10768
|
},
|
|
10769
|
+
"required_message": {
|
|
10770
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
10771
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
10772
|
+
"type": "string"
|
|
10773
|
+
},
|
|
10554
10774
|
"show_count": {
|
|
10555
10775
|
"default": false,
|
|
10556
10776
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10701,6 +10921,11 @@
|
|
|
10701
10921
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
10702
10922
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
10703
10923
|
"type": "boolean"
|
|
10924
|
+
},
|
|
10925
|
+
"required_message": {
|
|
10926
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
10927
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
10928
|
+
"type": "string"
|
|
10704
10929
|
}
|
|
10705
10930
|
},
|
|
10706
10931
|
"type": "object"
|
|
@@ -11589,11 +11814,26 @@
|
|
|
11589
11814
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
11590
11815
|
"type": "boolean"
|
|
11591
11816
|
},
|
|
11817
|
+
"max_file_size": {
|
|
11818
|
+
"description": "This key defines the maximum file size, in kilobytes, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from uploading a file larger than the specified size. If the Input already contains a file larger than the specified size, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer.",
|
|
11819
|
+
"markdownDescription": "This key defines the maximum file size, in kilobytes, that CloudCannon will allow in an Input.\nWhen configured, CloudCannon will prevent you from uploading a file larger than the specified\nsize. If the Input already contains a file larger than the specified size, CloudCannon will\nrequire you to change it to a valid value to save your changes, or discard your unsaved\nchanges.\n\nValue can be any positive integer.",
|
|
11820
|
+
"type": "number"
|
|
11821
|
+
},
|
|
11822
|
+
"max_file_size_message": {
|
|
11823
|
+
"description": "This key defines the message that explains why an Input needs to have a maximum file size. This key requires you to define `options.max_file_size`.\n\nThis key has no default.",
|
|
11824
|
+
"markdownDescription": "This key defines the message that explains why an Input needs to have a maximum file size. This\nkey requires you to define `options.max_file_size`.\n\nThis key has no default.",
|
|
11825
|
+
"type": "string"
|
|
11826
|
+
},
|
|
11592
11827
|
"max_length": {
|
|
11593
11828
|
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
11594
11829
|
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
11595
11830
|
"type": "number"
|
|
11596
11831
|
},
|
|
11832
|
+
"max_length_message": {
|
|
11833
|
+
"description": "This key defines the message that explains which maximum string length an Input will accept. This key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
11834
|
+
"markdownDescription": "This key defines the message that explains which maximum string length an Input will accept.\nThis key requires you to define `options.max_length`.\n\nThis key has no default.",
|
|
11835
|
+
"type": "string"
|
|
11836
|
+
},
|
|
11597
11837
|
"mime_type": {
|
|
11598
11838
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
11599
11839
|
"enum": [
|
|
@@ -11609,6 +11849,11 @@
|
|
|
11609
11849
|
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
11610
11850
|
"type": "number"
|
|
11611
11851
|
},
|
|
11852
|
+
"min_length_message": {
|
|
11853
|
+
"description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
11854
|
+
"markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
|
|
11855
|
+
"type": "string"
|
|
11856
|
+
},
|
|
11612
11857
|
"paths": {
|
|
11613
11858
|
"$ref": "#/definitions/Paths",
|
|
11614
11859
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
@@ -11679,6 +11924,11 @@
|
|
|
11679
11924
|
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
11680
11925
|
"type": "boolean"
|
|
11681
11926
|
},
|
|
11927
|
+
"required_message": {
|
|
11928
|
+
"description": "This key defines the message that explains why an Input is required. This key requires you to define `options.required`.\n\nThis key has no default.",
|
|
11929
|
+
"markdownDescription": "This key defines the message that explains why an Input is required. This key requires you to\ndefine `options.required`.\n\nThis key has no default.",
|
|
11930
|
+
"type": "string"
|
|
11931
|
+
},
|
|
11682
11932
|
"resize_style": {
|
|
11683
11933
|
"default": "contain",
|
|
11684
11934
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|