@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"
@@ -818,11 +838,21 @@
818
838
  "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.",
819
839
  "type": "number"
820
840
  },
841
+ "max_length_message": {
842
+ "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.",
843
+ "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.",
844
+ "type": "string"
845
+ },
821
846
  "min_length": {
822
847
  "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.",
823
848
  "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.",
824
849
  "type": "number"
825
850
  },
851
+ "min_length_message": {
852
+ "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.",
853
+ "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.",
854
+ "type": "string"
855
+ },
826
856
  "pattern": {
827
857
  "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.",
828
858
  "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.",
@@ -903,6 +933,11 @@
903
933
  "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).",
904
934
  "type": "boolean"
905
935
  },
936
+ "required_message": {
937
+ "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.",
938
+ "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.",
939
+ "type": "string"
940
+ },
906
941
  "value_key": {
907
942
  "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.",
908
943
  "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.",
@@ -1048,6 +1083,11 @@
1048
1083
  "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.",
1049
1084
  "type": "number"
1050
1085
  },
1086
+ "max_length_message": {
1087
+ "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.",
1088
+ "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.",
1089
+ "type": "string"
1090
+ },
1051
1091
  "max_visible_lines": {
1052
1092
  "default": 30,
1053
1093
  "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.",
@@ -1059,6 +1099,11 @@
1059
1099
  "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1060
1100
  "type": "number"
1061
1101
  },
1102
+ "min_length_message": {
1103
+ "description": "This key defines the message that explains which minimum string length an Input will accept. This key requires you to define `options.min_length`.\n\nThis key has no default.",
1104
+ "markdownDescription": "This key defines the message that explains which minimum string length an Input will accept.\nThis key requires you to define `options.min_length`.\n\nThis key has no default.",
1105
+ "type": "string"
1106
+ },
1062
1107
  "min_visible_lines": {
1063
1108
  "default": 10,
1064
1109
  "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`.",
@@ -1124,6 +1169,11 @@
1124
1169
  "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).",
1125
1170
  "type": "boolean"
1126
1171
  },
1172
+ "required_message": {
1173
+ "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.",
1174
+ "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.",
1175
+ "type": "string"
1176
+ },
1127
1177
  "show_gutter": {
1128
1178
  "default": true,
1129
1179
  "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",
@@ -1490,11 +1540,21 @@
1490
1540
  "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.",
1491
1541
  "type": "number"
1492
1542
  },
1543
+ "max_length_message": {
1544
+ "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.",
1545
+ "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.",
1546
+ "type": "string"
1547
+ },
1493
1548
  "min_length": {
1494
1549
  "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.",
1495
1550
  "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.",
1496
1551
  "type": "number"
1497
1552
  },
1553
+ "min_length_message": {
1554
+ "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.",
1555
+ "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.",
1556
+ "type": "string"
1557
+ },
1498
1558
  "pattern": {
1499
1559
  "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.",
1500
1560
  "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.",
@@ -1553,6 +1613,11 @@
1553
1613
  "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).",
1554
1614
  "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).",
1555
1615
  "type": "boolean"
1616
+ },
1617
+ "required_message": {
1618
+ "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.",
1619
+ "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.",
1620
+ "type": "string"
1556
1621
  }
1557
1622
  },
1558
1623
  "type": "object"
@@ -1779,17 +1844,32 @@
1779
1844
  "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.",
1780
1845
  "type": "string"
1781
1846
  },
1847
+ "end_before_message": {
1848
+ "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.",
1849
+ "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.",
1850
+ "type": "string"
1851
+ },
1782
1852
  "required": {
1783
1853
  "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).",
1784
1854
  "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).",
1785
1855
  "type": "boolean"
1786
1856
  },
1857
+ "required_message": {
1858
+ "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.",
1859
+ "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.",
1860
+ "type": "string"
1861
+ },
1787
1862
  "start_from": {
1788
1863
  "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.",
1789
1864
  "format": "date-time",
1790
1865
  "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.",
1791
1866
  "type": "string"
1792
1867
  },
