@cloudcannon/configuration-types 0.0.32 → 0.0.34

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.
@@ -146,20 +146,20 @@
146
146
  "properties": {
147
147
  "disable_add": {
148
148
  "default": false,
149
- "description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
150
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
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
151
  "type": "boolean"
152
152
  },
153
153
  "disable_remove": {
154
154
  "default": false,
155
- "description": "Hides the context menu actions on each array item for removing them.",
156
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
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
157
  "type": "boolean"
158
158
  },
159
159
  "disable_reorder": {
160
160
  "default": false,
161
- "description": "Hides the controls on each array item for moving them.",
162
- "markdownDescription": "Hides the controls on each array item for moving them.",
161
+ "description": "Hides the controls on each item for moving them.",
162
+ "markdownDescription": "Hides the controls on each item for moving them.",
163
163
  "type": "boolean"
164
164
  },
165
165
  "empty_type": {
@@ -1030,156 +1030,159 @@
1030
1030
  "type": "string"
1031
1031
  },
1032
1032
  "options": {
1033
- "additionalProperties": false,
1033
+ "$ref": "#/definitions/ChoiceInputOptions",
1034
1034
  "description": "Options that are specific to Choice Inputs.",
1035
- "markdownDescription": "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": {
1083
+ "additionalProperties": false,
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.",
1036
1086
  "properties": {
1037
- "allow_empty": {
1038
- "default": true,
1039
- "description": "Provides an empty option alongside the options provided by values.",
1040
- "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.",
1041
1091
  "type": "boolean"
1042
1092
  },
1043
- "empty_type": {
1044
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1045
- "enum": [
1046
- "null",
1047
- "string"
1048
- ],
1049
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1050
- "type": "string"
1051
- },
1052
- "max_length": {
1053
- "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.",
1054
- "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.",
1055
- "type": "number"
1056
- },
1057
- "min_length": {
1058
- "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.",
1059
- "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1060
- "type": "number"
1061
- },
1062
- "pattern": {
1063
- "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.",
1064
- "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.",
1065
- "type": "string"
1066
- },
1067
- "pattern_flags": {
1068
- "additionalProperties": false,
1069
- "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.",
1070
- "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.",
1071
- "properties": {
1072
- "dot_all": {
1073
- "default": false,
1074
- "description": "`s` - `.` matches newline characters.",
1075
- "markdownDescription": "`s` - `.` matches newline characters.",
1076
- "type": "boolean"
1077
- },
1078
- "global": {
1079
- "default": false,
1080
- "description": "`g` - Search globally.",
1081
- "markdownDescription": "`g` - Search globally.",
1082
- "type": "boolean"
1083
- },
1084
- "ignore_case": {
1085
- "default": false,
1086
- "description": "`i` - Case-insensitive.",
1087
- "markdownDescription": "`i` - Case-insensitive.",
1088
- "type": "boolean"
1089
- },
1090
- "multiline": {
1091
- "default": false,
1092
- "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1093
- "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1094
- "type": "boolean"
1095
- },
1096
- "unicode": {
1097
- "default": false,
1098
- "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1099
- "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1100
- "type": "boolean"
1101
- },
1102
- "unicode_sets": {
1103
- "default": false,
1104
- "description": "`v` - Extended `unicode` mode.",
1105
- "markdownDescription": "`v` - Extended `unicode` mode.",
1106
- "type": "boolean"
1107
- }
1108
- },
1109
- "type": "object"
1110
- },
1111
- "pattern_message": {
1112
- "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.",
1113
- "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.",
1114
- "type": "string"
1115
- },
1116
- "picker_preview": {
1117
- "$ref": "#/definitions/Preview",
1118
- "description": "Changes the way items are previewed in the CMS while being chosen.",
1119
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
1120
- },
1121
- "picker_view": {
1122
- "description": "Controls how selectable options are rendered.",
1123
- "enum": [
1124
- "card",
1125
- "text",
1126
- "gallery",
1127
- "gallery-left"
1128
- ],
1129
- "markdownDescription": "Controls how selectable options are rendered.",
1130
- "type": "string"
1131
- },
1132
- "preview": {
1133
- "$ref": "#/definitions/Preview",
1134
- "description": "Changes the way items are previewed in the CMS.",
1135
- "markdownDescription": "Changes the way items are previewed in the CMS."
1093
+ "global": {
1094
+ "default": false,
1095
+ "description": "`g` - Search globally.",
1096
+ "markdownDescription": "`g` - Search globally.",
1097
+ "type": "boolean"
1136
1098
  },
1137
- "required": {
1138
- "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).",
1139
- "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).",
1099
+ "ignore_case": {
1100
+ "default": false,
1101
+ "description": "`i` - Case-insensitive.",
1102
+ "markdownDescription": "`i` - Case-insensitive.",
1140
1103
  "type": "boolean"
1141
1104
  },
1142
- "value_key": {
1143
- "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.",
1144
- "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.",
1145
- "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"
1146
1110
  },
1147
- "values": {
1148
- "anyOf": [
1149
- {
1150
- "type": "string"
1151
- },
1152
- {
1153
- "$ref": "#/definitions/SelectValues"
1154
- }
1155
- ],
1156
- "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).",
1157
- "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"
1158
1116
  },
1159
- "view": {
1160
- "description": "Controls how selected items are rendered.",
1161
- "enum": [
1162
- "card",
1163
- "text",
1164
- "gallery",
1165
- "gallery-left"
1166
- ],
1167
- "markdownDescription": "Controls how selected items are rendered.",
1168
- "type": "string"
1117
+ "unicode_sets": {
1118
+ "default": false,
1119
+ "description": "`v` - Extended `unicode` mode.",
1120
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1121
+ "type": "boolean"
1169
1122
  }
1170
1123
  },
1171
1124
  "type": "object"
1172
1125
  },
1173
- "type": {
1174
- "const": "choice",
1175
- "description": "Sets an input type, which controls how this input appears and behaves.",
1176
- "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.",
1177
1183
  "type": "string"
1178
1184
  }
1179
1185
  },
1180
- "required": [
1181
- "type"
1182
- ],
1183
1186
  "type": "object"
1184
1187
  },
1185
1188
  "CodeInput": {
@@ -1832,6 +1835,11 @@
1832
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.",
1833
1836
  "type": "string"
1834
1837
  },
1838
+ "required": {
1839
+ "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).",
1840
+ "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).",
1841
+ "type": "boolean"
1842
+ },
1835
1843
  "start_from": {
1836
1844
  "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.",
1837
1845
  "format": "date-time",
@@ -7065,96 +7073,9 @@
7065
7073
  "type": "string"
7066
7074
  },
7067
7075
  "options": {
7068
- "additionalProperties": false,
7076
+ "$ref": "#/definitions/MultichoiceInputOptions",
7069
7077
  "description": "Options that are specific to Multichoice Inputs.",
7070
- "markdownDescription": "Options that are specific to Multichoice Inputs.",
7071
- "properties": {
7072
- "allow_empty": {
7073
- "default": true,
7074
- "description": "Provides an empty option alongside the options provided by values.",
7075
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
7076
- "type": "boolean"
7077
- },
7078
- "empty_type": {
7079
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7080
- "enum": [
7081
- "null",
7082
- "array"
7083
- ],
7084
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7085
- "type": "string"
7086
- },
7087
- "max_items": {
7088
- "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.",
7089
- "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.",
7090
- "type": "number"
7091
- },
7092
- "min_items": {
7093
- "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.",
7094
- "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.",
7095
- "type": "number"
7096
- },
7097
- "picker_preview": {
7098
- "$ref": "#/definitions/Preview",
7099
- "description": "Changes the way items are previewed in the CMS while being chosen.",
7100
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7101
- },
7102
- "picker_view": {
7103
- "description": "Controls how selectable options are rendered.",
7104
- "enum": [
7105
- "card",
7106
- "text",
7107
- "gallery",
7108
- "gallery-left"
7109
- ],
7110
- "markdownDescription": "Controls how selectable options are rendered.",
7111
- "type": "string"
7112
- },
7113
- "preview": {
7114
- "$ref": "#/definitions/Preview",
7115
- "description": "Changes the way items are previewed in the CMS.",
7116
- "markdownDescription": "Changes the way items are previewed in the CMS."
7117
- },
7118
- "required": {
7119
- "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).",
7120
- "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).",
7121
- "type": "boolean"
7122
- },
7123
- "unique_on": {
7124
- "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.",
7125
- "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.",
7126
- "type": "string"
7127
- },
7128
- "value_key": {
7129
- "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.",
7130
- "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.",
7131
- "type": "string"
7132
- },
7133
- "values": {
7134
- "anyOf": [
7135
- {
7136
- "type": "string"
7137
- },
7138
- {
7139
- "$ref": "#/definitions/SelectValues"
7140
- }
7141
- ],
7142
- "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).",
7143
- "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)."
7144
- },
7145
- "view": {
7146
- "description": "Controls how selected items are rendered.",
7147
- "enum": [
7148
- "card",
7149
- "text",
7150
- "gallery",
7151
- "gallery-left"
7152
- ],
7153
- "markdownDescription": "Controls how selected items are rendered.",
7154
- "type": "string"
7155
- }
7156
- },
7157
- "type": "object"
7078
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
7158
7079
  },
7159
7080
  "type": {
7160
7081
  "const": "multichoice",
@@ -7168,39 +7089,129 @@
7168
7089
  ],
7169
7090
  "type": "object"
7170
7091
  },
7171
- "MultiselectInput": {
7092
+ "MultichoiceInputOptions": {
7172
7093
  "additionalProperties": false,
7173
7094
  "properties": {
7174
- "cascade": {
7175
- "description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
7176
- "markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
7095
+ "allow_empty": {
7096
+ "default": true,
7097
+ "description": "Provides an empty option alongside the options provided by values.",
7098
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7177
7099
  "type": "boolean"
7178
7100
  },
7179
- "comment": {
7180
- "description": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.",
7181
- "markdownDescription": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:\nlinks, bold, italic, subscript, superscript, and inline code elements are allowed.",
7101
+ "empty_type": {
7102
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7103
+ "enum": [
7104
+ "null",
7105
+ "array"
7106
+ ],
7107
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7182
7108
  "type": "string"
7183
7109
  },
7184
- "context": {
7185
- "additionalProperties": false,
7186
- "description": "Adds an expandable section of rich text below the input.",
7187
- "markdownDescription": "Adds an expandable section of rich text below the input.",
7188
- "properties": {
7189
- "content": {
7190
- "description": "The rich text content shown when opened. Supports a limited set of Markdown.",
7191
- "markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
7192
- "type": "string"
7193
- },
7194
- "icon": {
7195
- "$ref": "#/definitions/Icon",
7196
- "description": "The icon shown when not open.",
7197
- "markdownDescription": "The icon shown when not open."
7198
- },
7199
- "open": {
7200
- "description": "Makes the content visible initially.",
7201
- "markdownDescription": "Makes the content visible initially.",
7202
- "type": "boolean"
7203
- },
7110
+ "max_items": {
7111
+ "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.",
7112
+ "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.",
7113
+ "type": "number"
7114
+ },
7115
+ "min_items": {
7116
+ "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.",
7117
+ "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.",
7118
+ "type": "number"
7119
+ },
7120
+ "picker_preview": {
7121
+ "$ref": "#/definitions/Preview",
7122
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7123
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7124
+ },
7125
+ "picker_view": {
7126
+ "description": "Controls how selectable options are rendered.",
7127
+ "enum": [
7128
+ "card",
7129
+ "text",
7130
+ "gallery",
7131
+ "gallery-left"
7132
+ ],
7133
+ "markdownDescription": "Controls how selectable options are rendered.",
7134
+ "type": "string"
7135
+ },
7136
+ "preview": {
7137
+ "$ref": "#/definitions/Preview",
7138
+ "description": "Changes the way items are previewed in the CMS.",
7139
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7140
+ },
7141
+ "required": {
7142
+ "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).",
7143
+ "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).",
7144
+ "type": "boolean"
7145
+ },
7146
+ "unique_on": {
7147
+ "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.",
7148
+ "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.",
7149
+ "type": "string"
7150
+ },
7151
+ "value_key": {
7152
+ "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.",
7153
+ "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.",
7154
+ "type": "string"
7155
+ },
7156
+ "values": {
7157
+ "anyOf": [
7158
+ {
7159
+ "type": "string"
7160
+ },
7161
+ {
7162
+ "$ref": "#/definitions/SelectValues"
7163
+ }
7164
+ ],
7165
+ "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).",
7166
+ "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)."
7167
+ },
7168
+ "view": {
7169
+ "description": "Controls how selected items are rendered.",
7170
+ "enum": [
7171
+ "card",
7172
+ "text",
7173
+ "gallery",
7174
+ "gallery-left"
7175
+ ],
7176
+ "markdownDescription": "Controls how selected items are rendered.",
7177
+ "type": "string"
7178
+ }
7179
+ },
7180
+ "type": "object"
7181
+ },
7182
+ "MultiselectInput": {
7183
+ "additionalProperties": false,
7184
+ "properties": {
7185
+ "cascade": {
7186
+ "description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
7187
+ "markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
7188
+ "type": "boolean"
7189
+ },
7190
+ "comment": {
7191
+ "description": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.",
7192
+ "markdownDescription": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:\nlinks, bold, italic, subscript, superscript, and inline code elements are allowed.",
7193
+ "type": "string"
7194
+ },
7195
+ "context": {
7196
+ "additionalProperties": false,
7197
+ "description": "Adds an expandable section of rich text below the input.",
7198
+ "markdownDescription": "Adds an expandable section of rich text below the input.",
7199
+ "properties": {
7200
+ "content": {
7201
+ "description": "The rich text content shown when opened. Supports a limited set of Markdown.",
7202
+ "markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
7203
+ "type": "string"
7204
+ },
7205
+ "icon": {
7206
+ "$ref": "#/definitions/Icon",
7207
+ "description": "The icon shown when not open.",
7208
+ "markdownDescription": "The icon shown when not open."
7209
+ },
7210
+ "open": {
7211
+ "description": "Makes the content visible initially.",
7212
+ "markdownDescription": "Makes the content visible initially.",
7213
+ "type": "boolean"
7214
+ },
7204
7215
  "title": {
7205
7216
  "description": "The text shown when not open. Defaults to \"Context\" if unset.",
7206
7217
  "markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
@@ -7268,22 +7279,34 @@
7268
7279
  "MultiselectInputOptions": {
7269
7280
  "additionalProperties": false,
7270
7281
  "properties": {
7282
+ "allow_create": {
7283
+ "default": false,
7284
+ "description": "Allows new text values to be created at edit time.",
7285
+ "markdownDescription": "Allows new text values to be created at edit time.",
7286
+ "type": "boolean"
7287
+ },
7288
+ "allow_empty": {
7289
+ "default": true,
7290
+ "description": "Provides an empty option alongside the options provided by values.",
7291
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7292
+ "type": "boolean"
7293
+ },
7271
7294
  "disable_add": {
7272
7295
  "default": false,
7273
- "description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
7274
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
7296
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7297
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7275
7298
  "type": "boolean"
7276
7299
  },
7277
7300
  "disable_remove": {
7278
7301
  "default": false,
7279
- "description": "Hides the context menu actions on each array item for removing them.",
7280
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
7302
+ "description": "Hides the context menu actions on each item for removing them.",
7303
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7281
7304
  "type": "boolean"
7282
7305
  },
7283
7306
  "disable_reorder": {
7284
7307
  "default": false,
7285
- "description": "Hides the controls on each array item for moving them.",
7286
- "markdownDescription": "Hides the controls on each array item for moving them.",
7308
+ "description": "Hides the controls on each item for moving them.",
7309
+ "markdownDescription": "Hides the controls on each item for moving them.",
7287
7310
  "type": "boolean"
7288
7311
  },
7289
7312
  "empty_type": {
@@ -7305,6 +7328,27 @@
7305
7328
  "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.",
7306
7329
  "type": "number"
7307
7330
  },
7331
+ "picker_preview": {
7332
+ "$ref": "#/definitions/Preview",
7333
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7334
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7335
+ },
7336
+ "picker_view": {
7337
+ "description": "Controls how selectable options are rendered.",
7338
+ "enum": [
7339
+ "card",
7340
+ "text",
7341
+ "gallery",
7342
+ "gallery-left"
7343
+ ],
7344
+ "markdownDescription": "Controls how selectable options are rendered.",
7345
+ "type": "string"
7346
+ },
7347
+ "preview": {
7348
+ "$ref": "#/definitions/Preview",
7349
+ "description": "Changes the way items are previewed in the CMS.",
7350
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7351
+ },
7308
7352
  "required": {
7309
7353
  "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).",
7310
7354
  "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).",
@@ -7314,6 +7358,34 @@
7314
7358
  "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.",
7315
7359
  "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.",
7316
7360
  "type": "string"
7361
+ },
7362
+ "value_key": {
7363
+ "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.",
7364
+ "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.",
7365
+ "type": "string"
7366
+ },
7367
+ "values": {
7368
+ "anyOf": [
7369
+ {
7370
+ "type": "string"
7371
+ },
7372
+ {
7373
+ "$ref": "#/definitions/SelectValues"
7374
+ }
7375
+ ],
7376
+ "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).",
7377
+ "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)."
7378
+ },
7379
+ "view": {
7380
+ "description": "Controls how selected items are rendered.",
7381
+ "enum": [
7382
+ "card",
7383
+ "text",
7384
+ "gallery",
7385
+ "gallery-left"
7386
+ ],
7387
+ "markdownDescription": "Controls how selected items are rendered.",
7388
+ "type": "string"
7317
7389
  }
7318
7390
  },
7319
7391
  "type": "object"
@@ -8720,162 +8792,165 @@
8720
8792
  "type": "string"
8721
8793
  },
8722
8794
  "options": {
8723
- "additionalProperties": false,
8795
+ "$ref": "#/definitions/SelectInputOptions",
8724
8796
  "description": "Options that are specific to Select Inputs.",
8725
- "markdownDescription": "Options that are specific to Select Inputs.",
8797
+ "markdownDescription": "Options that are specific to Select Inputs."
8798
+ },
8799
+ "type": {
8800
+ "const": "select",
8801
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8802
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8803
+ "type": "string"
8804
+ }
8805
+ },
8806
+ "required": [
8807
+ "type"
8808
+ ],
8809
+ "type": "object"
8810
+ },
8811
+ "SelectInputOptions": {
8812
+ "additionalProperties": false,
8813
+ "properties": {
8814
+ "allow_create": {
8815
+ "default": false,
8816
+ "description": "Allows new text values to be created at edit time.",
8817
+ "markdownDescription": "Allows new text values to be created at edit time.",
8818
+ "type": "boolean"
8819
+ },
8820
+ "allow_empty": {
8821
+ "default": true,
8822
+ "description": "Provides an empty option alongside the options provided by values.",
8823
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8824
+ "type": "boolean"
8825
+ },
8826
+ "empty_type": {
8827
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8828
+ "enum": [
8829
+ "null",
8830
+ "string"
8831
+ ],
8832
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8833
+ "type": "string"
8834
+ },
8835
+ "max_length": {
8836
+ "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.",
8837
+ "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.",
8838
+ "type": "number"
8839
+ },
8840
+ "min_length": {
8841
+ "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.",
8842
+ "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.",
8843
+ "type": "number"
8844
+ },
8845
+ "pattern": {
8846
+ "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.",
8847
+ "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.",
8848
+ "type": "string"
8849
+ },
8850
+ "pattern_flags": {
8851
+ "additionalProperties": false,
8852
+ "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.",
8853
+ "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.",
8726
8854
  "properties": {
8727
- "allow_create": {
8855
+ "dot_all": {
8728
8856
  "default": false,
8729
- "description": "Allows new text values to be created at edit time.",
8730
- "markdownDescription": "Allows new text values to be created at edit time.",
8857
+ "description": "`s` - `.` matches newline characters.",
8858
+ "markdownDescription": "`s` - `.` matches newline characters.",
8731
8859
  "type": "boolean"
8732
8860
  },
8733
- "allow_empty": {
8734
- "default": true,
8735
- "description": "Provides an empty option alongside the options provided by values.",
8736
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8861
+ "global": {
8862
+ "default": false,
8863
+ "description": "`g` - Search globally.",
8864
+ "markdownDescription": "`g` - Search globally.",
8737
8865
  "type": "boolean"
8738
8866
  },
8739
- "empty_type": {
8740
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8741
- "enum": [
8742
- "null",
8743
- "string"
8744
- ],
8745
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8746
- "type": "string"
8747
- },
8748
- "max_length": {
8749
- "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.",
8750
- "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.",
8751
- "type": "number"
8752
- },
8753
- "min_length": {
8754
- "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.",
8755
- "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.",
8756
- "type": "number"
8757
- },
8758
- "pattern": {
8759
- "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.",
8760
- "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.",
8761
- "type": "string"
8762
- },
8763
- "pattern_flags": {
8764
- "additionalProperties": false,
8765
- "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.",
8766
- "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.",
8767
- "properties": {
8768
- "dot_all": {
8769
- "default": false,
8770
- "description": "`s` - `.` matches newline characters.",
8771
- "markdownDescription": "`s` - `.` matches newline characters.",
8772
- "type": "boolean"
8773
- },
8774
- "global": {
8775
- "default": false,
8776
- "description": "`g` - Search globally.",
8777
- "markdownDescription": "`g` - Search globally.",
8778
- "type": "boolean"
8779
- },
8780
- "ignore_case": {
8781
- "default": false,
8782
- "description": "`i` - Case-insensitive.",
8783
- "markdownDescription": "`i` - Case-insensitive.",
8784
- "type": "boolean"
8785
- },
8786
- "multiline": {
8787
- "default": false,
8788
- "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8789
- "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8790
- "type": "boolean"
8791
- },
8792
- "unicode": {
8793
- "default": false,
8794
- "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8795
- "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8796
- "type": "boolean"
8797
- },
8798
- "unicode_sets": {
8799
- "default": false,
8800
- "description": "`v` - Extended `unicode` mode.",
8801
- "markdownDescription": "`v` - Extended `unicode` mode.",
8802
- "type": "boolean"
8803
- }
8804
- },
8805
- "type": "object"
8806
- },
8807
- "pattern_message": {
8808
- "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.",
8809
- "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.",
8810
- "type": "string"
8811
- },
8812
- "picker_preview": {
8813
- "$ref": "#/definitions/Preview",
8814
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8815
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8816
- },
8817
- "picker_view": {
8818
- "description": "Controls how selectable options are rendered.",
8819
- "enum": [
8820
- "card",
8821
- "text",
8822
- "gallery",
8823
- "gallery-left"
8824
- ],
8825
- "markdownDescription": "Controls how selectable options are rendered.",
8826
- "type": "string"
8827
- },
8828
- "preview": {
8829
- "$ref": "#/definitions/Preview",
8830
- "description": "Changes the way items are previewed in the CMS.",
8831
- "markdownDescription": "Changes the way items are previewed in the CMS."
8832
- },
8833
- "required": {
8834
- "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).",
8835
- "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).",
8867
+ "ignore_case": {
8868
+ "default": false,
8869
+ "description": "`i` - Case-insensitive.",
8870
+ "markdownDescription": "`i` - Case-insensitive.",
8836
8871
  "type": "boolean"
8837
8872
  },
8838
- "value_key": {
8839
- "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.",
8840
- "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.",
8841
- "type": "string"
8873
+ "multiline": {
8874
+ "default": false,
8875
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8876
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8877
+ "type": "boolean"
8842
8878
  },
8843
- "values": {
8844
- "anyOf": [
8845
- {
8846
- "type": "string"
8847
- },
8848
- {
8849
- "$ref": "#/definitions/SelectValues"
8850
- }
8851
- ],
8852
- "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).",
8853
- "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)."
8879
+ "unicode": {
8880
+ "default": false,
8881
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8882
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8883
+ "type": "boolean"
8854
8884
  },
8855
- "view": {
8856
- "description": "Controls how selected items are rendered.",
8857
- "enum": [
8858
- "card",
8859
- "text",
8860
- "gallery",
8861
- "gallery-left"
8862
- ],
8863
- "markdownDescription": "Controls how selected items are rendered.",
8864
- "type": "string"
8885
+ "unicode_sets": {
8886
+ "default": false,
8887
+ "description": "`v` - Extended `unicode` mode.",
8888
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8889
+ "type": "boolean"
8865
8890
  }
8866
8891
  },
8867
8892
  "type": "object"
8868
8893
  },
8869
- "type": {
8870
- "const": "select",
8871
- "description": "Sets an input type, which controls how this input appears and behaves.",
8872
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8894
+ "pattern_message": {
8895
+ "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.",
8896
+ "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.",
8897
+ "type": "string"
8898
+ },
8899
+ "picker_preview": {
8900
+ "$ref": "#/definitions/Preview",
8901
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8902
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8903
+ },
8904
+ "picker_view": {
8905
+ "description": "Controls how selectable options are rendered.",
8906
+ "enum": [
8907
+ "card",
8908
+ "text",
8909
+ "gallery",
8910
+ "gallery-left"
8911
+ ],
8912
+ "markdownDescription": "Controls how selectable options are rendered.",
8913
+ "type": "string"
8914
+ },
8915
+ "preview": {
8916
+ "$ref": "#/definitions/Preview",
8917
+ "description": "Changes the way items are previewed in the CMS.",
8918
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8919
+ },
8920
+ "required": {
8921
+ "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).",
8922
+ "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).",
8923
+ "type": "boolean"
8924
+ },
8925
+ "value_key": {
8926
+ "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.",
8927
+ "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.",
8928
+ "type": "string"
8929
+ },
8930
+ "values": {
8931
+ "anyOf": [
8932
+ {
8933
+ "type": "string"
8934
+ },
8935
+ {
8936
+ "$ref": "#/definitions/SelectValues"
8937
+ }
8938
+ ],
8939
+ "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).",
8940
+ "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)."
8941
+ },
8942
+ "view": {
8943
+ "description": "Controls how selected items are rendered.",
8944
+ "enum": [
8945
+ "card",
8946
+ "text",
8947
+ "gallery",
8948
+ "gallery-left"
8949
+ ],
8950
+ "markdownDescription": "Controls how selected items are rendered.",
8873
8951
  "type": "string"
8874
8952
  }
8875
8953
  },
8876
- "required": [
8877
- "type"
8878
- ],
8879
8954
  "type": "object"
8880
8955
  },
8881
8956
  "SelectValues": {