@cloudcannon/configuration-types 0.0.34 → 0.0.36

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,17 +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
+ },
1649
1719
  "required": {
1650
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).",
1651
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).",
1652
1722
  "type": "boolean"
1653
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
+ },
1654
1729
  "start_from": {
1655
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.",
1656
1731
  "format": "date-time",
1657
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.",
1658
1733
  "type": "string"
1659
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
+ },
1660
1740
  "timezone": {
1661
1741
  "$ref": "#/definitions/Timezone",
1662
1742
  "default": "Etc/UTC",
@@ -1978,11 +2058,26 @@
1978
2058
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
1979
2059
  "type": "boolean"
1980
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
+ },
1981
2071
  "max_length": {
1982
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.",
1983
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.",
1984
2074
  "type": "number"
1985
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
+ },
1986
2081
  "mime_type": {
1987
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.",
1988
2083
  "enum": [
@@ -1998,6 +2093,11 @@
1998
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.",
1999
2094
  "type": "number"
2000
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
+ },
2001
2101
  "paths": {
2002
2102
  "$ref": "#/definitions/Paths",
2003
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`.",
@@ -2068,6 +2168,11 @@
2068
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).",
2069
2169
  "type": "boolean"
2070
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
+ },
2071
2176
  "resize_style": {
2072
2177
  "default": "contain",
2073
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.",
@@ -7119,11 +7224,21 @@
7119
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.",
7120
7225
  "type": "number"
7121
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
+ },
7122
7232
  "min_items": {
7123
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.",
7124
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.",
7125
7235
  "type": "number"
7126
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
+ },
7127
7242
  "picker_preview": {
7128
7243
  "$ref": "#/definitions/Preview",
7129
7244
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7150,11 +7265,21 @@
7150
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).",
7151
7266
  "type": "boolean"
7152
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
+ },
7153
7273
  "unique_on": {
7154
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.",
7155
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.",
7156
7276
  "type": "string"
7157
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
+ },
7158
7283
  "value_key": {
7159
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.",
7160
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.",
@@ -7330,11 +7455,21 @@
7330
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.",
7331
7456
  "type": "number"
7332
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
+ },
7333
7463
  "min_items": {
7334
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.",
7335
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.",
7336
7466
  "type": "number"
7337
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
+ },
7338
7473
  "picker_preview": {
7339
7474
  "$ref": "#/definitions/Preview",
7340
7475
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7361,11 +7496,21 @@
7361
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).",
7362
7497
  "type": "boolean"
7363
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
+ },
7364
7504
  "unique_on": {
7365
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.",
7366
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.",
7367
7507
  "type": "string"
7368
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
+ },
7369
7514
  "value_key": {
7370
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.",
7371
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.",
@@ -7511,16 +7656,31 @@
7511
7656
  "markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.\n\nThis key has no default.",
7512
7657
  "type": "number"
7513
7658
  },
7659
+ "max_message": {
7660
+ "description": "This key defines the message that explains why an Input needs to have a maximum numerical value. This key requires you to define `options.max`.\n\nThis key has no default.",
7661
+ "markdownDescription": "This key defines the message that explains why an Input needs to have a maximum numerical\nvalue. This key requires you to define `options.max`.\n\nThis key has no default.",
7662
+ "type": "string"
7663
+ },
7514
7664
  "min": {
7515
7665
  "description": "This key defines the minimum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input already contains a lesser numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
7516
7666
  "markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.\n\nThis key has no default.",
7517
7667
  "type": "number"
7518
7668
  },
7669
+ "min_message": {
7670
+ "description": "This key defines the message that explains why an Input needs to have a minimum numerical value. This key requires you to define `options.min`.\n\nThis key has no default.",
7671
+ "markdownDescription": "This key defines the message that explains why an Input needs to have a minimum numerical\nvalue. This key requires you to define `options.min`.\n\nThis key has no default.",
7672
+ "type": "string"
7673
+ },
7519
7674
  "required": {
7520
7675
  "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).",
7521
7676
  "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).",
7522
7677
  "type": "boolean"
7523
7678
  },
7679
+ "required_message": {
7680
+ "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.",
7681
+ "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.",
7682
+ "type": "string"
7683
+ },
7524
7684
  "step": {
7525
7685
  "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`.",
7526
7686
  "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`.",
@@ -7742,6 +7902,11 @@
7742
7902
  "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).",
7743
7903
  "type": "boolean"
7744
7904
  },
7905
+ "required_message": {
7906
+ "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.",
7907
+ "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.",
7908
+ "type": "string"
7909
+ },
7745
7910
  "structures": {
7746
7911
  "anyOf": [
7747
7912
  {
@@ -8120,17 +8285,32 @@
8120
8285
  "markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.",
8121
8286
  "type": "number"
8122
8287
  },
8288
+ "max_message": {
8289
+ "description": "This key defines the message that explains why an Input needs to have a maximum numerical value. This key requires you to define `options.max`.\n\nThis key has no default.",
8290
+ "markdownDescription": "This key defines the message that explains why an Input needs to have a maximum numerical\nvalue. This key requires you to define `options.max`.\n\nThis key has no default.",
8291
+ "type": "string"
8292
+ },
8123
8293
  "min": {
8124
8294
  "default": 0,
8125
8295
  "description": "This key defines the minimum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a lesser numerical value. If the Input already contains a lesser numerical value, CloudCannon will require you to enter a valid value to save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater number.",
8126
8296
  "markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.",
8127
8297
  "type": "number"
8128
8298
  },
8299
+ "min_message": {
8300
+ "description": "This key defines the message that explains why an Input needs to have a minimum numerical value. This key requires you to define `options.min`.\n\nThis key has no default.",
8301
+ "markdownDescription": "This key defines the message that explains why an Input needs to have a minimum numerical\nvalue. This key requires you to define `options.min`.\n\nThis key has no default.",
8302
+ "type": "string"
8303
+ },
8129
8304
  "required": {
8130
8305
  "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).",
8131
8306
  "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).",
8132
8307
  "type": "boolean"
8133
8308
  },
8309
+ "required_message": {
8310
+ "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.",
8311
+ "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.",
8312
+ "type": "string"
8313
+ },
8134
8314
  "step": {
8135
8315
  "default": 1,
8136
8316
  "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`.",
@@ -8410,6 +8590,11 @@
8410
8590
  "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.",
8411
8591
  "type": "number"
8412
8592
  },
8593
+ "max_length_message": {
8594
+ "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.",
8595
+ "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.",
8596
+ "type": "string"
8597
+ },
8413
8598
  "mime_type": {
8414
8599
  "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.",
8415
8600
  "enum": [
@@ -8425,6 +8610,11 @@
8425
8610
  "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.",
8426
8611
  "type": "number"
8427
8612
  },
8613
+ "min_length_message": {
8614
+ "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.",
8615
+ "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.",
8616
+ "type": "string"
8617
+ },
8428
8618
  "numberedlist": {
8429
8619
  "default": true,
8430
8620
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -8524,6 +8714,11 @@
8524
8714
  "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).",
8525
8715
  "type": "boolean"
8526
8716
  },
8717
+ "required_message": {
8718
+ "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.",
8719
+ "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.",
8720
+ "type": "string"
8721
+ },
8527
8722
  "resize_style": {
8528
8723
  "default": "contain",
8529
8724
  "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.",
@@ -8844,11 +9039,21 @@
8844
9039
  "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.",
8845
9040
  "type": "number"
8846
9041
  },
9042
+ "max_length_message": {
9043
+ "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.",
9044
+ "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.",
9045
+ "type": "string"
9046
+ },
8847
9047
  "min_length": {
8848
9048
  "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.",
8849
9049
  "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.",
8850
9050
  "type": "number"
8851
9051
  },
9052
+ "min_length_message": {
9053
+ "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.",
9054
+ "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.",
9055
+ "type": "string"
9056
+ },
8852
9057
  "pattern": {
8853
9058
  "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.",
8854
9059
  "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.",
@@ -8929,6 +9134,11 @@
8929
9134
  "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).",
8930
9135
  "type": "boolean"
8931
9136
  },
9137
+ "required_message": {
9138
+ "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.",
9139
+ "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.",
9140
+ "type": "string"
9141
+ },
8932
9142
  "value_key": {
8933
9143
  "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.",
8934
9144
  "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.",
@@ -10298,11 +10508,21 @@
10298
10508
  "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.",
10299
10509
  "type": "number"
10300
10510
  },
10511
+ "max_length_message": {
10512
+ "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.",
10513
+ "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.",
10514
+ "type": "string"
10515
+ },
10301
10516
  "min_length": {
10302
10517
  "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.",
10303
10518
  "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.",
10304
10519
  "type": "number"
10305
10520
  },
10521
+ "min_length_message": {
10522
+ "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.",
10523
+ "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.",
10524
+ "type": "string"
10525
+ },
10306
10526
  "pattern": {
10307
10527
  "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.",
10308
10528
  "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.",
@@ -10366,6 +10586,11 @@
10366
10586
  "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).",
10367
10587
  "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).",
10368
10588
  "type": "boolean"
10589
+ },
10590
+ "required_message": {
10591
+ "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.",
10592
+ "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.",
10593
+ "type": "string"
10369
10594
  }
10370
10595
  },
10371
10596
  "type": "object"
@@ -10489,11 +10714,21 @@
10489
10714
  "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.",
10490
10715
  "type": "number"
10491
10716
  },
10717
+ "max_length_message": {
10718
+ "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.",
10719
+ "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.",
10720
+ "type": "string"
10721
+ },
10492
10722
  "min_length": {
10493
10723
  "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.",
10494
10724
  "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.",
10495
10725
  "type": "number"
10496
10726
  },
10727
+ "min_length_message": {
10728
+ "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.",
10729
+ "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.",
10730
+ "type": "string"
10731
+ },
10497
10732
  "pattern": {
10498
10733
  "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.",
10499
10734
  "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.",
@@ -10558,6 +10793,11 @@
10558
10793
  "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).",
10559
10794
  "type": "boolean"
10560
10795
  },
10796
+ "required_message": {
10797
+ "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.",
10798
+ "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.",
10799
+ "type": "string"
10800
+ },
10561
10801
  "show_count": {
10562
10802
  "default": false,
10563
10803
  "description": "Shows a character counter below the input if enabled.",
@@ -10708,6 +10948,11 @@
10708
10948
  "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).",
10709
10949
  "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).",
10710
10950
  "type": "boolean"
10951
+ },
10952
+ "required_message": {
10953
+ "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.",
10954
+ "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.",
10955
+ "type": "string"
10711
10956
  }
10712
10957
  },
10713
10958
  "type": "object"
@@ -11596,11 +11841,26 @@
11596
11841
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
11597
11842
  "type": "boolean"
11598
11843
  },