1868
+ "start_from_message": {
1869
+ "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.",
1870
+ "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.",
1871
+ "type": "string"
1872
+ },
1793
1873
  "timezone": {
1794
1874
  "$ref": "#/definitions/Timezone",
1795
1875
  "default": "Etc/UTC",
@@ -2111,11 +2191,26 @@
2111
2191
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
2112
2192
  "type": "boolean"
2113
2193
  },
2194
+ "max_file_size": {
2195
+ "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.",
2196
+ "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.",
2197
+ "type": "number"
2198
+ },
2199
+ "max_file_size_message": {
2200
+ "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.",
2201
+ "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.",
2202
+ "type": "string"
2203
+ },
2114
2204
  "max_length": {
2115
2205
  "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.",
2116
2206
  "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.",
2117
2207
  "type": "number"
2118
2208
  },
2209
+ "max_length_message": {
2210
+ "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.",
2211
+ "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.",
2212
+ "type": "string"
2213
+ },
2119
2214
  "mime_type": {
2120
2215
  "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.",
2121
2216
  "enum": [
@@ -2131,6 +2226,11 @@
2131
2226
  "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.",
2132
2227
  "type": "number"
2133
2228
  },
2229
+ "min_length_message": {
2230
+ "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.",
2231
+ "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.",
2232
+ "type": "string"
2233
+ },
2134
2234
  "paths": {
2135
2235
  "$ref": "#/definitions/Paths",
2136
2236
  "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`.",
@@ -2201,6 +2301,11 @@
2201
2301
  "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).",
2202
2302
  "type": "boolean"
2203
2303
  },
2304
+ "required_message": {
2305
+ "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.",
2306
+ "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.",
2307
+ "type": "string"
2308
+ },
2204
2309
  "resize_style": {
2205
2310
  "default": "contain",
2206
2311
  "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.",
@@ -7021,11 +7126,21 @@
7021
7126
  "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.",
7022
7127
  "type": "number"
7023
7128
  },
7129
+ "max_items_message": {
7130
+ "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.",
7131
+ "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.",
7132
+ "type": "string"
7133
+ },
7024
7134
  "min_items": {
7025
7135
  "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.",
7026
7136
  "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.",
7027
7137
  "type": "number"
7028
7138
  },
7139
+ "min_items_message": {
7140
+ "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.",
7141
+ "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.",
7142
+ "type": "string"
7143
+ },
7029
7144
  "picker_preview": {
7030
7145
  "$ref": "#/definitions/Preview",
7031
7146
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7052,11 +7167,21 @@
7052
7167
  "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).",
7053
7168
  "type": "boolean"
7054
7169
  },
7170
+ "required_message": {
7171
+ "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.",
7172
+ "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.",
7173
+ "type": "string"
7174
+ },
7055
7175
  "unique_on": {
7056
7176
  "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.",
7057
7177
  "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.",
7058
7178
  "type": "string"
7059
7179
  },
7180
+ "unique_on_message": {
7181
+ "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.",
7182
+ "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.",
7183
+ "type": "string"
7184
+ },
7060
7185
  "value_key": {
7061
7186
  "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.",
7062
7187
  "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.",
@@ -7232,11 +7357,21 @@
7232
7357
  "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.",
7233
7358
  "type": "number"
7234
7359
  },
7360
+ "max_items_message": {
7361
+ "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.",
7362
+ "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.",
7363
+ "type": "string"
7364
+ },
7235
7365
  "min_items": {
7236
7366
  "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.",
7237
7367
  "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.",
7238
7368
  "type": "number"
7239
7369
  },
7370
+ "min_items_message": {
7371
+ "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.",
7372
+ "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.",
7373
+ "type": "string"
7374
+ },
7240
7375
  "picker_preview": {
7241
7376
  "$ref": "#/definitions/Preview",
7242
7377
  "description": "Changes the way items are previewed in the CMS while being chosen.",
@@ -7263,11 +7398,21 @@
7263
7398
  "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).",
7264
7399
  "type": "boolean"
7265
7400
  },
7401
+ "required_message": {
7402
+ "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.",
7403
+ "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.",
7404
+ "type": "string"
7405
+ },
7266
7406
  "unique_on": {
7267
7407
  "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.",
7268
7408
  "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.",
7269
7409
  "type": "string"
7270
7410
  },
7411
+ "unique_on_message": {
7412
+ "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.",
7413
+ "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.",
7414
+ "type": "string"
7415
+ },
7271
7416
  "value_key": {
7272
7417
  "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.",
7273
7418
  "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.",
@@ -7413,16 +7558,31 @@
7413
7558
  "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.",
7414
7559
  "type": "number"
7415
7560
  },
7561
+ "max_message": {
7562
+ "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.",
7563
+ "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.",
7564
+ "type": "string"
7565
+ },
7416
7566
  "min": {
7417
7567
  "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.",
7418
7568
  "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.",
7419
7569
  "type": "number"
7420
7570
  },
7571
+ "min_message": {
7572
+ "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.",
7573
+ "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.",
7574
+ "type": "string"
7575
+ },
7421
7576
  "required": {
7422
7577
  "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).",
7423
7578
  "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).",
7424
7579
  "type": "boolean"
7425
7580
  },
7581
+ "required_message": {
7582
+ "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.",
7583
+ "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.",
7584
+ "type": "string"
7585
+ },
7426
7586
  "step": {
7427
7587
  "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`.",
7428
7588
  "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`.",
@@ -7644,6 +7804,11 @@
7644
7804
  "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).",
7645
7805
  "type": "boolean"
7646
7806
  },
7807
+ "required_message": {
7808
+ "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.",
7809
+ "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.",
7810
+ "type": "string"
7811
+ },
7647
7812
  "structures": {
7648
7813
  "anyOf": [
7649
7814
  {
@@ -8022,17 +8187,32 @@
8022
8187
  "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.",
8023
8188
  "type": "number"
8024
8189
  },
8190
+ "max_message": {
8191
+ "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.",
8192
+ "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.",
8193
+ "type": "string"
8194
+ },
8025
8195
  "min": {
8026
8196
  "default": 0,
8027
8197
  "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.",
8028
8198
  "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.",
8029
8199
  "type": "number"
8030
8200
  },
8201
+ "min_message": {
8202
+ "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.",
8203
+ "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.",
8204
+ "type": "string"
8205
+ },
8031
8206
  "required": {
8032
8207
  "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).",
8033
8208
  "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).",
8034
8209
  "type": "boolean"
8035
8210
  },
8211
+ "required_message": {
8212
+ "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.",
8213
+ "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.",
8214
+ "type": "string"
8215
+ },
8036
8216
  "step": {
8037
8217
  "default": 1,
8038
8218
  "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`.",
@@ -8312,6 +8492,11 @@
8312
8492
  "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.",
8313
8493
  "type": "number"
8314
8494
  },
8495
+ "max_length_message": {
8496
+ "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.",
8497
+ "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.",
8498
+ "type": "string"
8499
+ },
8315
8500
  "mime_type": {
8316
8501
  "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.",
8317
8502
  "enum": [
@@ -8327,6 +8512,11 @@
8327
8512
  "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.",
8328
8513
  "type": "number"
8329
8514
  },
8515
+ "min_length_message": {
8516
+ "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.",
8517
+ "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.",
8518
+ "type": "string"
8519
+ },
8330
8520
  "numberedlist": {
8331
8521
  "default": true,
8332
8522
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -8426,6 +8616,11 @@
8426
8616
  "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).",
8427
8617
  "type": "boolean"
8428
8618
  },
8619
+ "required_message": {
8620
+ "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.",
8621
+ "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.",
8622
+ "type": "string"
8623
+ },
8429
8624
  "resize_style": {
8430
8625
  "default": "contain",
8431
8626
  "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.",
@@ -8746,11 +8941,21 @@
8746
8941
  "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.",
8747
8942
  "type": "number"
8748
8943
  },
8944
+ "max_length_message": {
8945
+ "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.",
8946
+ "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.",
8947
+ "type": "string"
8948
+ },
8749
8949
  "min_length": {
8750
8950
  "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.",
8751
8951
  "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.",
8752
8952
  "type": "number"
8753
8953
  },
8954
+ "min_length_message": {
8955
+ "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.",
8956
+ "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.",
8957
+ "type": "string"
8958
+ },
8754
8959
  "pattern": {
8755
8960
  "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.",
8756
8961
  "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.",
@@ -8831,6 +9036,11 @@
8831
9036
  "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).",
8832
9037
  "type": "boolean"
8833
9038
  },
9039
+ "required_message": {
9040
+ "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.",
9041
+ "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.",
9042
+ "type": "string"
9043
+ },
8834
9044
  "value_key": {
8835
9045
  "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.",
8836
9046
  "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.",
@@ -10200,11 +10410,21 @@
10200
10410
  "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.",
10201
10411
  "type": "number"
10202
10412
  },
10413
+ "max_length_message": {
10414
+ "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.",
10415
+ "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.",
10416
+ "type": "string"
10417
+ },
10203
10418
  "min_length": {
10204
10419
  "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.",
10205
10420
  "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.",
10206
10421
  "type": "number"
10207
10422
  },
10423
+ "min_length_message": {
10424
+ "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.",
10425
+ "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.",
10426
+ "type": "string"
10427
+ },
10208
10428
  "pattern": {
10209
10429
  "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.",
10210
10430
  "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.",
@@ -10268,6 +10488,11 @@
10268
10488
  "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).",
10269
10489
  "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).",
10270
10490
  "type": "boolean"
10491
+ },
10492
+ "required_message": {
10493
+ "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.",
10494
+ "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.",
10495
+ "type": "string"
10271
10496
  }
10272
10497
  },
10273
10498
  "type": "object"
@@ -10391,11 +10616,21 @@
10391
10616
  "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.",
10392
10617
  "type": "number"
10393
10618
  },
10619
+ "max_length_message": {
10620
+ "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.",
10621
+ "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.",
10622
+ "type": "string"
10623
+ },
10394
10624
  "min_length": {
10395
10625
  "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.",
10396
10626
  "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.",
10397
10627
  "type": "number"
10398
10628
  },
10629
+ "min_length_message": {
10630
+ "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.",
10631
+ "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.",
10632
+ "type": "string"
10633
+ },
10399
10634
  "pattern": {
10400
10635
  "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.",
10401
10636
  "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.",
@@ -10460,6 +10695,11 @@
10460
10695
  "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).",
10461
10696
  "type": "boolean"
10462
10697
  },
10698
+ "required_message": {
10699
+ "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.",
10700
+ "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.",
10701
+ "type": "string"
10702
+ },
10463
10703
  "show_count": {
10464
10704
  "default": false,
10465
10705
  "description": "Shows a character counter below the input if enabled.",
@@ -10610,6 +10850,11 @@
10610
10850
  "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).",
10611
10851
  "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).",
10612
10852
  "type": "boolean"
10853
+ },
10854
+ "required_message": {
10855
+ "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.",
10856
+ "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.",
10857
+ "type": "string"
10613
10858
  }
10614
10859
  },
10615
10860
  "type": "object"
@@ -11498,11 +11743,26 @@
11498
11743
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
11499
11744
  "type": "boolean"
11500
11745
  },
