@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.
@@ -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.",
@@ -7114,11 +7224,21 @@
7114
7224
  "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.",
7115
7225
  "type": "number"
7116
7226
  },
7227
+ "max_items_message": {
7228
+ "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.",
7229
+ "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.",
7230
+ "type": "string"
7231
+ },
7117
7232
  "min_items": {
7118
7233
  "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.",
7119
7234
  "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.",
7120
7235
  "type": "number"
7121
7236
  },
7237
+ "min_items_message": {
7238
+ "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.",
7239
+ "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.",
7240
+ "type": "string"
7241
+ },
7122
7242
  "picker_preview": {
7123
7243
  "$ref": "#/definitions/Preview",
7124
7244
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7145,11 +7265,21 @@
7145
7265
  "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).",
7146
7266
  "type": "boolean"
7147
7267
  },
7268
+ "required_message": {
7269
+ "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.",
7270
+ "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.",
7271
+ "type": "string"
7272
+ },
7148
7273
  "unique_on": {
7149
7274
  "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.",
7150
7275
  "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.",
7151
7276
  "type": "string"
7152
7277
  },
7278
+ "unique_on_message": {
7279
+ "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.",
7280
+ "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.",
7281
+ "type": "string"
7282
+ },
7153
7283
  "value_key": {
7154
7284
  "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.",
7155
7285
  "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.",
@@ -7325,11 +7455,21 @@
7325
7455
  "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.",
7326
7456
  "type": "number"
7327
7457
  },
7458
+ "max_items_message": {
7459
+ "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.",
7460
+ "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.",
7461
+ "type": "string"
7462
+ },
7328
7463
  "min_items": {
7329
7464
  "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.",
7330
7465
  "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.",
7331
7466
  "type": "number"
7332
7467
  },
7468
+ "min_items_message": {
7469
+ "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.",
7470
+ "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.",
7471
+ "type": "string"
7472
+ },
7333
7473
  "picker_preview": {
7334
7474
  "$ref": "#/definitions/Preview",
7335
7475
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7356,11 +7496,21 @@
7356
7496
  "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).",
7357
7497
  "type": "boolean"
7358
7498
  },
7499
+ "required_message": {
7500
+ "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.",
7501
+ "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.",
7502
+ "type": "string"
7503
+ },
7359
7504
  "unique_on": {
7360
7505
  "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.",
7361
7506
  "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.",
7362
7507
  "type": "string"
7363
7508
  },
7509
+ "unique_on_message": {
7510
+ "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.",
7511
+ "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.",
7512
+ "type": "string"
7513
+ },
7364
7514
  "value_key": {
7365
7515
  "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.",
7366
7516
  "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.",
@@ -7516,6 +7666,11 @@
7516
7666
  "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).",
7517
7667
  "type": "boolean"
7518
7668
  },
7669
+ "required_message": {
7670
+ "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.",
7671
+ "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.",
7672
+ "type": "string"
7673
+ },
7519
7674
  "step": {
7520
7675
  "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`.",
7521
7676
  "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`.",
@@ -7737,6 +7892,11 @@
7737
7892
  "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).",
7738
7893
  "type": "boolean"
7739
7894
  },
