@cloudcannon/configuration-types 0.0.33 → 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 +255 -0
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +255 -0
- package/dist/cloudcannon-config.legacy-hugo.schema.json +255 -0
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +255 -0
- package/dist/cloudcannon-config.legacy-reader.schema.json +255 -0
- package/package.json +1 -1
- package/src/inputs.d.ts +74 -1
|
@@ -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"
|
|
@@ -880,11 +900,21 @@
|
|
|
880
900
|
"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.",
|
|
881
901
|
"type": "number"
|
|
882
902
|
},
|
|
903
|
+
"max_length_message": {
|
|
904
|
+
"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.",
|
|
905
|
+
"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.",
|
|
906
|
+
"type": "string"
|
|
907
|
+
},
|
|
883
908
|
"min_length": {
|
|
884
909
|
"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.",
|
|
885
910
|
"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.",
|
|
886
911
|
"type": "number"
|
|
887
912
|
},
|
|
913
|
+
"min_length_message": {
|
|
914
|
+
"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.",
|
|
915
|
+
"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.",
|
|
916
|
+
"type": "string"
|
|
917
|
+
},
|
|
888
918
|
"pattern": {
|
|
889
919
|
"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.",
|
|
890
920
|
"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.",
|
|
@@ -965,6 +995,11 @@
|
|
|
965
995
|
"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).",
|
|
966
996
|
"type": "boolean"
|
|
967
997
|
},
|
|
998
|
+
"required_message": {
|
|
999
|
+
"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.",
|
|
1000
|
+
"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.",
|
|
1001
|
+
"type": "string"
|
|
1002
|
+
},
|
|
968
1003
|
"value_key": {
|
|
969
1004
|
"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.",
|
|
970
1005
|
"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.",
|
|
@@ -1110,6 +1145,11 @@
|
|
|
1110
1145
|
"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.",
|
|
1111
1146
|
"type": "number"
|
|
1112
1147
|
},
|
|
1148
|
+
"max_length_message": {
|
|
1149
|
+
"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.",
|
|
1150
|
+
"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.",
|
|
1151
|
+
"type": "string"
|
|
1152
|
+
},
|
|
1113
1153
|
"max_visible_lines": {
|
|
1114
1154
|
"default": 30,
|
|
1115
1155
|
"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.",
|
|
@@ -1121,6 +1161,11 @@
|
|
|
1121
1161
|
"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.",
|
|
1122
1162
|
"type": "number"
|
|
1123
1163
|
},
|
|
1164
|
+
"min_length_message": {
|
|
1165
|
+
"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.",
|
|
1166
|
+
"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.",
|
|
1167
|
+
"type": "string"
|
|
1168
|
+
},
|
|
1124
1169
|
"min_visible_lines": {
|
|
1125
1170
|
"default": 10,
|
|
1126
1171
|
"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`.",
|
|
@@ -1186,6 +1231,11 @@
|
|
|
1186
1231
|
"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).",
|
|
1187
1232
|
"type": "boolean"
|
|
1188
1233
|
},
|
|
1234
|
+
"required_message": {
|
|
1235
|
+
"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.",
|
|
1236
|
+
"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.",
|
|
1237
|
+
"type": "string"
|
|
1238
|
+
},
|
|
1189
1239
|
"show_gutter": {
|
|
1190
1240
|
"default": true,
|
|
1191
1241
|
"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",
|
|
@@ -1371,11 +1421,21 @@
|
|
|
1371
1421
|
"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.",
|
|
1372
1422
|
"type": "number"
|
|
1373
1423
|
},
|
|
1424
|
+
"max_length_message": {
|
|
1425
|
+
"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.",
|
|
1426
|
+
"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.",
|
|
1427
|
+
"type": "string"
|
|
1428
|
+
},
|
|
1374
1429
|
"min_length": {
|
|
1375
1430
|
"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.",
|
|
1376
1431
|
"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.",
|
|
1377
1432
|
"type": "number"
|
|
1378
1433
|
},
|
|
1434
|
+
"min_length_message": {
|
|
1435
|
+
"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.",
|
|
1436
|
+
"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.",
|
|
1437
|
+
"type": "string"
|
|
1438
|
+
},
|
|
1379
1439
|
"pattern": {
|
|
1380
1440
|
"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.",
|
|
1381
1441
|
"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.",
|
|
@@ -1434,6 +1494,11 @@
|
|
|
1434
1494
|
"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).",
|
|
1435
1495
|
"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).",
|
|
1436
1496
|
"type": "boolean"
|
|
1497
|
+
},
|
|
1498
|
+
"required_message": {
|
|
1499
|
+
"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.",
|
|
1500
|
+
"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.",
|
|
1501
|
+
"type": "string"
|
|
1437
1502
|
}
|
|
1438
1503
|
},
|
|
1439
1504
|
"type": "object"
|
|
@@ -1646,12 +1711,32 @@
|
|
|
1646
1711
|
"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.",
|
|
1647
1712
|
"type": "string"
|
|
1648
1713
|
},
|
|
1714
|
+
"end_before_message": {
|
|
1715
|
+
"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.",
|
|
1716
|
+
"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.",
|
|
1717
|
+
"type": "string"
|
|
1718
|
+
},
|
|
1719
|
+
"required": {
|
|
1720
|
+
"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).",
|
|
1721
|
+
"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).",
|
|
1722
|
+
"type": "boolean"
|
|
1723
|
+
},
|
|
1724
|
+
"required_message": {
|
|
1725
|
+
"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.",
|
|
1726
|
+
"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.",
|
|
1727
|
+
"type": "string"
|
|
1728
|
+
},
|
|
1649
1729
|
"start_from": {
|
|
1650
1730
|
"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.",
|
|
1651
1731
|
"format": "date-time",
|
|
1652
1732
|
"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.",
|
|
1653
1733
|
"type": "string"
|
|
1654
1734
|
},
|
|
1735
|
+
"start_from_message": {
|
|
1736
|
+
"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.",
|
|
1737
|
+
"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.",
|
|
1738
|
+
"type": "string"
|
|
1739
|
+
},
|
|
1655
1740
|
"timezone": {
|
|
1656
1741
|
"$ref": "#/definitions/Timezone",
|
|
1657
1742
|
"default": "Etc/UTC",
|
|
@@ -1973,11 +2058,26 @@
|
|
|
1973
2058
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1974
2059
|
"type": "boolean"
|
|
1975
2060
|
},
|
|
2061
|
+
"max_file_size": {
|
|
2062
|
+
"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.",
|
|
2063
|
+
"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.",
|
|
2064
|
+
"type": "number"
|
|
2065
|
+
},
|
|
2066
|
+
"max_file_size_message": {
|
|
2067
|
+
"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.",
|
|
2068
|
+
"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.",
|
|
2069
|
+
"type": "string"
|
|
2070
|
+
},
|
|
1976
2071
|
"max_length": {
|
|
1977
2072
|
"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.",
|
|
1978
2073
|
"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.",
|
|
1979
2074
|
"type": "number"
|
|
1980
2075
|
},
|
|
2076
|
+
"max_length_message": {
|
|
2077
|
+
"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.",
|
|
2078
|
+
"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.",
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
1981
2081
|
"mime_type": {
|
|
1982
2082
|
"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.",
|
|
1983
2083
|
"enum": [
|
|
@@ -1993,6 +2093,11 @@
|
|
|
1993
2093
|
"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.",
|
|
1994
2094
|
"type": "number"
|
|
1995
2095
|
},
|
|
2096
|
+
"min_length_message": {
|
|
2097
|
+
"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.",
|
|
2098
|
+
"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.",
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
},
|
|
1996
2101
|
"paths": {
|
|
1997
2102
|
"$ref": "#/definitions/Paths",
|
|
1998
2103
|
"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`.",
|
|
@@ -2063,6 +2168,11 @@
|
|
|
2063
2168
|
"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).",
|
|
2064
2169
|
"type": "boolean"
|
|
2065
2170
|
},
|
|
2171
|
+
"required_message": {
|
|
2172
|
+
"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.",
|
|
2173
|
+
"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.",
|
|
2174
|
+
"type": "string"
|
|
2175
|
+
},
|
|
2066
2176
|
"resize_style": {
|
|
2067
2177
|
"default": "contain",
|
|
2068
2178
|
"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.",
|
|
@@ -6918,11 +7028,21 @@
|
|
|
6918
7028
|
"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.",
|
|
6919
7029
|
"type": "number"
|
|
6920
7030
|
},
|
|
7031
|
+
"max_items_message": {
|
|
7032
|
+
"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.",
|
|
7033
|
+
"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.",
|
|
7034
|
+
"type": "string"
|
|
7035
|
+
},
|
|
6921
7036
|
"min_items": {
|
|
6922
7037
|
"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.",
|
|
6923
7038
|
"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.",
|
|
6924
7039
|
"type": "number"
|
|
6925
7040
|
},
|
|
7041
|
+
"min_items_message": {
|
|
7042
|
+
"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.",
|
|
7043
|
+
"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.",
|
|
7044
|
+
"type": "string"
|
|
7045
|
+
},
|
|
6926
7046
|
"picker_preview": {
|
|
6927
7047
|
"$ref": "#/definitions/Preview",
|
|
6928
7048
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -6949,11 +7069,21 @@
|
|
|
6949
7069
|
"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).",
|
|
6950
7070
|
"type": "boolean"
|
|
6951
7071
|
},
|
|
7072
|
+
"required_message": {
|
|
7073
|
+
"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.",
|
|
7074
|
+
"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.",
|
|
7075
|
+
"type": "string"
|
|
7076
|
+
},
|
|
6952
7077
|
"unique_on": {
|
|
6953
7078
|
"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.",
|
|
6954
7079
|
"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.",
|
|
6955
7080
|
"type": "string"
|
|
6956
7081
|
},
|
|
7082
|
+
"unique_on_message": {
|
|
7083
|
+
"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.",
|
|
7084
|
+
"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.",
|
|
7085
|
+
"type": "string"
|
|
7086
|
+
},
|
|
6957
7087
|
"value_key": {
|
|
6958
7088
|
"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.",
|
|
6959
7089
|
"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.",
|
|
@@ -7129,11 +7259,21 @@
|
|
|
7129
7259
|
"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.",
|
|
7130
7260
|
"type": "number"
|
|
7131
7261
|
},
|
|
7262
|
+
"max_items_message": {
|
|
7263
|
+
"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.",
|
|
7264
|
+
"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.",
|
|
7265
|
+
"type": "string"
|
|
7266
|
+
},
|
|
7132
7267
|
"min_items": {
|
|
7133
7268
|
"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.",
|
|
7134
7269
|
"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.",
|
|
7135
7270
|
"type": "number"
|
|
7136
7271
|
},
|
|
7272
|
+
"min_items_message": {
|
|
7273
|
+
"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.",
|
|
7274
|
+
"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.",
|
|
7275
|
+
"type": "string"
|
|
7276
|
+
},
|
|
7137
7277
|
"picker_preview": {
|
|
7138
7278
|
"$ref": "#/definitions/Preview",
|
|
7139
7279
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -7160,11 +7300,21 @@
|
|
|
7160
7300
|
"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).",
|
|
7161
7301
|
"type": "boolean"
|
|
7162
7302
|
},
|
|
7303
|
+
"required_message": {
|
|
7304
|
+
"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.",
|
|
7305
|
+
"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.",
|
|
7306
|
+
"type": "string"
|
|
7307
|
+
},
|
|
7163
7308
|
"unique_on": {
|
|
7164
7309
|
"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.",
|
|
7165
7310
|
"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.",
|
|
7166
7311
|
"type": "string"
|
|
7167
7312
|
},
|
|
7313
|
+
"unique_on_message": {
|
|
7314
|
+
"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.",
|
|
7315
|
+
"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.",
|
|
7316
|
+
"type": "string"
|
|
7317
|
+
},
|
|
7168
7318
|
"value_key": {
|
|
7169
7319
|
"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.",
|
|
7170
7320
|
"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.",
|
|
@@ -7320,6 +7470,11 @@
|
|
|
7320
7470
|
"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).",
|
|
7321
7471
|
"type": "boolean"
|
|
7322
7472
|
},
|
|
7473
|
+
"required_message": {
|
|
7474
|
+
"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.",
|
|
7475
|
+
"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.",
|
|
7476
|
+
"type": "string"
|
|
7477
|
+
},
|
|
7323
7478
|
"step": {
|
|
7324
7479
|
"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`.",
|
|
7325
7480
|
"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`.",
|
|
@@ -7541,6 +7696,11 @@
|
|
|
7541
7696
|
"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).",
|
|
7542
7697
|
"type": "boolean"
|
|
7543
7698
|
},
|
|
7699
|
+
"required_message": {
|
|
7700
|
+
"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.",
|
|
7701
|
+
"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.",
|
|
7702
|
+
"type": "string"
|
|
7703
|
+
},
|
|
7544
7704
|
"structures": {
|
|
7545
7705
|
"anyOf": [
|
|
7546
7706
|
{
|
|
@@ -7930,6 +8090,11 @@
|
|
|
7930
8090
|
"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).",
|
|
7931
8091
|
"type": "boolean"
|
|
7932
8092
|
},
|
|
8093
|
+
"required_message": {
|
|
8094
|
+
"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.",
|
|
8095
|
+
"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.",
|
|
8096
|
+
"type": "string"
|
|
8097
|
+
},
|
|
7933
8098
|
"step": {
|
|
7934
8099
|
"default": 1,
|
|
7935
8100
|
"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`.",
|
|
@@ -8427,6 +8592,11 @@
|
|
|
8427
8592
|
"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.",
|
|
8428
8593
|
"type": "number"
|
|
8429
8594
|
},
|
|
8595
|
+
"max_length_message": {
|
|
8596
|
+
"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.",
|
|
8597
|
+
"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.",
|
|
8598
|
+
"type": "string"
|
|
8599
|
+
},
|
|
8430
8600
|
"mime_type": {
|
|
8431
8601
|
"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.",
|
|
8432
8602
|
"enum": [
|
|
@@ -8442,6 +8612,11 @@
|
|
|
8442
8612
|
"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.",
|
|
8443
8613
|
"type": "number"
|
|
8444
8614
|
},
|
|
8615
|
+
"min_length_message": {
|
|
8616
|
+
"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.",
|
|
8617
|
+
"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.",
|
|
8618
|
+
"type": "string"
|
|
8619
|
+
},
|
|
8445
8620
|
"numberedlist": {
|
|
8446
8621
|
"default": true,
|
|
8447
8622
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8541,6 +8716,11 @@
|
|
|
8541
8716
|
"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).",
|
|
8542
8717
|
"type": "boolean"
|
|
8543
8718
|
},
|
|
8719
|
+
"required_message": {
|
|
8720
|
+
"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.",
|
|
8721
|
+
"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.",
|
|
8722
|
+
"type": "string"
|
|
8723
|
+
},
|
|
8544
8724
|
"resize_style": {
|
|
8545
8725
|
"default": "contain",
|
|
8546
8726
|
"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.",
|
|
@@ -8861,11 +9041,21 @@
|
|
|
8861
9041
|
"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.",
|
|
8862
9042
|
"type": "number"
|
|
8863
9043
|
},
|
|
9044
|
+
"max_length_message": {
|
|
9045
|
+
"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.",
|
|
9046
|
+
"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.",
|
|
9047
|
+
"type": "string"
|
|
9048
|
+
},
|
|
8864
9049
|
"min_length": {
|
|
8865
9050
|
"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.",
|
|
8866
9051
|
"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.",
|
|
8867
9052
|
"type": "number"
|
|
8868
9053
|
},
|
|
9054
|
+
"min_length_message": {
|
|
9055
|
+
"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.",
|
|
9056
|
+
"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.",
|
|
9057
|
+
"type": "string"
|
|
9058
|
+
},
|
|
8869
9059
|
"pattern": {
|
|
8870
9060
|
"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.",
|
|
8871
9061
|
"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.",
|
|
@@ -8946,6 +9136,11 @@
|
|
|
8946
9136
|
"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).",
|
|
8947
9137
|
"type": "boolean"
|
|
8948
9138
|
},
|
|
9139
|
+
"required_message": {
|
|
9140
|
+
"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.",
|
|
9141
|
+
"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.",
|
|
9142
|
+
"type": "string"
|
|
9143
|
+
},
|
|
8949
9144
|
"value_key": {
|
|
8950
9145
|
"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.",
|
|
8951
9146
|
"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.",
|
|
@@ -10315,11 +10510,21 @@
|
|
|
10315
10510
|
"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.",
|
|
10316
10511
|
"type": "number"
|
|
10317
10512
|
},
|
|
10513
|
+
"max_length_message": {
|
|
10514
|
+
"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.",
|
|
10515
|
+
"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.",
|
|
10516
|
+
"type": "string"
|
|
10517
|
+
},
|
|
10318
10518
|
"min_length": {
|
|
10319
10519
|
"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.",
|
|
10320
10520
|
"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.",
|
|
10321
10521
|
"type": "number"
|
|
10322
10522
|
},
|
|
10523
|
+
"min_length_message": {
|
|
10524
|
+
"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.",
|
|
10525
|
+
"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.",
|
|
10526
|
+
"type": "string"
|
|
10527
|
+
},
|
|
10323
10528
|
"pattern": {
|
|
10324
10529
|
"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.",
|
|
10325
10530
|
"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.",
|
|
@@ -10383,6 +10588,11 @@
|
|
|
10383
10588
|
"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).",
|
|
10384
10589
|
"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).",
|
|
10385
10590
|
"type": "boolean"
|
|
10591
|
+
},
|
|
10592
|
+
"required_message": {
|
|
10593
|
+
"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.",
|
|
10594
|
+
"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.",
|
|
10595
|
+
"type": "string"
|
|
10386
10596
|
}
|
|
10387
10597
|
},
|
|
10388
10598
|
"type": "object"
|
|
@@ -10506,11 +10716,21 @@
|
|
|
10506
10716
|
"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.",
|
|
10507
10717
|
"type": "number"
|
|
10508
10718
|
},
|
|
10719
|
+
"max_length_message": {
|
|
10720
|
+
"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.",
|
|
10721
|
+
"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.",
|
|
10722
|
+
"type": "string"
|
|
10723
|
+
},
|
|
10509
10724
|
"min_length": {
|
|
10510
10725
|
"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.",
|
|
10511
10726
|
"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.",
|
|
10512
10727
|
"type": "number"
|
|
10513
10728
|
},
|
|
10729
|
+
"min_length_message": {
|
|
10730
|
+
"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.",
|
|
10731
|
+
"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.",
|
|
10732
|
+
"type": "string"
|
|
10733
|
+
},
|
|
10514
10734
|
"pattern": {
|
|
10515
10735
|
"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.",
|
|
10516
10736
|
"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.",
|
|
@@ -10575,6 +10795,11 @@
|
|
|
10575
10795
|
"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).",
|
|
10576
10796
|
"type": "boolean"
|
|
10577
10797
|
},
|
|
10798
|
+
"required_message": {
|
|
10799
|
+
"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.",
|
|
10800
|
+
"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.",
|
|
10801
|
+
"type": "string"
|
|
10802
|
+
},
|
|
10578
10803
|
"show_count": {
|
|
10579
10804
|
"default": false,
|
|
10580
10805
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10725,6 +10950,11 @@
|
|
|
10725
10950
|
"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).",
|
|
10726
10951
|
"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).",
|
|
10727
10952
|
"type": "boolean"
|
|
10953
|
+
},
|
|
10954
|
+
"required_message": {
|
|
10955
|
+
"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.",
|
|
10956
|
+
"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.",
|
|
10957
|
+
"type": "string"
|
|
10728
10958
|
}
|
|
10729
10959
|
},
|
|
10730
10960
|
"type": "object"
|
|
@@ -11613,11 +11843,26 @@
|
|
|
11613
11843
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
11614
11844
|
"type": "boolean"
|
|
11615
11845
|
},
|
|
11846
|
+
"max_file_size": {
|
|
11847
|
+
"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.",
|
|
11848
|
+
"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.",
|
|
11849
|
+
"type": "number"
|
|
11850
|
+
},
|
|
11851
|
+
"max_file_size_message": {
|
|
11852
|
+
"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.",
|
|
11853
|
+
"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.",
|
|
11854
|
+
"type": "string"
|
|
11855
|
+
},
|
|
11616
11856
|
"max_length": {
|
|
11617
11857
|
"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.",
|
|
11618
11858
|
"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.",
|
|
11619
11859
|
"type": "number"
|
|
11620
11860
|
},
|
|
11861
|
+
"max_length_message": {
|
|
11862
|
+
"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.",
|
|
11863
|
+
"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.",
|
|
11864
|
+
"type": "string"
|
|
11865
|
+
},
|
|
11621
11866
|
"mime_type": {
|
|
11622
11867
|
"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.",
|
|
11623
11868
|
"enum": [
|
|
@@ -11633,6 +11878,11 @@
|
|
|
11633
11878
|
"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.",
|
|
11634
11879
|
"type": "number"
|
|
11635
11880
|
},
|
|
11881
|
+
"min_length_message": {
|
|
11882
|
+
"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.",
|
|
11883
|
+
"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.",
|
|
11884
|
+
"type": "string"
|
|
11885
|
+
},
|
|
11636
11886
|
"paths": {
|
|
11637
11887
|
"$ref": "#/definitions/Paths",
|
|
11638
11888
|
"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`.",
|
|
@@ -11703,6 +11953,11 @@
|
|
|
11703
11953
|
"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).",
|
|
11704
11954
|
"type": "boolean"
|
|
11705
11955
|
},
|
|
11956
|
+
"required_message": {
|
|
11957
|
+
"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.",
|
|
11958
|
+
"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.",
|
|
11959
|
+
"type": "string"
|
|
11960
|
+
},
|
|
11706
11961
|
"resize_style": {
|
|
11707
11962
|
"default": "contain",
|
|
11708
11963
|
"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.",
|