11844
+ "max_file_size": {
11845
+ "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.",
11846
+ "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.",
11847
+ "type": "number"
11848
+ },
11849
+ "max_file_size_message": {
11850
+ "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.",
11851
+ "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.",
11852
+ "type": "string"
11853
+ },
11599
11854
  "max_length": {
11600
11855
  "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.",
11601
11856
  "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.",
11602
11857
  "type": "number"
11603
11858
  },
11859
+ "max_length_message": {
11860
+ "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.",
11861
+ "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.",
11862
+ "type": "string"
11863
+ },
11604
11864
  "mime_type": {
11605
11865
  "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.",
11606
11866
  "enum": [
@@ -11616,6 +11876,11 @@
11616
11876
  "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.",
11617
11877
  "type": "number"
11618
11878
  },
11879
+ "min_length_message": {
11880
+ "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.",
11881
+ "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.",
11882
+ "type": "string"
11883
+ },
11619
11884
  "paths": {
11620
11885
  "$ref": "#/definitions/Paths",
11621
11886
  "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`.",
@@ -11686,6 +11951,11 @@
11686
11951
  "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).",
11687
11952
  "type": "boolean"
11688
11953
  },
11954
+ "required_message": {
11955
+ "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.",
11956
+ "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.",
11957
+ "type": "string"
11958
+ },
11689
11959
  "resize_style": {
11690
11960
  "default": "contain",
11691
11961
  "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.",