7895
+ "required_message": {
7896
+ "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.",
7897
+ "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.",
7898
+ "type": "string"
7899
+ },
7740
7900
  "structures": {
7741
7901
  "anyOf": [
7742
7902
  {
@@ -8126,6 +8286,11 @@
8126
8286
  "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).",
8127
8287
  "type": "boolean"
8128
8288
  },
8289
+ "required_message": {
8290
+ "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.",
8291
+ "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.",
8292
+ "type": "string"
8293
+ },
8129
8294
  "step": {
8130
8295
  "default": 1,
8131
8296
  "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`.",
@@ -8405,6 +8570,11 @@
8405
8570
  "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.",
8406
8571
  "type": "number"
8407
8572
  },
8573
+ "max_length_message": {
8574
+ "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.",
8575
+ "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.",
8576
+ "type": "string"
8577
+ },
8408
8578
  "mime_type": {
8409
8579
  "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.",
8410
8580
  "enum": [
@@ -8420,6 +8590,11 @@
8420
8590
  "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.",
8421
8591
  "type": "number"
8422
8592
  },
8593
+ "min_length_message": {
8594
+ "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.",
8595
+ "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.",
8596
+ "type": "string"
8597
+ },
8423
8598
  "numberedlist": {
8424
8599
  "default": true,
8425
8600
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -8519,6 +8694,11 @@
8519
8694
  "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).",
8520
8695
  "type": "boolean"
8521
8696
  },
8697
+ "required_message": {
8698
+ "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.",
8699
+ "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.",
8700
+ "type": "string"
8701
+ },
8522
8702
  "resize_style": {
8523
8703
  "default": "contain",
8524
8704
  "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.",
@@ -8839,11 +9019,21 @@
8839
9019
  "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.",
8840
9020
  "type": "number"
8841
9021
  },
9022
+ "max_length_message": {
9023
+ "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.",
9024
+ "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.",
9025
+ "type": "string"
9026
+ },
8842
9027
  "min_length": {
8843
9028
  "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.",
8844
9029
  "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.",
8845
9030
  "type": "number"
8846
9031
  },
9032
+ "min_length_message": {
9033
+ "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.",
9034
+ "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.",
9035
+ "type": "string"
9036
+ },
8847
9037
  "pattern": {
8848
9038
  "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.",
8849
9039
  "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.",
@@ -8924,6 +9114,11 @@
8924
9114
  "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).",
8925
9115
  "type": "boolean"
8926
9116
  },
9117
+ "required_message": {
9118
+ "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.",
9119
+ "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.",
9120
+ "type": "string"
9121
+ },
8927
9122
  "value_key": {
8928
9123
  "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.",
8929
9124
  "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.",
@@ -10293,11 +10488,21 @@
10293
10488
  "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.",
10294
10489
  "type": "number"
10295
10490
  },
10491
+ "max_length_message": {
10492
+ "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.",
10493
+ "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.",
10494
+ "type": "string"
10495
+ },
10296
10496
  "min_length": {
10297
10497
  "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.",
10298
10498
  "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.",
10299
10499
  "type": "number"
10300
10500
  },
10501
+ "min_length_message": {
10502
+ "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.",
10503
+ "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.",
10504
+ "type": "string"
10505
+ },
10301
10506
  "pattern": {
10302
10507
  "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.",
10303
10508
  "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.",
@@ -10361,6 +10566,11 @@
10361
10566
  "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).",
10362
10567
  "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).",
10363
10568
  "type": "boolean"
10569
+ },
10570
+ "required_message": {
10571
+ "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.",
10572
+ "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.",
10573
+ "type": "string"
10364
10574
  }
10365
10575
  },
10366
10576
  "type": "object"
@@ -10484,11 +10694,21 @@
10484
10694
  "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.",
10485
10695
  "type": "number"
10486
10696
  },
10697
+ "max_length_message": {
10698
+ "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.",
10699
+ "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.",
10700
+ "type": "string"
10701
+ },
10487
10702
  "min_length": {
10488
10703
  "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.",
10489
10704
  "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.",
10490
10705
  "type": "number"
10491
10706
  },
10707
+ "min_length_message": {
10708
+ "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.",
10709
+ "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.",
10710
+ "type": "string"
10711
+ },
10492
10712
  "pattern": {
10493
10713
  "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.",
10494
10714
  "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.",
@@ -10553,6 +10773,11 @@
10553
10773
  "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).",
10554
10774
  "type": "boolean"
10555
10775
  },
10776
+ "required_message": {
10777
+ "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.",
10778
+ "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.",
10779
+ "type": "string"
10780
+ },
10556
10781
  "show_count": {
10557
10782
  "default": false,
10558
10783
  "description": "Shows a character counter below the input if enabled.",
@@ -10703,6 +10928,11 @@
10703
10928
  "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).",
10704
10929
  "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).",
10705
10930
  "type": "boolean"
10931
+ },
10932
+ "required_message": {
10933
+ "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.",
10934
+ "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.",
10935
+ "type": "string"
10706
10936
  }
10707
10937
  },
10708
10938
  "type": "object"
@@ -11591,11 +11821,26 @@
11591
11821
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
11592
11822
  "type": "boolean"
11593
11823
  },
11824
+ "max_file_size": {
11825
+ "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.",
11826
+ "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.",
11827
+ "type": "number"
11828
+ },
11829
+ "max_file_size_message": {
11830
+ "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.",
11831
+ "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.",
11832
+ "type": "string"
11833
+ },
11594
11834
  "max_length": {
11595
11835
  "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.",
11596
11836
  "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.",
11597
11837
  "type": "number"
11598
11838
  },
11839
+ "max_length_message": {
11840
+ "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.",
11841
+ "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.",
11842
+ "type": "string"
11843
+ },
11599
11844
  "mime_type": {
11600
11845
  "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.",
11601
11846
  "enum": [
@@ -11611,6 +11856,11 @@
11611
11856
  "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.",
11612
11857
  "type": "number"
11613
11858
  },
11859
+ "min_length_message": {
11860
+ "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.",
11861
+ "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.",
11862
+ "type": "string"
11863
+ },
11614
11864
  "paths": {
11615
11865
  "$ref": "#/definitions/Paths",
11616
11866
  "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`.",
@@ -11681,6 +11931,11 @@
11681
11931
  "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).",
11682
11932
  "type": "boolean"
11683
11933
  },
11934
+ "required_message": {
11935
+ "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.",
11936
+ "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.",
11937
+ "type": "string"
11938
+ },
11684
11939
  "resize_style": {
11685
11940
  "default": "contain",
11686
11941
  "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.",