@cloudcannon/configuration-types 0.0.31 → 0.0.33

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.
@@ -126,8 +126,8 @@
126
126
  },
127
127
  "options": {
128
128
  "$ref": "#/definitions/ArrayInputOptions",
129
- "description": "Options that are specific to this `type` of input.",
130
- "markdownDescription": "Options that are specific to this `type` of input."
129
+ "description": "Options that are specific to Array Inputs.",
130
+ "markdownDescription": "Options that are specific to Array Inputs."
131
131
  },
132
132
  "type": {
133
133
  "const": "array",
@@ -144,6 +144,24 @@
144
144
  "ArrayInputOptions": {
145
145
  "additionalProperties": false,
146
146
  "properties": {
147
+ "disable_add": {
148
+ "default": false,
149
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
150
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
151
+ "type": "boolean"
152
+ },
153
+ "disable_remove": {
154
+ "default": false,
155
+ "description": "Hides the context menu actions on each item for removing them.",
156
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
157
+ "type": "boolean"
158
+ },
159
+ "disable_reorder": {
160
+ "default": false,
161
+ "description": "Hides the controls on each item for moving them.",
162
+ "markdownDescription": "Hides the controls on each item for moving them.",
163
+ "type": "boolean"
164
+ },
147
165
  "empty_type": {
148
166
  "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
149
167
  "enum": [
@@ -153,6 +171,21 @@
153
171
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
154
172
  "type": "string"
155
173
  },
174
+ "max_items": {
175
+ "description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove 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 lesser number.\n\nThis key has no default.",
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
+ "type": "number"
178
+ },
179
+ "min_items": {
180
+ "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
+ "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
+ "type": "number"
183
+ },
184
+ "required": {
185
+ "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
+ "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
+ "type": "boolean"
188
+ },
156
189
  "structures": {
157
190
  "anyOf": [
158
191
  {
@@ -164,6 +197,11 @@
164
197
  ],
165
198
  "description": "Provides data formats for value of this object. When choosing an item, team members are prompted to choose from a number of values you have defined.",
166
199
  "markdownDescription": "Provides data formats for value of this object. When choosing an item, team members are\nprompted to choose from a number of values you have defined."
200
+ },
201
+ "unique_on": {
202
+ "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
+ "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
+ "type": "string"
167
205
  }
168
206
  },
169
207
  "type": "object"
@@ -992,87 +1030,159 @@
992
1030
  "type": "string"
993
1031
  },
994
1032
  "options": {
1033
+ "$ref": "#/definitions/ChoiceInputOptions",
1034
+ "description": "Options that are specific to Choice Inputs.",
1035
+ "markdownDescription": "Options that are specific to Choice Inputs."
1036
+ },
1037
+ "type": {
1038
+ "const": "choice",
1039
+ "description": "Sets an input type, which controls how this input appears and behaves.",
1040
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
1041
+ "type": "string"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "type"
1046
+ ],
1047
+ "type": "object"
1048
+ },
1049
+ "ChoiceInputOptions": {
1050
+ "additionalProperties": false,
1051
+ "properties": {
1052
+ "allow_empty": {
1053
+ "default": true,
1054
+ "description": "Provides an empty option alongside the options provided by values.",
1055
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
1056
+ "type": "boolean"
1057
+ },
1058
+ "empty_type": {
1059
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1060
+ "enum": [
1061
+ "null",
1062
+ "string"
1063
+ ],
1064
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1065
+ "type": "string"
1066
+ },
1067
+ "max_length": {
1068
+ "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.",
1069
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1070
+ "type": "number"
1071
+ },
1072
+ "min_length": {
1073
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1074
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1075
+ "type": "number"
1076
+ },
1077
+ "pattern": {
1078
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1079
+ "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.",
1080
+ "type": "string"
1081
+ },
1082
+ "pattern_flags": {
995
1083
  "additionalProperties": false,
996
- "description": "Options that are specific to this `type` of input.",
997
- "markdownDescription": "Options that are specific to this `type` of input.",
1084
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
1085
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
998
1086
  "properties": {
999
- "allow_empty": {
1000
- "default": true,
1001
- "description": "Provides an empty option alongside the options provided by values.",
1002
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
1087
+ "dot_all": {
1088
+ "default": false,
1089
+ "description": "`s` - `.` matches newline characters.",
1090
+ "markdownDescription": "`s` - `.` matches newline characters.",
1003
1091
  "type": "boolean"
1004
1092
  },
1005
- "empty_type": {
1006
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1007
- "enum": [
1008
- "null",
1009
- "string"
1010
- ],
1011
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1012
- "type": "string"
1013
- },
1014
- "picker_preview": {
1015
- "$ref": "#/definitions/Preview",
1016
- "description": "Changes the way items are previewed in the CMS while being chosen.",
1017
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
1018
- },
1019
- "picker_view": {
1020
- "description": "Controls how selectable options are rendered.",
1021
- "enum": [
1022
- "card",
1023
- "text",
1024
- "gallery",
1025
- "gallery-left"
1026
- ],
1027
- "markdownDescription": "Controls how selectable options are rendered.",
1028
- "type": "string"
1093
+ "global": {
1094
+ "default": false,
1095
+ "description": "`g` - Search globally.",
1096
+ "markdownDescription": "`g` - Search globally.",
1097
+ "type": "boolean"
1029
1098
  },
1030
- "preview": {
1031
- "$ref": "#/definitions/Preview",
1032
- "description": "Changes the way items are previewed in the CMS.",
1033
- "markdownDescription": "Changes the way items are previewed in the CMS."
1099
+ "ignore_case": {
1100
+ "default": false,
1101
+ "description": "`i` - Case-insensitive.",
1102
+ "markdownDescription": "`i` - Case-insensitive.",
1103
+ "type": "boolean"
1034
1104
  },
1035
- "value_key": {
1036
- "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.",
1037
- "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.",
1038
- "type": "string"
1105
+ "multiline": {
1106
+ "default": false,
1107
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1108
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1109
+ "type": "boolean"
1039
1110
  },
1040
- "values": {
1041
- "anyOf": [
1042
- {
1043
- "type": "string"
1044
- },
1045
- {
1046
- "$ref": "#/definitions/SelectValues"
1047
- }
1048
- ],
1049
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
1050
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
1111
+ "unicode": {
1112
+ "default": false,
1113
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1114
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1115
+ "type": "boolean"
1051
1116
  },
1052
- "view": {
1053
- "description": "Controls how selected items are rendered.",
1054
- "enum": [
1055
- "card",
1056
- "text",
1057
- "gallery",
1058
- "gallery-left"
1059
- ],
1060
- "markdownDescription": "Controls how selected items are rendered.",
1061
- "type": "string"
1117
+ "unicode_sets": {
1118
+ "default": false,
1119
+ "description": "`v` - Extended `unicode` mode.",
1120
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1121
+ "type": "boolean"
1062
1122
  }
1063
1123
  },
1064
1124
  "type": "object"
1065
1125
  },
1066
- "type": {
1067
- "const": "choice",
1068
- "description": "Sets an input type, which controls how this input appears and behaves.",
1069
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
1126
+ "pattern_message": {
1127
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
1128
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
1129
+ "type": "string"
1130
+ },
1131
+ "picker_preview": {
1132
+ "$ref": "#/definitions/Preview",
1133
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
1134
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
1135
+ },
1136
+ "picker_view": {
1137
+ "description": "Controls how selectable options are rendered.",
1138
+ "enum": [
1139
+ "card",
1140
+ "text",
1141
+ "gallery",
1142
+ "gallery-left"
1143
+ ],
1144
+ "markdownDescription": "Controls how selectable options are rendered.",
1145
+ "type": "string"
1146
+ },
1147
+ "preview": {
1148
+ "$ref": "#/definitions/Preview",
1149
+ "description": "Changes the way items are previewed in the CMS.",
1150
+ "markdownDescription": "Changes the way items are previewed in the CMS."
1151
+ },
1152
+ "required": {
1153
+ "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).",
1154
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1155
+ "type": "boolean"
1156
+ },
1157
+ "value_key": {
1158
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
1159
+ "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.",
1160
+ "type": "string"
1161
+ },
1162
+ "values": {
1163
+ "anyOf": [
1164
+ {
1165
+ "type": "string"
1166
+ },
1167
+ {
1168
+ "$ref": "#/definitions/SelectValues"
1169
+ }
1170
+ ],
1171
+ "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
1172
+ "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
1173
+ },
1174
+ "view": {
1175
+ "description": "Controls how selected items are rendered.",
1176
+ "enum": [
1177
+ "card",
1178
+ "text",
1179
+ "gallery",
1180
+ "gallery-left"
1181
+ ],
1182
+ "markdownDescription": "Controls how selected items are rendered.",
1070
1183
  "type": "string"
1071
1184
  }
1072
1185
  },
1073
- "required": [
1074
- "type"
1075
- ],
1076
1186
  "type": "object"
1077
1187
  },
1078
1188
  "CodeInput": {
@@ -1157,8 +1267,8 @@
1157
1267
  },
1158
1268
  "options": {
1159
1269
  "$ref": "#/definitions/CodeInputOptions",
1160
- "description": "Options that are specific to this `type` of input.",
1161
- "markdownDescription": "Options that are specific to this `type` of input."
1270
+ "description": "Options that are specific to Code Inputs.",
1271
+ "markdownDescription": "Options that are specific to Code Inputs."
1162
1272
  },
1163
1273
  "type": {
1164
1274
  "const": "code",
@@ -1184,18 +1294,87 @@
1184
1294
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1185
1295
  "type": "string"
1186
1296
  },
1297
+ "max_length": {
1298
+ "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.",
1299
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1300
+ "type": "number"
1301
+ },
1187
1302
  "max_visible_lines": {
1188
1303
  "default": 30,
1189
1304
  "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.",
1190
1305
  "markdownDescription": "Sets the maximum number of visible lines for this input, effectively controlling maximum\nheight. When the containing text exceeds this number, the input becomes a scroll area.",
1191
1306
  "type": "number"
1192
1307
  },
1308
+ "min_length": {
1309
+ "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.",
1310
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1311
+ "type": "number"
1312
+ },
1193
1313
  "min_visible_lines": {
1194
1314
  "default": 10,
1195
1315
  "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`.",
1196
1316
  "markdownDescription": "Sets the minimum number of visible lines for this input, effectively controlling initial\nheight. When the containing text exceeds this number, the input grows line by line to the lines\ndefined by `max_visible_lines`.",
1197
1317
  "type": "number"
1198
1318
  },
1319
+ "pattern": {
1320
+ "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.",
1321
+ "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.",
1322
+ "type": "string"
1323
+ },
1324
+ "pattern_flags": {
1325
+ "additionalProperties": false,
1326
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
1327
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
1328
+ "properties": {
1329
+ "dot_all": {
1330
+ "default": false,
1331
+ "description": "`s` - `.` matches newline characters.",
1332
+ "markdownDescription": "`s` - `.` matches newline characters.",
1333
+ "type": "boolean"
1334
+ },
1335
+ "global": {
1336
+ "default": false,
1337
+ "description": "`g` - Search globally.",
1338
+ "markdownDescription": "`g` - Search globally.",
1339
+ "type": "boolean"
1340
+ },
1341
+ "ignore_case": {
1342
+ "default": false,
1343
+ "description": "`i` - Case-insensitive.",
1344
+ "markdownDescription": "`i` - Case-insensitive.",
1345
+ "type": "boolean"
1346
+ },
1347
+ "multiline": {
1348
+ "default": false,
1349
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1350
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1351
+ "type": "boolean"
1352
+ },
1353
+ "unicode": {
1354
+ "default": false,
1355
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1356
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1357
+ "type": "boolean"
1358
+ },
1359
+ "unicode_sets": {
1360
+ "default": false,
1361
+ "description": "`v` - Extended `unicode` mode.",
1362
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1363
+ "type": "boolean"
1364
+ }
1365
+ },
1366
+ "type": "object"
1367
+ },
1368
+ "pattern_message": {
1369
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
1370
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
1371
+ "type": "string"
1372
+ },
1373
+ "required": {
1374
+ "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).",
1375
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1376
+ "type": "boolean"
1377
+ },
1199
1378
  "show_gutter": {
1200
1379
  "default": true,
1201
1380
  "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",
@@ -1333,8 +1512,8 @@
1333
1512
  },
1334
1513
  "options": {
1335
1514
  "$ref": "#/definitions/ColorInputOptions",
1336
- "description": "Options that are specific to this `type` of input.",
1337
- "markdownDescription": "Options that are specific to this `type` of input."
1515
+ "description": "Options that are specific to Color Inputs.",
1516
+ "markdownDescription": "Options that are specific to Color Inputs."
1338
1517
  },
1339
1518
  "type": {
1340
1519
  "const": "color",
@@ -1375,6 +1554,75 @@
1375
1554
  ],
1376
1555
  "markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
1377
1556
  "type": "string"
1557
+ },
1558
+ "max_length": {
1559
+ "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.",
1560
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1561
+ "type": "number"
1562
+ },
1563
+ "min_length": {
1564
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1565
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1566
+ "type": "number"
1567
+ },
1568
+ "pattern": {
1569
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1570
+ "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.",
1571
+ "type": "string"
1572
+ },
1573
+ "pattern_flags": {
1574
+ "additionalProperties": false,
1575
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
1576
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
1577
+ "properties": {
1578
+ "dot_all": {
1579
+ "default": false,
1580
+ "description": "`s` - `.` matches newline characters.",
1581
+ "markdownDescription": "`s` - `.` matches newline characters.",
1582
+ "type": "boolean"
1583
+ },
1584
+ "global": {
1585
+ "default": false,
1586
+ "description": "`g` - Search globally.",
1587
+ "markdownDescription": "`g` - Search globally.",
1588
+ "type": "boolean"
1589
+ },
1590
+ "ignore_case": {
1591
+ "default": false,
1592
+ "description": "`i` - Case-insensitive.",
1593
+ "markdownDescription": "`i` - Case-insensitive.",
1594
+ "type": "boolean"
1595
+ },
1596
+ "multiline": {
1597
+ "default": false,
1598
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1599
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1600
+ "type": "boolean"
1601
+ },
1602
+ "unicode": {
1603
+ "default": false,
1604
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1605
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1606
+ "type": "boolean"
1607
+ },
1608
+ "unicode_sets": {
1609
+ "default": false,
1610
+ "description": "`v` - Extended `unicode` mode.",
1611
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1612
+ "type": "boolean"
1613
+ }
1614
+ },
1615
+ "type": "object"
1616
+ },
1617
+ "pattern_message": {
1618
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
1619
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
1620
+ "type": "string"
1621
+ },
1622
+ "required": {
1623
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1624
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1625
+ "type": "boolean"
1378
1626
  }
1379
1627
  },
1380
1628
  "type": "object"
@@ -1581,6 +1829,18 @@
1581
1829
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1582
1830
  "type": "string"
1583
1831
  },
1832
+ "end_before": {
1833
+ "description": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting a later date and time. If the Input already contains a later 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.start_from is also configured, this key cannot be an earlier date and time.\n\nThis key has no default.",
1834
+ "format": "date-time",
1835
+ "markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
1836
+ "type": "string"
1837
+ },
1838
+ "start_from": {
1839
+ "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.",
1840
+ "format": "date-time",
1841
+ "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.",
1842
+ "type": "string"
1843
+ },
1584
1844
  "timezone": {
1585
1845
  "$ref": "#/definitions/Timezone",
1586
1846
  "default": "Etc/UTC",
@@ -1902,6 +2162,11 @@
1902
2162
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
1903
2163
  "type": "boolean"
1904
2164
  },
2165
+ "max_length": {
2166
+ "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.",
2167
+ "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.",
2168
+ "type": "number"
2169
+ },
1905
2170
  "mime_type": {
1906
2171
  "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.",
1907
2172
  "enum": [
@@ -1912,17 +2177,81 @@
1912
2177
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
1913
2178
  "type": "string"
1914
2179
  },
2180
+ "min_length": {
2181
+ "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.",
2182
+ "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.",
2183
+ "type": "number"
2184
+ },
1915
2185
  "paths": {
1916
2186
  "$ref": "#/definitions/Paths",
1917
2187
  "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`.",
1918
2188
  "markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
1919
2189
  },
2190
+ "pattern": {
2191
+ "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.",
2192
+ "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.",
2193
+ "type": "string"
2194
+ },
2195
+ "pattern_flags": {
2196
+ "additionalProperties": false,
2197
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
2198
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
2199
+ "properties": {
2200
+ "dot_all": {
2201
+ "default": false,
2202
+ "description": "`s` - `.` matches newline characters.",
2203
+ "markdownDescription": "`s` - `.` matches newline characters.",
2204
+ "type": "boolean"
2205
+ },
2206
+ "global": {
2207
+ "default": false,
2208
+ "description": "`g` - Search globally.",
2209
+ "markdownDescription": "`g` - Search globally.",
2210
+ "type": "boolean"
2211
+ },
2212
+ "ignore_case": {
2213
+ "default": false,
2214
+ "description": "`i` - Case-insensitive.",
2215
+ "markdownDescription": "`i` - Case-insensitive.",
2216
+ "type": "boolean"
2217
+ },
2218
+ "multiline": {
2219
+ "default": false,
2220
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2221
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2222
+ "type": "boolean"
2223
+ },
2224
+ "unicode": {
2225
+ "default": false,
2226
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
2227
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
2228
+ "type": "boolean"
2229
+ },
2230
+ "unicode_sets": {
2231
+ "default": false,
2232
+ "description": "`v` - Extended `unicode` mode.",
2233
+ "markdownDescription": "`v` - Extended `unicode` mode.",
2234
+ "type": "boolean"
2235
+ }
2236
+ },
2237
+ "type": "object"
2238
+ },
2239
+ "pattern_message": {
2240
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
2241
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
2242
+ "type": "string"
2243
+ },
1920
2244
  "prevent_resize_existing_files": {
1921
2245
  "default": false,
1922
2246
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
1923
2247
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
1924
2248
  "type": "boolean"
1925
2249
  },
2250
+ "required": {
2251
+ "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).",
2252
+ "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).",
2253
+ "type": "boolean"
2254
+ },
1926
2255
  "resize_style": {
1927
2256
  "default": "contain",
1928
2257
  "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.",
@@ -6739,76 +7068,9 @@
6739
7068
  "type": "string"
6740
7069
  },
6741
7070
  "options": {
6742
- "additionalProperties": false,
6743
- "description": "Options that are specific to this `type` of input.",
6744
- "markdownDescription": "Options that are specific to this `type` of input.",
6745
- "properties": {
6746
- "allow_empty": {
6747
- "default": true,
6748
- "description": "Provides an empty option alongside the options provided by values.",
6749
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6750
- "type": "boolean"
6751
- },
6752
- "empty_type": {
6753
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6754
- "enum": [
6755
- "null",
6756
- "array"
6757
- ],
6758
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6759
- "type": "string"
6760
- },
6761
- "picker_preview": {
6762
- "$ref": "#/definitions/Preview",
6763
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6764
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6765
- },
6766
- "picker_view": {
6767
- "description": "Controls how selectable options are rendered.",
6768
- "enum": [
6769
- "card",
6770
- "text",
6771
- "gallery",
6772
- "gallery-left"
6773
- ],
6774
- "markdownDescription": "Controls how selectable options are rendered.",
6775
- "type": "string"
6776
- },
6777
- "preview": {
6778
- "$ref": "#/definitions/Preview",
6779
- "description": "Changes the way items are previewed in the CMS.",
6780
- "markdownDescription": "Changes the way items are previewed in the CMS."
6781
- },
6782
- "value_key": {
6783
- "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.",
6784
- "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.",
6785
- "type": "string"
6786
- },
6787
- "values": {
6788
- "anyOf": [
6789
- {
6790
- "type": "string"
6791
- },
6792
- {
6793
- "$ref": "#/definitions/SelectValues"
6794
- }
6795
- ],
6796
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
6797
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
6798
- },
6799
- "view": {
6800
- "description": "Controls how selected items are rendered.",
6801
- "enum": [
6802
- "card",
6803
- "text",
6804
- "gallery",
6805
- "gallery-left"
6806
- ],
6807
- "markdownDescription": "Controls how selected items are rendered.",
6808
- "type": "string"
6809
- }
6810
- },
6811
- "type": "object"
7071
+ "$ref": "#/definitions/MultichoiceInputOptions",
7072
+ "description": "Options that are specific to Multichoice Inputs.",
7073
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
6812
7074
  },
6813
7075
  "type": {
6814
7076
  "const": "multichoice",
@@ -6822,6 +7084,96 @@
6822
7084
  ],
6823
7085
  "type": "object"
6824
7086
  },
7087
+ "MultichoiceInputOptions": {
7088
+ "additionalProperties": false,
7089
+ "properties": {
7090
+ "allow_empty": {
7091
+ "default": true,
7092
+ "description": "Provides an empty option alongside the options provided by values.",
7093
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7094
+ "type": "boolean"
7095
+ },
7096
+ "empty_type": {
7097
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7098
+ "enum": [
7099
+ "null",
7100
+ "array"
7101
+ ],
7102
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7103
+ "type": "string"
7104
+ },
7105
+ "max_items": {
7106
+ "description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove 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 lesser number.\n\nThis key has no default.",
7107
+ "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.",
7108
+ "type": "number"
7109
+ },
7110
+ "min_items": {
7111
+ "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.",
7112
+ "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.",
7113
+ "type": "number"
7114
+ },
7115
+ "picker_preview": {
7116
+ "$ref": "#/definitions/Preview",
7117
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7118
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7119
+ },
7120
+ "picker_view": {
7121
+ "description": "Controls how selectable options are rendered.",
7122
+ "enum": [
7123
+ "card",
7124
+ "text",
7125
+ "gallery",
7126
+ "gallery-left"
7127
+ ],
7128
+ "markdownDescription": "Controls how selectable options are rendered.",
7129
+ "type": "string"
7130
+ },
7131
+ "preview": {
7132
+ "$ref": "#/definitions/Preview",
7133
+ "description": "Changes the way items are previewed in the CMS.",
7134
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7135
+ },
7136
+ "required": {
7137
+ "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).",
7138
+ "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).",
7139
+ "type": "boolean"
7140
+ },
7141
+ "unique_on": {
7142
+ "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.",
7143
+ "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.",
7144
+ "type": "string"
7145
+ },
7146
+ "value_key": {
7147
+ "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.",
7148
+ "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.",
7149
+ "type": "string"
7150
+ },
7151
+ "values": {
7152
+ "anyOf": [
7153
+ {
7154
+ "type": "string"
7155
+ },
7156
+ {
7157
+ "$ref": "#/definitions/SelectValues"
7158
+ }
7159
+ ],
7160
+ "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
7161
+ "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
7162
+ },
7163
+ "view": {
7164
+ "description": "Controls how selected items are rendered.",
7165
+ "enum": [
7166
+ "card",
7167
+ "text",
7168
+ "gallery",
7169
+ "gallery-left"
7170
+ ],
7171
+ "markdownDescription": "Controls how selected items are rendered.",
7172
+ "type": "string"
7173
+ }
7174
+ },
7175
+ "type": "object"
7176
+ },
6825
7177
  "MultiselectInput": {
6826
7178
  "additionalProperties": false,
6827
7179
  "properties": {
@@ -6903,82 +7255,9 @@
6903
7255
  "type": "string"
6904
7256
  },
6905
7257
  "options": {
6906
- "additionalProperties": false,
6907
- "description": "Options that are specific to this `type` of input.",
6908
- "markdownDescription": "Options that are specific to this `type` of input.",
6909
- "properties": {
6910
- "allow_create": {
6911
- "default": false,
6912
- "description": "Allows new text values to be created at edit time.",
6913
- "markdownDescription": "Allows new text values to be created at edit time.",
6914
- "type": "boolean"
6915
- },
6916
- "allow_empty": {
6917
- "default": true,
6918
- "description": "Provides an empty option alongside the options provided by values.",
6919
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6920
- "type": "boolean"
6921
- },
6922
- "empty_type": {
6923
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6924
- "enum": [
6925
- "null",
6926
- "array"
6927
- ],
6928
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6929
- "type": "string"
6930
- },
6931
- "picker_preview": {
6932
- "$ref": "#/definitions/Preview",
6933
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6934
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6935
- },
6936
- "picker_view": {
6937
- "description": "Controls how selectable options are rendered.",
6938
- "enum": [
6939
- "card",
6940
- "text",
6941
- "gallery",
6942
- "gallery-left"
6943
- ],
6944
- "markdownDescription": "Controls how selectable options are rendered.",
6945
- "type": "string"
6946
- },
6947
- "preview": {
6948
- "$ref": "#/definitions/Preview",
6949
- "description": "Changes the way items are previewed in the CMS.",
6950
- "markdownDescription": "Changes the way items are previewed in the CMS."
6951
- },
6952
- "value_key": {
6953
- "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.",
6954
- "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.",
6955
- "type": "string"
6956
- },
6957
- "values": {
6958
- "anyOf": [
6959
- {
6960
- "type": "string"
6961
- },
6962
- {
6963
- "$ref": "#/definitions/SelectValues"
6964
- }
6965
- ],
6966
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
6967
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
6968
- },
6969
- "view": {
6970
- "description": "Controls how selected items are rendered.",
6971
- "enum": [
6972
- "card",
6973
- "text",
6974
- "gallery",
6975
- "gallery-left"
6976
- ],
6977
- "markdownDescription": "Controls how selected items are rendered.",
6978
- "type": "string"
6979
- }
6980
- },
6981
- "type": "object"
7258
+ "$ref": "#/definitions/MultiselectInputOptions",
7259
+ "description": "Options that are specific to Multiselect Inputs.",
7260
+ "markdownDescription": "Options that are specific to Multiselect Inputs."
6982
7261
  },
6983
7262
  "type": {
6984
7263
  "const": "multiselect",
@@ -6992,6 +7271,120 @@
6992
7271
  ],
6993
7272
  "type": "object"
6994
7273
  },
7274
+ "MultiselectInputOptions": {
7275
+ "additionalProperties": false,
7276
+ "properties": {
7277
+ "allow_create": {
7278
+ "default": false,
7279
+ "description": "Allows new text values to be created at edit time.",
7280
+ "markdownDescription": "Allows new text values to be created at edit time.",
7281
+ "type": "boolean"
7282
+ },
7283
+ "allow_empty": {
7284
+ "default": true,
7285
+ "description": "Provides an empty option alongside the options provided by values.",
7286
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7287
+ "type": "boolean"
7288
+ },
7289
+ "disable_add": {
7290
+ "default": false,
7291
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7292
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7293
+ "type": "boolean"
7294
+ },
7295
+ "disable_remove": {
7296
+ "default": false,
7297
+ "description": "Hides the context menu actions on each item for removing them.",
7298
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7299
+ "type": "boolean"
7300
+ },
7301
+ "disable_reorder": {
7302
+ "default": false,
7303
+ "description": "Hides the controls on each item for moving them.",
7304
+ "markdownDescription": "Hides the controls on each item for moving them.",
7305
+ "type": "boolean"
7306
+ },
7307
+ "empty_type": {
7308
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7309
+ "enum": [
7310
+ "null",
7311
+ "array"
7312
+ ],
7313
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7314
+ "type": "string"
7315
+ },
7316
+ "max_items": {
7317
+ "description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove 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 lesser number.\n\nThis key has no default.",
7318
+ "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.",
7319
+ "type": "number"
7320
+ },
7321
+ "min_items": {
7322
+ "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.",
7323
+ "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.",
7324
+ "type": "number"
7325
+ },
7326
+ "picker_preview": {
7327
+ "$ref": "#/definitions/Preview",
7328
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7329
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7330
+ },
7331
+ "picker_view": {
7332
+ "description": "Controls how selectable options are rendered.",
7333
+ "enum": [
7334
+ "card",
7335
+ "text",
7336
+ "gallery",
7337
+ "gallery-left"
7338
+ ],
7339
+ "markdownDescription": "Controls how selectable options are rendered.",
7340
+ "type": "string"
7341
+ },
7342
+ "preview": {
7343
+ "$ref": "#/definitions/Preview",
7344
+ "description": "Changes the way items are previewed in the CMS.",
7345
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7346
+ },
7347
+ "required": {
7348
+ "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).",
7349
+ "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).",
7350
+ "type": "boolean"
7351
+ },
7352
+ "unique_on": {
7353
+ "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.",
7354
+ "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.",
7355
+ "type": "string"
7356
+ },
7357
+ "value_key": {
7358
+ "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.",
7359
+ "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.",
7360
+ "type": "string"
7361
+ },
7362
+ "values": {
7363
+ "anyOf": [
7364
+ {
7365
+ "type": "string"
7366
+ },
7367
+ {
7368
+ "$ref": "#/definitions/SelectValues"
7369
+ }
7370
+ ],
7371
+ "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
7372
+ "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
7373
+ },
7374
+ "view": {
7375
+ "description": "Controls how selected items are rendered.",
7376
+ "enum": [
7377
+ "card",
7378
+ "text",
7379
+ "gallery",
7380
+ "gallery-left"
7381
+ ],
7382
+ "markdownDescription": "Controls how selected items are rendered.",
7383
+ "type": "string"
7384
+ }
7385
+ },
7386
+ "type": "object"
7387
+ },
6995
7388
  "NumberInput": {
6996
7389
  "additionalProperties": false,
6997
7390
  "properties": {
@@ -7074,8 +7467,8 @@
7074
7467
  },
7075
7468
  "options": {
7076
7469
  "$ref": "#/definitions/NumberInputOptions",
7077
- "description": "Options that are specific to this `type` of input.",
7078
- "markdownDescription": "Options that are specific to this `type` of input."
7470
+ "description": "Options that are specific to this Number Inputs.",
7471
+ "markdownDescription": "Options that are specific to this Number Inputs."
7079
7472
  },
7080
7473
  "type": {
7081
7474
  "const": "number",
@@ -7102,15 +7495,20 @@
7102
7495
  "type": "string"
7103
7496
  },
7104
7497
  "max": {
7105
- "description": "The greatest value in the range of permitted values.",
7106
- "markdownDescription": "The greatest value in the range of permitted values.",
7498
+ "description": "This key defines the maximum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a greater numerical value. If the Input already contains a greater 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.min` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
7499
+ "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.",
7107
7500
  "type": "number"
7108
7501
  },
7109
7502
  "min": {
7110
- "description": "The lowest value in the range of permitted values.",
7111
- "markdownDescription": "The lowest value in the range of permitted values.",
7503
+ "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.",
7504
+ "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.",
7112
7505
  "type": "number"
7113
7506
  },
7507
+ "required": {
7508
+ "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).",
7509
+ "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).",
7510
+ "type": "boolean"
7511
+ },
7114
7512
  "step": {
7115
7513
  "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`.",
7116
7514
  "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`.",
@@ -7201,8 +7599,8 @@
7201
7599
  },
7202
7600
  "options": {
7203
7601
  "$ref": "#/definitions/ObjectInputOptions",
7204
- "description": "Options that are specific to this `type` of input.",
7205
- "markdownDescription": "Options that are specific to this `type` of input."
7602
+ "description": "Options that are specific to Object Inputs.",
7603
+ "markdownDescription": "Options that are specific to Object Inputs."
7206
7604
  },
7207
7605
  "type": {
7208
7606
  "const": "object",
@@ -7327,6 +7725,11 @@
7327
7725
  "description": "Changes the way items are previewed in the CMS.",
7328
7726
  "markdownDescription": "Changes the way items are previewed in the CMS."
7329
7727
  },
7728
+ "required": {
7729
+ "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).",
7730
+ "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).",
7731
+ "type": "boolean"
7732
+ },
7330
7733
  "structures": {
7331
7734
  "anyOf": [
7332
7735
  {
@@ -7672,8 +8075,8 @@
7672
8075
  },
7673
8076
  "options": {
7674
8077
  "$ref": "#/definitions/RangeInputOptions",
7675
- "description": "Options that are specific to this `type` of input.",
7676
- "markdownDescription": "Options that are specific to this `type` of input."
8078
+ "description": "Options that are specific to Range Inputs.",
8079
+ "markdownDescription": "Options that are specific to Range Inputs."
7677
8080
  },
7678
8081
  "type": {
7679
8082
  "const": "range",
@@ -7701,16 +8104,21 @@
7701
8104
  },
7702
8105
  "max": {
7703
8106
  "default": 10,
7704
- "description": "The greatest value in the range of permitted values.",
7705
- "markdownDescription": "The greatest value in the range of permitted values.",
8107
+ "description": "This key defines the maximum numerical value CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from entering a greater numerical value. If the Input already contains a greater 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.min` is also configured, this key cannot be a lesser number.",
8108
+ "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.",
7706
8109
  "type": "number"
7707
8110
  },
7708
8111
  "min": {
7709
8112
  "default": 0,
7710
- "description": "The lowest value in the range of permitted values.",
7711
- "markdownDescription": "The lowest value in the range of permitted values.",
8113
+ "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.",
8114
+ "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.",
7712
8115
  "type": "number"
7713
8116
  },
8117
+ "required": {
8118
+ "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).",
8119
+ "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).",
8120
+ "type": "boolean"
8121
+ },
7714
8122
  "step": {
7715
8123
  "default": 1,
7716
8124
  "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`.",
@@ -7802,8 +8210,8 @@
7802
8210
  },
7803
8211
  "options": {
7804
8212
  "$ref": "#/definitions/RichTextInputOptions",
7805
- "description": "Options that are specific to this `type` of input.",
7806
- "markdownDescription": "Options that are specific to this `type` of input."
8213
+ "description": "Options that are specific to Rich Text Inputs.",
8214
+ "markdownDescription": "Options that are specific to Rich Text Inputs."
7807
8215
  },
7808
8216
  "type": {
7809
8217
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -7985,6 +8393,11 @@
7985
8393
  "markdownDescription": "Enables a control to create hyperlinks around selected text.",
7986
8394
  "type": "boolean"
7987
8395
  },
8396
+ "max_length": {
8397
+ "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.",
8398
+ "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.",
8399
+ "type": "number"
8400
+ },
7988
8401
  "mime_type": {
7989
8402
  "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.",
7990
8403
  "enum": [
@@ -7995,6 +8408,11 @@
7995
8408
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
7996
8409
  "type": "string"
7997
8410
  },
8411
+ "min_length": {
8412
+ "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.",
8413
+ "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.",
8414
+ "type": "number"
8415
+ },
7998
8416
  "numberedlist": {
7999
8417
  "default": true,
8000
8418
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -8012,6 +8430,60 @@
8012
8430
  "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`.",
8013
8431
  "markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
8014
8432
  },
8433
+ "pattern": {
8434
+ "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.",
8435
+ "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.",
8436
+ "type": "string"
8437
+ },
8438
+ "pattern_flags": {
8439
+ "additionalProperties": false,
8440
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8441
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8442
+ "properties": {
8443
+ "dot_all": {
8444
+ "default": false,
8445
+ "description": "`s` - `.` matches newline characters.",
8446
+ "markdownDescription": "`s` - `.` matches newline characters.",
8447
+ "type": "boolean"
8448
+ },
8449
+ "global": {
8450
+ "default": false,
8451
+ "description": "`g` - Search globally.",
8452
+ "markdownDescription": "`g` - Search globally.",
8453
+ "type": "boolean"
8454
+ },
8455
+ "ignore_case": {
8456
+ "default": false,
8457
+ "description": "`i` - Case-insensitive.",
8458
+ "markdownDescription": "`i` - Case-insensitive.",
8459
+ "type": "boolean"
8460
+ },
8461
+ "multiline": {
8462
+ "default": false,
8463
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8464
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8465
+ "type": "boolean"
8466
+ },
8467
+ "unicode": {
8468
+ "default": false,
8469
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8470
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8471
+ "type": "boolean"
8472
+ },
8473
+ "unicode_sets": {
8474
+ "default": false,
8475
+ "description": "`v` - Extended `unicode` mode.",
8476
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8477
+ "type": "boolean"
8478
+ }
8479
+ },
8480
+ "type": "object"
8481
+ },
8482
+ "pattern_message": {
8483
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
8484
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
8485
+ "type": "string"
8486
+ },
8015
8487
  "prevent_resize_existing_files": {
8016
8488
  "default": false,
8017
8489
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
@@ -8035,6 +8507,11 @@
8035
8507
  "markdownDescription": "Enables the control to remove formatting from text. Applies to formatting from `bold`,\n`italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles\nor formatting.",
8036
8508
  "type": "boolean"
8037
8509
  },
8510
+ "required": {
8511
+ "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).",
8512
+ "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).",
8513
+ "type": "boolean"
8514
+ },
8038
8515
  "resize_style": {
8039
8516
  "default": "contain",
8040
8517
  "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.",
@@ -8310,93 +8787,165 @@
8310
8787
  "type": "string"
8311
8788
  },
8312
8789
  "options": {
8790
+ "$ref": "#/definitions/SelectInputOptions",
8791
+ "description": "Options that are specific to Select Inputs.",
8792
+ "markdownDescription": "Options that are specific to Select Inputs."
8793
+ },
8794
+ "type": {
8795
+ "const": "select",
8796
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8797
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8798
+ "type": "string"
8799
+ }
8800
+ },
8801
+ "required": [
8802
+ "type"
8803
+ ],
8804
+ "type": "object"
8805
+ },
8806
+ "SelectInputOptions": {
8807
+ "additionalProperties": false,
8808
+ "properties": {
8809
+ "allow_create": {
8810
+ "default": false,
8811
+ "description": "Allows new text values to be created at edit time.",
8812
+ "markdownDescription": "Allows new text values to be created at edit time.",
8813
+ "type": "boolean"
8814
+ },
8815
+ "allow_empty": {
8816
+ "default": true,
8817
+ "description": "Provides an empty option alongside the options provided by values.",
8818
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8819
+ "type": "boolean"
8820
+ },
8821
+ "empty_type": {
8822
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8823
+ "enum": [
8824
+ "null",
8825
+ "string"
8826
+ ],
8827
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8828
+ "type": "string"
8829
+ },
8830
+ "max_length": {
8831
+ "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.",
8832
+ "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.",
8833
+ "type": "number"
8834
+ },
8835
+ "min_length": {
8836
+ "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.",
8837
+ "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.",
8838
+ "type": "number"
8839
+ },
8840
+ "pattern": {
8841
+ "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.",
8842
+ "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.",
8843
+ "type": "string"
8844
+ },
8845
+ "pattern_flags": {
8313
8846
  "additionalProperties": false,
8314
- "description": "Options that are specific to this `type` of input.",
8315
- "markdownDescription": "Options that are specific to this `type` of input.",
8847
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8848
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8316
8849
  "properties": {
8317
- "allow_create": {
8850
+ "dot_all": {
8318
8851
  "default": false,
8319
- "description": "Allows new text values to be created at edit time.",
8320
- "markdownDescription": "Allows new text values to be created at edit time.",
8852
+ "description": "`s` - `.` matches newline characters.",
8853
+ "markdownDescription": "`s` - `.` matches newline characters.",
8321
8854
  "type": "boolean"
8322
8855
  },
8323
- "allow_empty": {
8324
- "default": true,
8325
- "description": "Provides an empty option alongside the options provided by values.",
8326
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8856
+ "global": {
8857
+ "default": false,
8858
+ "description": "`g` - Search globally.",
8859
+ "markdownDescription": "`g` - Search globally.",
8327
8860
  "type": "boolean"
8328
8861
  },
8329
- "empty_type": {
8330
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8331
- "enum": [
8332
- "null",
8333
- "string"
8334
- ],
8335
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8336
- "type": "string"
8337
- },
8338
- "picker_preview": {
8339
- "$ref": "#/definitions/Preview",
8340
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8341
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8342
- },
8343
- "picker_view": {
8344
- "description": "Controls how selectable options are rendered.",
8345
- "enum": [
8346
- "card",
8347
- "text",
8348
- "gallery",
8349
- "gallery-left"
8350
- ],
8351
- "markdownDescription": "Controls how selectable options are rendered.",
8352
- "type": "string"
8353
- },
8354
- "preview": {
8355
- "$ref": "#/definitions/Preview",
8356
- "description": "Changes the way items are previewed in the CMS.",
8357
- "markdownDescription": "Changes the way items are previewed in the CMS."
8862
+ "ignore_case": {
8863
+ "default": false,
8864
+ "description": "`i` - Case-insensitive.",
8865
+ "markdownDescription": "`i` - Case-insensitive.",
8866
+ "type": "boolean"
8358
8867
  },
8359
- "value_key": {
8360
- "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.",
8361
- "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.",
8362
- "type": "string"
8868
+ "multiline": {
8869
+ "default": false,
8870
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8871
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8872
+ "type": "boolean"
8363
8873
  },
8364
- "values": {
8365
- "anyOf": [
8366
- {
8367
- "type": "string"
8368
- },
8369
- {
8370
- "$ref": "#/definitions/SelectValues"
8371
- }
8372
- ],
8373
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
8374
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
8874
+ "unicode": {
8875
+ "default": false,
8876
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8877
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8878
+ "type": "boolean"
8375
8879
  },
8376
- "view": {
8377
- "description": "Controls how selected items are rendered.",
8378
- "enum": [
8379
- "card",
8380
- "text",
8381
- "gallery",
8382
- "gallery-left"
8383
- ],
8384
- "markdownDescription": "Controls how selected items are rendered.",
8385
- "type": "string"
8880
+ "unicode_sets": {
8881
+ "default": false,
8882
+ "description": "`v` - Extended `unicode` mode.",
8883
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8884
+ "type": "boolean"
8386
8885
  }
8387
8886
  },
8388
8887
  "type": "object"
8389
8888
  },
8390
- "type": {
8391
- "const": "select",
8392
- "description": "Sets an input type, which controls how this input appears and behaves.",
8393
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8889
+ "pattern_message": {
8890
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
8891
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
8892
+ "type": "string"
8893
+ },
8894
+ "picker_preview": {
8895
+ "$ref": "#/definitions/Preview",
8896
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8897
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8898
+ },
8899
+ "picker_view": {
8900
+ "description": "Controls how selectable options are rendered.",
8901
+ "enum": [
8902
+ "card",
8903
+ "text",
8904
+ "gallery",
8905
+ "gallery-left"
8906
+ ],
8907
+ "markdownDescription": "Controls how selectable options are rendered.",
8908
+ "type": "string"
8909
+ },
8910
+ "preview": {
8911
+ "$ref": "#/definitions/Preview",
8912
+ "description": "Changes the way items are previewed in the CMS.",
8913
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8914
+ },
8915
+ "required": {
8916
+ "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).",
8917
+ "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).",
8918
+ "type": "boolean"
8919
+ },
8920
+ "value_key": {
8921
+ "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.",
8922
+ "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.",
8923
+ "type": "string"
8924
+ },
8925
+ "values": {
8926
+ "anyOf": [
8927
+ {
8928
+ "type": "string"
8929
+ },
8930
+ {
8931
+ "$ref": "#/definitions/SelectValues"
8932
+ }
8933
+ ],
8934
+ "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
8935
+ "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
8936
+ },
8937
+ "view": {
8938
+ "description": "Controls how selected items are rendered.",
8939
+ "enum": [
8940
+ "card",
8941
+ "text",
8942
+ "gallery",
8943
+ "gallery-left"
8944
+ ],
8945
+ "markdownDescription": "Controls how selected items are rendered.",
8394
8946
  "type": "string"
8395
8947
  }
8396
8948
  },
8397
- "required": [
8398
- "type"
8399
- ],
8400
8949
  "type": "object"
8401
8950
  },
8402
8951
  "SelectValues": {
@@ -9691,8 +10240,8 @@
9691
10240
  },
9692
10241
  "options": {
9693
10242
  "$ref": "#/definitions/TextInputOptions",
9694
- "description": "Options that are specific to this `type` of input.",
9695
- "markdownDescription": "Options that are specific to this `type` of input."
10243
+ "description": "Options that are specific to Text Inputs.",
10244
+ "markdownDescription": "Options that are specific to Text Inputs."
9696
10245
  },
9697
10246
  "type": {
9698
10247
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -9732,10 +10281,79 @@
9732
10281
  "description": "Icon shown beside the input.",
9733
10282
  "markdownDescription": "Icon shown beside the input."
9734
10283
  },
10284
+ "max_length": {
10285
+ "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.",
10286
+ "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.",
10287
+ "type": "number"
10288
+ },
10289
+ "min_length": {
10290
+ "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.",
10291
+ "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.",
10292
+ "type": "number"
10293
+ },
10294
+ "pattern": {
10295
+ "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.",
10296
+ "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.",
10297
+ "type": "string"
10298
+ },
10299
+ "pattern_flags": {
10300
+ "additionalProperties": false,
10301
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
10302
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
10303
+ "properties": {
10304
+ "dot_all": {
10305
+ "default": false,
10306
+ "description": "`s` - `.` matches newline characters.",
10307
+ "markdownDescription": "`s` - `.` matches newline characters.",
10308
+ "type": "boolean"
10309
+ },
10310
+ "global": {
10311
+ "default": false,
10312
+ "description": "`g` - Search globally.",
10313
+ "markdownDescription": "`g` - Search globally.",
10314
+ "type": "boolean"
10315
+ },
10316
+ "ignore_case": {
10317
+ "default": false,
10318
+ "description": "`i` - Case-insensitive.",
10319
+ "markdownDescription": "`i` - Case-insensitive.",
10320
+ "type": "boolean"
10321
+ },
10322
+ "multiline": {
10323
+ "default": false,
10324
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10325
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10326
+ "type": "boolean"
10327
+ },
10328
+ "unicode": {
10329
+ "default": false,
10330
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10331
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10332
+ "type": "boolean"
10333
+ },
10334
+ "unicode_sets": {
10335
+ "default": false,
10336
+ "description": "`v` - Extended `unicode` mode.",
10337
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10338
+ "type": "boolean"
10339
+ }
10340
+ },
10341
+ "type": "object"
10342
+ },
10343
+ "pattern_message": {
10344
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
10345
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
10346
+ "type": "string"
10347
+ },
9735
10348
  "placeholder": {
9736
10349
  "description": "Text shown when this input has no value.",
9737
10350
  "markdownDescription": "Text shown when this input has no value.",
9738
10351
  "type": "string"
10352
+ },
10353
+ "required": {
10354
+ "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).",
10355
+ "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).",
10356
+ "type": "boolean"
9739
10357
  }
9740
10358
  },
9741
10359
  "type": "object"
@@ -9822,8 +10440,8 @@
9822
10440
  },
9823
10441
  "options": {
9824
10442
  "$ref": "#/definitions/TextareaInputOptions",
9825
- "description": "Options that are specific to this `type` of input.",
9826
- "markdownDescription": "Options that are specific to this `type` of input."
10443
+ "description": "Options that are specific to Textarea Inputs.",
10444
+ "markdownDescription": "Options that are specific to Textarea Inputs."
9827
10445
  },
9828
10446
  "type": {
9829
10447
  "const": "textarea",
@@ -9854,11 +10472,80 @@
9854
10472
  "description": "Icon shown beside the input.",
9855
10473
  "markdownDescription": "Icon shown beside the input."
9856
10474
  },
10475
+ "max_length": {
10476
+ "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.",
10477
+ "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.",
10478
+ "type": "number"
10479
+ },
10480
+ "min_length": {
10481
+ "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.",
10482
+ "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.",
10483
+ "type": "number"
10484
+ },
10485
+ "pattern": {
10486
+ "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.",
10487
+ "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.",
10488
+ "type": "string"
10489
+ },
10490
+ "pattern_flags": {
10491
+ "additionalProperties": false,
10492
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
10493
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
10494
+ "properties": {
10495
+ "dot_all": {
10496
+ "default": false,
10497
+ "description": "`s` - `.` matches newline characters.",
10498
+ "markdownDescription": "`s` - `.` matches newline characters.",
10499
+ "type": "boolean"
10500
+ },
10501
+ "global": {
10502
+ "default": false,
10503
+ "description": "`g` - Search globally.",
10504
+ "markdownDescription": "`g` - Search globally.",
10505
+ "type": "boolean"
10506
+ },
10507
+ "ignore_case": {
10508
+ "default": false,
10509
+ "description": "`i` - Case-insensitive.",
10510
+ "markdownDescription": "`i` - Case-insensitive.",
10511
+ "type": "boolean"
10512
+ },
10513
+ "multiline": {
10514
+ "default": false,
10515
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10516
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10517
+ "type": "boolean"
10518
+ },
10519
+ "unicode": {
10520
+ "default": false,
10521
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10522
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10523
+ "type": "boolean"
10524
+ },
10525
+ "unicode_sets": {
10526
+ "default": false,
10527
+ "description": "`v` - Extended `unicode` mode.",
10528
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10529
+ "type": "boolean"
10530
+ }
10531
+ },
10532
+ "type": "object"
10533
+ },
10534
+ "pattern_message": {
10535
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
10536
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
10537
+ "type": "string"
10538
+ },
9857
10539
  "placeholder": {
9858
10540
  "description": "Text shown when this input has no value.",
9859
10541
  "markdownDescription": "Text shown when this input has no value.",
9860
10542
  "type": "string"
9861
10543
  },
10544
+ "required": {
10545
+ "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).",
10546
+ "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).",
10547
+ "type": "boolean"
10548
+ },
9862
10549
  "show_count": {
9863
10550
  "default": false,
9864
10551
  "description": "Shows a character counter below the input if enabled.",
@@ -9992,9 +10679,26 @@
9992
10679
  "type": "string"
9993
10680
  },
9994
10681
  "options": {
9995
- "$ref": "#/definitions/WithEmptyTypeText",
10682
+ "additionalProperties": false,
9996
10683
  "description": "Options that are specific to Time inputs.",
9997
- "markdownDescription": "Options that are specific to Time inputs."
10684
+ "markdownDescription": "Options that are specific to Time inputs.",
10685
+ "properties": {
10686
+ "empty_type": {
10687
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10688
+ "enum": [
10689
+ "null",
10690
+ "string"
10691
+ ],
10692
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10693
+ "type": "string"
10694
+ },
10695
+ "required": {
10696
+ "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).",
10697
+ "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).",
10698
+ "type": "boolean"
10699
+ }
10700
+ },
10701
+ "type": "object"
9998
10702
  },
9999
10703
  "type": {
10000
10704
  "const": "time",
@@ -10880,6 +11584,11 @@
10880
11584
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
10881
11585
  "type": "boolean"
10882
11586
  },
11587
+ "max_length": {
11588
+ "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.",
11589
+ "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.",
11590
+ "type": "number"
11591
+ },
10883
11592
  "mime_type": {
10884
11593
  "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.",
10885
11594
  "enum": [
@@ -10890,17 +11599,81 @@
10890
11599
  "markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
10891
11600
  "type": "string"
10892
11601
  },
11602
+ "min_length": {
11603
+ "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.",
11604
+ "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.",
11605
+ "type": "number"
11606
+ },
10893
11607
  "paths": {
10894
11608
  "$ref": "#/definitions/Paths",
10895
11609
  "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`.",
10896
11610
  "markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
10897
11611
  },
11612
+ "pattern": {
11613
+ "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.",
11614
+ "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.",
11615
+ "type": "string"
11616
+ },
11617
+ "pattern_flags": {
11618
+ "additionalProperties": false,
11619
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
11620
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
11621
+ "properties": {
11622
+ "dot_all": {
11623
+ "default": false,
11624
+ "description": "`s` - `.` matches newline characters.",
11625
+ "markdownDescription": "`s` - `.` matches newline characters.",
11626
+ "type": "boolean"
11627
+ },
11628
+ "global": {
11629
+ "default": false,
11630
+ "description": "`g` - Search globally.",
11631
+ "markdownDescription": "`g` - Search globally.",
11632
+ "type": "boolean"
11633
+ },
11634
+ "ignore_case": {
11635
+ "default": false,
11636
+ "description": "`i` - Case-insensitive.",
11637
+ "markdownDescription": "`i` - Case-insensitive.",
11638
+ "type": "boolean"
11639
+ },
11640
+ "multiline": {
11641
+ "default": false,
11642
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11643
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11644
+ "type": "boolean"
11645
+ },
11646
+ "unicode": {
11647
+ "default": false,
11648
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
11649
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
11650
+ "type": "boolean"
11651
+ },
11652
+ "unicode_sets": {
11653
+ "default": false,
11654
+ "description": "`v` - Extended `unicode` mode.",
11655
+ "markdownDescription": "`v` - Extended `unicode` mode.",
11656
+ "type": "boolean"
11657
+ }
11658
+ },
11659
+ "type": "object"
11660
+ },
11661
+ "pattern_message": {
11662
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
11663
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
11664
+ "type": "string"
11665
+ },
10898
11666
  "prevent_resize_existing_files": {
10899
11667
  "default": false,
10900
11668
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
10901
11669
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
10902
11670
  "type": "boolean"
10903
11671
  },
11672
+ "required": {
11673
+ "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).",
11674
+ "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).",
11675
+ "type": "boolean"
11676
+ },
10904
11677
  "resize_style": {
10905
11678
  "default": "contain",
10906
11679
  "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.",
@@ -10945,21 +11718,6 @@
10945
11718
  },
10946
11719
  "type": "object"
10947
11720
  },
10948
- "WithEmptyTypeText": {
10949
- "additionalProperties": false,
10950
- "properties": {
10951
- "empty_type": {
10952
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10953
- "enum": [
10954
- "null",
10955
- "string"
10956
- ],
10957
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10958
- "type": "string"
10959
- }
10960
- },
10961
- "type": "object"
10962
- },
10963
11721
  "WithPaths": {
10964
11722
  "additionalProperties": false,
10965
11723
  "properties": {