11746
+ "max_file_size": {
11747
+ "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.",
11748
+ "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.",
11749
+ "type": "number"
11750
+ },
11751
+ "max_file_size_message": {
11752
+ "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.",
11753
+ "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.",
11754
+ "type": "string"
11755
+ },
11501
11756
  "max_length": {
11502
11757
  "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.",
11503
11758
  "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.",
11504
11759
  "type": "number"
11505
11760
  },
11761
+ "max_length_message": {
11762
+ "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.",
11763
+ "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.",
11764
+ "type": "string"
11765
+ },
11506
11766
  "mime_type": {
11507
11767
  "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.",
11508
11768
  "enum": [
@@ -11518,6 +11778,11 @@
11518
11778
  "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.",
11519
11779
  "type": "number"
11520
11780
  },
11781
+ "min_length_message": {
11782
+ "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.",
11783
+ "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.",
11784
+ "type": "string"
11785
+ },
11521
11786
  "paths": {
11522
11787
  "$ref": "#/definitions/Paths",
11523
11788
  "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`.",
@@ -11588,6 +11853,11 @@
11588
11853
  "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).",
11589
11854
  "type": "boolean"
11590
11855
  },
11856
+ "required_message": {
11857
+ "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.",
11858
+ "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.",
11859
+ "type": "string"
11860
+ },
11591
11861
  "resize_style": {
11592
11862
  "default": "contain",
11593
11863
  "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.",