@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"
@@ -803,87 +841,159 @@
803
841
  "type": "string"
804
842
  },
805
843
  "options": {
844
+ "$ref": "#/definitions/ChoiceInputOptions",
845
+ "description": "Options that are specific to Choice Inputs.",
846
+ "markdownDescription": "Options that are specific to Choice Inputs."
847
+ },
848
+ "type": {
849
+ "const": "choice",
850
+ "description": "Sets an input type, which controls how this input appears and behaves.",
851
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
852
+ "type": "string"
853
+ }
854
+ },
855
+ "required": [
856
+ "type"
857
+ ],
858
+ "type": "object"
859
+ },
860
+ "ChoiceInputOptions": {
861
+ "additionalProperties": false,
862
+ "properties": {
863
+ "allow_empty": {
864
+ "default": true,
865
+ "description": "Provides an empty option alongside the options provided by values.",
866
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
867
+ "type": "boolean"
868
+ },
869
+ "empty_type": {
870
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
871
+ "enum": [
872
+ "null",
873
+ "string"
874
+ ],
875
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
876
+ "type": "string"
877
+ },
878
+ "max_length": {
879
+ "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.",
880
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
881
+ "type": "number"
882
+ },
883
+ "min_length": {
884
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
885
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
886
+ "type": "number"
887
+ },
888
+ "pattern": {
889
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
890
+ "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.",
891
+ "type": "string"
892
+ },
893
+ "pattern_flags": {
806
894
  "additionalProperties": false,
807
- "description": "Options that are specific to this `type` of input.",
808
- "markdownDescription": "Options that are specific to this `type` of input.",
895
+ "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.",
896
+ "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.",
809
897
  "properties": {
810
- "allow_empty": {
811
- "default": true,
812
- "description": "Provides an empty option alongside the options provided by values.",
813
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
898
+ "dot_all": {
899
+ "default": false,
900
+ "description": "`s` - `.` matches newline characters.",
901
+ "markdownDescription": "`s` - `.` matches newline characters.",
814
902
  "type": "boolean"
815
903
  },
816
- "empty_type": {
817
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
818
- "enum": [
819
- "null",
820
- "string"
821
- ],
822
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
823
- "type": "string"
824
- },
825
- "picker_preview": {
826
- "$ref": "#/definitions/Preview",
827
- "description": "Changes the way items are previewed in the CMS while being chosen.",
828
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
829
- },
830
- "picker_view": {
831
- "description": "Controls how selectable options are rendered.",
832
- "enum": [
833
- "card",
834
- "text",
835
- "gallery",
836
- "gallery-left"
837
- ],
838
- "markdownDescription": "Controls how selectable options are rendered.",
839
- "type": "string"
904
+ "global": {
905
+ "default": false,
906
+ "description": "`g` - Search globally.",
907
+ "markdownDescription": "`g` - Search globally.",
908
+ "type": "boolean"
840
909
  },
841
- "preview": {
842
- "$ref": "#/definitions/Preview",
843
- "description": "Changes the way items are previewed in the CMS.",
844
- "markdownDescription": "Changes the way items are previewed in the CMS."
910
+ "ignore_case": {
911
+ "default": false,
912
+ "description": "`i` - Case-insensitive.",
913
+ "markdownDescription": "`i` - Case-insensitive.",
914
+ "type": "boolean"
845
915
  },
846
- "value_key": {
847
- "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.",
848
- "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.",
849
- "type": "string"
916
+ "multiline": {
917
+ "default": false,
918
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
919
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
920
+ "type": "boolean"
850
921
  },
851
- "values": {
852
- "anyOf": [
853
- {
854
- "type": "string"
855
- },
856
- {
857
- "$ref": "#/definitions/SelectValues"
858
- }
859
- ],
860
- "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).",
861
- "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)."
922
+ "unicode": {
923
+ "default": false,
924
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
925
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
926
+ "type": "boolean"
862
927
  },
863
- "view": {
864
- "description": "Controls how selected items are rendered.",
865
- "enum": [
866
- "card",
867
- "text",
868
- "gallery",
869
- "gallery-left"
870
- ],
871
- "markdownDescription": "Controls how selected items are rendered.",
872
- "type": "string"
928
+ "unicode_sets": {
929
+ "default": false,
930
+ "description": "`v` - Extended `unicode` mode.",
931
+ "markdownDescription": "`v` - Extended `unicode` mode.",
932
+ "type": "boolean"
873
933
  }
874
934
  },
875
935
  "type": "object"
876
936
  },
877
- "type": {
878
- "const": "choice",
879
- "description": "Sets an input type, which controls how this input appears and behaves.",
880
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
937
+ "pattern_message": {
938
+ "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.",
939
+ "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.",
940
+ "type": "string"
941
+ },
942
+ "picker_preview": {
943
+ "$ref": "#/definitions/Preview",
944
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
945
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
946
+ },
947
+ "picker_view": {
948
+ "description": "Controls how selectable options are rendered.",
949
+ "enum": [
950
+ "card",
951
+ "text",
952
+ "gallery",
953
+ "gallery-left"
954
+ ],
955
+ "markdownDescription": "Controls how selectable options are rendered.",
956
+ "type": "string"
957
+ },
958
+ "preview": {
959
+ "$ref": "#/definitions/Preview",
960
+ "description": "Changes the way items are previewed in the CMS.",
961
+ "markdownDescription": "Changes the way items are previewed in the CMS."
962
+ },
963
+ "required": {
964
+ "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).",
965
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
966
+ "type": "boolean"
967
+ },
968
+ "value_key": {
969
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
970
+ "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.",
971
+ "type": "string"
972
+ },
973
+ "values": {
974
+ "anyOf": [
975
+ {
976
+ "type": "string"
977
+ },
978
+ {
979
+ "$ref": "#/definitions/SelectValues"
980
+ }
981
+ ],
982
+ "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).",
983
+ "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)."
984
+ },
985
+ "view": {
986
+ "description": "Controls how selected items are rendered.",
987
+ "enum": [
988
+ "card",
989
+ "text",
990
+ "gallery",
991
+ "gallery-left"
992
+ ],
993
+ "markdownDescription": "Controls how selected items are rendered.",
881
994
  "type": "string"
882
995
  }
883
996
  },
884
- "required": [
885
- "type"
886
- ],
887
997
  "type": "object"
888
998
  },
889
999
  "CodeInput": {
@@ -968,8 +1078,8 @@
968
1078
  },
969
1079
  "options": {
970
1080
  "$ref": "#/definitions/CodeInputOptions",
971
- "description": "Options that are specific to this `type` of input.",
972
- "markdownDescription": "Options that are specific to this `type` of input."
1081
+ "description": "Options that are specific to Code Inputs.",
1082
+ "markdownDescription": "Options that are specific to Code Inputs."
973
1083
  },
974
1084
  "type": {
975
1085
  "const": "code",
@@ -995,18 +1105,87 @@
995
1105
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
996
1106
  "type": "string"
997
1107
  },
1108
+ "max_length": {
1109
+ "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.",
1110
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1111
+ "type": "number"
1112
+ },
998
1113
  "max_visible_lines": {
999
1114
  "default": 30,
1000
1115
  "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.",
1001
1116
  "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.",
1002
1117
  "type": "number"
1003
1118
  },
1119
+ "min_length": {
1120
+ "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.",
1121
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1122
+ "type": "number"
1123
+ },
1004
1124
  "min_visible_lines": {
1005
1125
  "default": 10,
1006
1126
  "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`.",
1007
1127
  "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`.",
1008
1128
  "type": "number"
1009
1129
  },
1130
+ "pattern": {
1131
+ "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.",
1132
+ "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.",
1133
+ "type": "string"
1134
+ },
1135
+ "pattern_flags": {
1136
+ "additionalProperties": false,
1137
+ "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.",
1138
+ "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.",
1139
+ "properties": {
1140
+ "dot_all": {
1141
+ "default": false,
1142
+ "description": "`s` - `.` matches newline characters.",
1143
+ "markdownDescription": "`s` - `.` matches newline characters.",
1144
+ "type": "boolean"
1145
+ },
1146
+ "global": {
1147
+ "default": false,
1148
+ "description": "`g` - Search globally.",
1149
+ "markdownDescription": "`g` - Search globally.",
1150
+ "type": "boolean"
1151
+ },
1152
+ "ignore_case": {
1153
+ "default": false,
1154
+ "description": "`i` - Case-insensitive.",
1155
+ "markdownDescription": "`i` - Case-insensitive.",
1156
+ "type": "boolean"
1157
+ },
1158
+ "multiline": {
1159
+ "default": false,
1160
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1161
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1162
+ "type": "boolean"
1163
+ },
1164
+ "unicode": {
1165
+ "default": false,
1166
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1167
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1168
+ "type": "boolean"
1169
+ },
1170
+ "unicode_sets": {
1171
+ "default": false,
1172
+ "description": "`v` - Extended `unicode` mode.",
1173
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1174
+ "type": "boolean"
1175
+ }
1176
+ },
1177
+ "type": "object"
1178
+ },
1179
+ "pattern_message": {
1180
+ "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.",
1181
+ "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.",
1182
+ "type": "string"
1183
+ },
1184
+ "required": {
1185
+ "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).",
1186
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1187
+ "type": "boolean"
1188
+ },
1010
1189
  "show_gutter": {
1011
1190
  "default": true,
1012
1191
  "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",
@@ -1144,8 +1323,8 @@
1144
1323
  },
1145
1324
  "options": {
1146
1325
  "$ref": "#/definitions/ColorInputOptions",
1147
- "description": "Options that are specific to this `type` of input.",
1148
- "markdownDescription": "Options that are specific to this `type` of input."
1326
+ "description": "Options that are specific to Color Inputs.",
1327
+ "markdownDescription": "Options that are specific to Color Inputs."
1149
1328
  },
1150
1329
  "type": {
1151
1330
  "const": "color",
@@ -1186,6 +1365,75 @@
1186
1365
  ],
1187
1366
  "markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
1188
1367
  "type": "string"
1368
+ },
1369
+ "max_length": {
1370
+ "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.",
1371
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1372
+ "type": "number"
1373
+ },
1374
+ "min_length": {
1375
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1376
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1377
+ "type": "number"
1378
+ },
1379
+ "pattern": {
1380
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1381
+ "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.",
1382
+ "type": "string"
1383
+ },
1384
+ "pattern_flags": {
1385
+ "additionalProperties": false,
1386
+ "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.",
1387
+ "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.",
1388
+ "properties": {
1389
+ "dot_all": {
1390
+ "default": false,
1391
+ "description": "`s` - `.` matches newline characters.",
1392
+ "markdownDescription": "`s` - `.` matches newline characters.",
1393
+ "type": "boolean"
1394
+ },
1395
+ "global": {
1396
+ "default": false,
1397
+ "description": "`g` - Search globally.",
1398
+ "markdownDescription": "`g` - Search globally.",
1399
+ "type": "boolean"
1400
+ },
1401
+ "ignore_case": {
1402
+ "default": false,
1403
+ "description": "`i` - Case-insensitive.",
1404
+ "markdownDescription": "`i` - Case-insensitive.",
1405
+ "type": "boolean"
1406
+ },
1407
+ "multiline": {
1408
+ "default": false,
1409
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1410
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1411
+ "type": "boolean"
1412
+ },
1413
+ "unicode": {
1414
+ "default": false,
1415
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1416
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1417
+ "type": "boolean"
1418
+ },
1419
+ "unicode_sets": {
1420
+ "default": false,
1421
+ "description": "`v` - Extended `unicode` mode.",
1422
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1423
+ "type": "boolean"
1424
+ }
1425
+ },
1426
+ "type": "object"
1427
+ },
1428
+ "pattern_message": {
1429
+ "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.",
1430
+ "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.",
1431
+ "type": "string"
1432
+ },
1433
+ "required": {
1434
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1435
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1436
+ "type": "boolean"
1189
1437
  }
1190
1438
  },
1191
1439
  "type": "object"
@@ -1392,6 +1640,18 @@
1392
1640
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1393
1641
  "type": "string"
1394
1642
  },
1643
+ "end_before": {
1644
+ "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.",
1645
+ "format": "date-time",
1646
+ "markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
1647
+ "type": "string"
1648
+ },
1649
+ "start_from": {
1650
+ "description": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting an earlier date and time. If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be a later date and time.\n\nThis key has no default.",
1651
+ "format": "date-time",
1652
+ "markdownDescription": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an\nInput. When configured, CloudCannon will prevent you from selecting an earlier date and time.\nIf the Input already contains an earlier date and time, CloudCannon will require you to change\nit to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be\na later date and time.\n\nThis key has no default.",
1653
+ "type": "string"
1654
+ },
1395
1655
  "timezone": {
1396
1656
  "$ref": "#/definitions/Timezone",
1397
1657
  "default": "Etc/UTC",
@@ -1713,6 +1973,11 @@
1713
1973
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
1714
1974
  "type": "boolean"
1715
1975
  },
1976
+ "max_length": {
1977
+ "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1978
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1979
+ "type": "number"
1980
+ },
1716
1981
  "mime_type": {
1717
1982
  "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.",
1718
1983
  "enum": [
@@ -1723,17 +1988,81 @@
1723
1988
  "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.",
1724
1989
  "type": "string"
1725
1990
  },
1991
+ "min_length": {
1992
+ "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.",
1993
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1994
+ "type": "number"
1995
+ },
1726
1996
  "paths": {
1727
1997
  "$ref": "#/definitions/Paths",
1728
1998
  "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`.",
1729
1999
  "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`."
1730
2000
  },
2001
+ "pattern": {
2002
+ "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.",
2003
+ "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.",
2004
+ "type": "string"
2005
+ },
2006
+ "pattern_flags": {
2007
+ "additionalProperties": false,
2008
+ "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.",
2009
+ "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.",
2010
+ "properties": {
2011
+ "dot_all": {
2012
+ "default": false,
2013
+ "description": "`s` - `.` matches newline characters.",
2014
+ "markdownDescription": "`s` - `.` matches newline characters.",
2015
+ "type": "boolean"
2016
+ },
2017
+ "global": {
2018
+ "default": false,
2019
+ "description": "`g` - Search globally.",
2020
+ "markdownDescription": "`g` - Search globally.",
2021
+ "type": "boolean"
2022
+ },
2023
+ "ignore_case": {
2024
+ "default": false,
2025
+ "description": "`i` - Case-insensitive.",
2026
+ "markdownDescription": "`i` - Case-insensitive.",
2027
+ "type": "boolean"
2028
+ },
2029
+ "multiline": {
2030
+ "default": false,
2031
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2032
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2033
+ "type": "boolean"
2034
+ },
2035
+ "unicode": {
2036
+ "default": false,
2037
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
2038
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
2039
+ "type": "boolean"
2040
+ },
2041
+ "unicode_sets": {
2042
+ "default": false,
2043
+ "description": "`v` - Extended `unicode` mode.",
2044
+ "markdownDescription": "`v` - Extended `unicode` mode.",
2045
+ "type": "boolean"
2046
+ }
2047
+ },
2048
+ "type": "object"
2049
+ },
2050
+ "pattern_message": {
2051
+ "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.",
2052
+ "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.",
2053
+ "type": "string"
2054
+ },
1731
2055
  "prevent_resize_existing_files": {
1732
2056
  "default": false,
1733
2057
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
1734
2058
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
1735
2059
  "type": "boolean"
1736
2060
  },
2061
+ "required": {
2062
+ "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).",
2063
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
2064
+ "type": "boolean"
2065
+ },
1737
2066
  "resize_style": {
1738
2067
  "default": "contain",
1739
2068
  "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.",
@@ -6746,76 +7075,9 @@
6746
7075
  "type": "string"
6747
7076
  },
6748
7077
  "options": {
6749
- "additionalProperties": false,
6750
- "description": "Options that are specific to this `type` of input.",
6751
- "markdownDescription": "Options that are specific to this `type` of input.",
6752
- "properties": {
6753
- "allow_empty": {
6754
- "default": true,
6755
- "description": "Provides an empty option alongside the options provided by values.",
6756
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6757
- "type": "boolean"
6758
- },
6759
- "empty_type": {
6760
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6761
- "enum": [
6762
- "null",
6763
- "array"
6764
- ],
6765
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6766
- "type": "string"
6767
- },
6768
- "picker_preview": {
6769
- "$ref": "#/definitions/Preview",
6770
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6771
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6772
- },
6773
- "picker_view": {
6774
- "description": "Controls how selectable options are rendered.",
6775
- "enum": [
6776
- "card",
6777
- "text",
6778
- "gallery",
6779
- "gallery-left"
6780
- ],
6781
- "markdownDescription": "Controls how selectable options are rendered.",
6782
- "type": "string"
6783
- },
6784
- "preview": {
6785
- "$ref": "#/definitions/Preview",
6786
- "description": "Changes the way items are previewed in the CMS.",
6787
- "markdownDescription": "Changes the way items are previewed in the CMS."
6788
- },
6789
- "value_key": {
6790
- "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.",
6791
- "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.",
6792
- "type": "string"
6793
- },
6794
- "values": {
6795
- "anyOf": [
6796
- {
6797
- "type": "string"
6798
- },
6799
- {
6800
- "$ref": "#/definitions/SelectValues"
6801
- }
6802
- ],
6803
- "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).",
6804
- "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)."
6805
- },
6806
- "view": {
6807
- "description": "Controls how selected items are rendered.",
6808
- "enum": [
6809
- "card",
6810
- "text",
6811
- "gallery",
6812
- "gallery-left"
6813
- ],
6814
- "markdownDescription": "Controls how selected items are rendered.",
6815
- "type": "string"
6816
- }
6817
- },
6818
- "type": "object"
7078
+ "$ref": "#/definitions/MultichoiceInputOptions",
7079
+ "description": "Options that are specific to Multichoice Inputs.",
7080
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
6819
7081
  },
6820
7082
  "type": {
6821
7083
  "const": "multichoice",
@@ -6829,6 +7091,96 @@
6829
7091
  ],
6830
7092
  "type": "object"
6831
7093
  },
7094
+ "MultichoiceInputOptions": {
7095
+ "additionalProperties": false,
7096
+ "properties": {
7097
+ "allow_empty": {
7098
+ "default": true,
7099
+ "description": "Provides an empty option alongside the options provided by values.",
7100
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7101
+ "type": "boolean"
7102
+ },
7103
+ "empty_type": {
7104
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7105
+ "enum": [
7106
+ "null",
7107
+ "array"
7108
+ ],
7109
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7110
+ "type": "string"
7111
+ },
7112
+ "max_items": {
7113
+ "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.",
7114
+ "markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
7115
+ "type": "number"
7116
+ },
7117
+ "min_items": {
7118
+ "description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
7119
+ "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
7120
+ "type": "number"
7121
+ },
7122
+ "picker_preview": {
7123
+ "$ref": "#/definitions/Preview",
7124
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7125
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7126
+ },
7127
+ "picker_view": {
7128
+ "description": "Controls how selectable options are rendered.",
7129
+ "enum": [
7130
+ "card",
7131
+ "text",
7132
+ "gallery",
7133
+ "gallery-left"
7134
+ ],
7135
+ "markdownDescription": "Controls how selectable options are rendered.",
7136
+ "type": "string"
7137
+ },
7138
+ "preview": {
7139
+ "$ref": "#/definitions/Preview",
7140
+ "description": "Changes the way items are previewed in the CMS.",
7141
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7142
+ },
7143
+ "required": {
7144
+ "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).",
7145
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7146
+ "type": "boolean"
7147
+ },
7148
+ "unique_on": {
7149
+ "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7150
+ "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7151
+ "type": "string"
7152
+ },
7153
+ "value_key": {
7154
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
7155
+ "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.",
7156
+ "type": "string"
7157
+ },
7158
+ "values": {
7159
+ "anyOf": [
7160
+ {
7161
+ "type": "string"
7162
+ },
7163
+ {
7164
+ "$ref": "#/definitions/SelectValues"
7165
+ }
7166
+ ],
7167
+ "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).",
7168
+ "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)."
7169
+ },
7170
+ "view": {
7171
+ "description": "Controls how selected items are rendered.",
7172
+ "enum": [
7173
+ "card",
7174
+ "text",
7175
+ "gallery",
7176
+ "gallery-left"
7177
+ ],
7178
+ "markdownDescription": "Controls how selected items are rendered.",
7179
+ "type": "string"
7180
+ }
7181
+ },
7182
+ "type": "object"
7183
+ },
6832
7184
  "MultiselectInput": {
6833
7185
  "additionalProperties": false,
6834
7186
  "properties": {
@@ -6910,82 +7262,9 @@
6910
7262
  "type": "string"
6911
7263
  },
6912
7264
  "options": {
6913
- "additionalProperties": false,
6914
- "description": "Options that are specific to this `type` of input.",
6915
- "markdownDescription": "Options that are specific to this `type` of input.",
6916
- "properties": {
6917
- "allow_create": {
6918
- "default": false,
6919
- "description": "Allows new text values to be created at edit time.",
6920
- "markdownDescription": "Allows new text values to be created at edit time.",
6921
- "type": "boolean"
6922
- },
6923
- "allow_empty": {
6924
- "default": true,
6925
- "description": "Provides an empty option alongside the options provided by values.",
6926
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6927
- "type": "boolean"
6928
- },
6929
- "empty_type": {
6930
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6931
- "enum": [
6932
- "null",
6933
- "array"
6934
- ],
6935
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6936
- "type": "string"
6937
- },
6938
- "picker_preview": {
6939
- "$ref": "#/definitions/Preview",
6940
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6941
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6942
- },
6943
- "picker_view": {
6944
- "description": "Controls how selectable options are rendered.",
6945
- "enum": [
6946
- "card",
6947
- "text",
6948
- "gallery",
6949
- "gallery-left"
6950
- ],
6951
- "markdownDescription": "Controls how selectable options are rendered.",
6952
- "type": "string"
6953
- },
6954
- "preview": {
6955
- "$ref": "#/definitions/Preview",
6956
- "description": "Changes the way items are previewed in the CMS.",
6957
- "markdownDescription": "Changes the way items are previewed in the CMS."
6958
- },
6959
- "value_key": {
6960
- "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.",
6961
- "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.",
6962
- "type": "string"
6963
- },
6964
- "values": {
6965
- "anyOf": [
6966
- {
6967
- "type": "string"
6968
- },
6969
- {
6970
- "$ref": "#/definitions/SelectValues"
6971
- }
6972
- ],
6973
- "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).",
6974
- "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)."
6975
- },
6976
- "view": {
6977
- "description": "Controls how selected items are rendered.",
6978
- "enum": [
6979
- "card",
6980
- "text",
6981
- "gallery",
6982
- "gallery-left"
6983
- ],
6984
- "markdownDescription": "Controls how selected items are rendered.",
6985
- "type": "string"
6986
- }
6987
- },
6988
- "type": "object"
7265
+ "$ref": "#/definitions/MultiselectInputOptions",
7266
+ "description": "Options that are specific to Multiselect Inputs.",
7267
+ "markdownDescription": "Options that are specific to Multiselect Inputs."
6989
7268
  },
6990
7269
  "type": {
6991
7270
  "const": "multiselect",
@@ -6999,6 +7278,120 @@
6999
7278
  ],
7000
7279
  "type": "object"
7001
7280
  },
7281
+ "MultiselectInputOptions": {
7282
+ "additionalProperties": false,
7283
+ "properties": {
7284
+ "allow_create": {
7285
+ "default": false,
7286
+ "description": "Allows new text values to be created at edit time.",
7287
+ "markdownDescription": "Allows new text values to be created at edit time.",
7288
+ "type": "boolean"
7289
+ },
7290
+ "allow_empty": {
7291
+ "default": true,
7292
+ "description": "Provides an empty option alongside the options provided by values.",
7293
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7294
+ "type": "boolean"
7295
+ },
7296
+ "disable_add": {
7297
+ "default": false,
7298
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7299
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7300
+ "type": "boolean"
7301
+ },
7302
+ "disable_remove": {
7303
+ "default": false,
7304
+ "description": "Hides the context menu actions on each item for removing them.",
7305
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7306
+ "type": "boolean"
7307
+ },
7308
+ "disable_reorder": {
7309
+ "default": false,
7310
+ "description": "Hides the controls on each item for moving them.",
7311
+ "markdownDescription": "Hides the controls on each item for moving them.",
7312
+ "type": "boolean"
7313
+ },
7314
+ "empty_type": {
7315
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7316
+ "enum": [
7317
+ "null",
7318
+ "array"
7319
+ ],
7320
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7321
+ "type": "string"
7322
+ },
7323
+ "max_items": {
7324
+ "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.",
7325
+ "markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
7326
+ "type": "number"
7327
+ },
7328
+ "min_items": {
7329
+ "description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
7330
+ "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
7331
+ "type": "number"
7332
+ },
7333
+ "picker_preview": {
7334
+ "$ref": "#/definitions/Preview",
7335
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7336
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7337
+ },
7338
+ "picker_view": {
7339
+ "description": "Controls how selectable options are rendered.",
7340
+ "enum": [
7341
+ "card",
7342
+ "text",
7343
+ "gallery",
7344
+ "gallery-left"
7345
+ ],
7346
+ "markdownDescription": "Controls how selectable options are rendered.",
7347
+ "type": "string"
7348
+ },
7349
+ "preview": {
7350
+ "$ref": "#/definitions/Preview",
7351
+ "description": "Changes the way items are previewed in the CMS.",
7352
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7353
+ },
7354
+ "required": {
7355
+ "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).",
7356
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7357
+ "type": "boolean"
7358
+ },
7359
+ "unique_on": {
7360
+ "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7361
+ "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7362
+ "type": "string"
7363
+ },
7364
+ "value_key": {
7365
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
7366
+ "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.",
7367
+ "type": "string"
7368
+ },
7369
+ "values": {
7370
+ "anyOf": [
7371
+ {
7372
+ "type": "string"
7373
+ },
7374
+ {
7375
+ "$ref": "#/definitions/SelectValues"
7376
+ }
7377
+ ],
7378
+ "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).",
7379
+ "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)."
7380
+ },
7381
+ "view": {
7382
+ "description": "Controls how selected items are rendered.",
7383
+ "enum": [
7384
+ "card",
7385
+ "text",
7386
+ "gallery",
7387
+ "gallery-left"
7388
+ ],
7389
+ "markdownDescription": "Controls how selected items are rendered.",
7390
+ "type": "string"
7391
+ }
7392
+ },
7393
+ "type": "object"
7394
+ },
7002
7395
  "NumberInput": {
7003
7396
  "additionalProperties": false,
7004
7397
  "properties": {
@@ -7081,8 +7474,8 @@
7081
7474
  },
7082
7475
  "options": {
7083
7476
  "$ref": "#/definitions/NumberInputOptions",
7084
- "description": "Options that are specific to this `type` of input.",
7085
- "markdownDescription": "Options that are specific to this `type` of input."
7477
+ "description": "Options that are specific to this Number Inputs.",
7478
+ "markdownDescription": "Options that are specific to this Number Inputs."
7086
7479
  },
7087
7480
  "type": {
7088
7481
  "const": "number",
@@ -7109,15 +7502,20 @@
7109
7502
  "type": "string"
7110
7503
  },
7111
7504
  "max": {
7112
- "description": "The greatest value in the range of permitted values.",
7113
- "markdownDescription": "The greatest value in the range of permitted values.",
7505
+ "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.",
7506
+ "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.",
7114
7507
  "type": "number"
7115
7508
  },
7116
7509
  "min": {
7117
- "description": "The lowest value in the range of permitted values.",
7118
- "markdownDescription": "The lowest value in the range of permitted values.",
7510
+ "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.",
7511
+ "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.",
7119
7512
  "type": "number"
7120
7513
  },
7514
+ "required": {
7515
+ "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).",
7516
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7517
+ "type": "boolean"
7518
+ },
7121
7519
  "step": {
7122
7520
  "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`.",
7123
7521
  "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`.",
@@ -7208,8 +7606,8 @@
7208
7606
  },
7209
7607
  "options": {
7210
7608
  "$ref": "#/definitions/ObjectInputOptions",
7211
- "description": "Options that are specific to this `type` of input.",
7212
- "markdownDescription": "Options that are specific to this `type` of input."
7609
+ "description": "Options that are specific to Object Inputs.",
7610
+ "markdownDescription": "Options that are specific to Object Inputs."
7213
7611
  },
7214
7612
  "type": {
7215
7613
  "const": "object",
@@ -7334,6 +7732,11 @@
7334
7732
  "description": "Changes the way items are previewed in the CMS.",
7335
7733
  "markdownDescription": "Changes the way items are previewed in the CMS."
7336
7734
  },
7735
+ "required": {
7736
+ "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).",
7737
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7738
+ "type": "boolean"
7739
+ },
7337
7740
  "structures": {
7338
7741
  "anyOf": [
7339
7742
  {
@@ -7679,8 +8082,8 @@
7679
8082
  },
7680
8083
  "options": {
7681
8084
  "$ref": "#/definitions/RangeInputOptions",
7682
- "description": "Options that are specific to this `type` of input.",
7683
- "markdownDescription": "Options that are specific to this `type` of input."
8085
+ "description": "Options that are specific to Range Inputs.",
8086
+ "markdownDescription": "Options that are specific to Range Inputs."
7684
8087
  },
7685
8088
  "type": {
7686
8089
  "const": "range",
@@ -7708,16 +8111,21 @@
7708
8111
  },
7709
8112
  "max": {
7710
8113
  "default": 10,
7711
- "description": "The greatest value in the range of permitted values.",
7712
- "markdownDescription": "The greatest value in the range of permitted values.",
8114
+ "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.",
8115
+ "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.",
7713
8116
  "type": "number"
7714
8117
  },
7715
8118
  "min": {
7716
8119
  "default": 0,
7717
- "description": "The lowest value in the range of permitted values.",
7718
- "markdownDescription": "The lowest value in the range of permitted values.",
8120
+ "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.",
8121
+ "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.",
7719
8122
  "type": "number"
7720
8123
  },
8124
+ "required": {
8125
+ "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).",
8126
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8127
+ "type": "boolean"
8128
+ },
7721
8129
  "step": {
7722
8130
  "default": 1,
7723
8131
  "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`.",
@@ -7809,8 +8217,8 @@
7809
8217
  },
7810
8218
  "options": {
7811
8219
  "$ref": "#/definitions/RichTextInputOptions",
7812
- "description": "Options that are specific to this `type` of input.",
7813
- "markdownDescription": "Options that are specific to this `type` of input."
8220
+ "description": "Options that are specific to Rich Text Inputs.",
8221
+ "markdownDescription": "Options that are specific to Rich Text Inputs."
7814
8222
  },
7815
8223
  "type": {
7816
8224
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -7992,6 +8400,11 @@
7992
8400
  "markdownDescription": "Enables a control to create hyperlinks around selected text.",
7993
8401
  "type": "boolean"
7994
8402
  },
8403
+ "max_length": {
8404
+ "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.",
8405
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8406
+ "type": "number"
8407
+ },
7995
8408
  "mime_type": {
7996
8409
  "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.",
7997
8410
  "enum": [
@@ -8002,6 +8415,11 @@
8002
8415
  "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.",
8003
8416
  "type": "string"
8004
8417
  },
8418
+ "min_length": {
8419
+ "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.",
8420
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8421
+ "type": "number"
8422
+ },
8005
8423
  "numberedlist": {
8006
8424
  "default": true,
8007
8425
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -8019,6 +8437,60 @@
8019
8437
  "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`.",
8020
8438
  "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`."
8021
8439
  },
8440
+ "pattern": {
8441
+ "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.",
8442
+ "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.",
8443
+ "type": "string"
8444
+ },
8445
+ "pattern_flags": {
8446
+ "additionalProperties": false,
8447
+ "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.",
8448
+ "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.",
8449
+ "properties": {
8450
+ "dot_all": {
8451
+ "default": false,
8452
+ "description": "`s` - `.` matches newline characters.",
8453
+ "markdownDescription": "`s` - `.` matches newline characters.",
8454
+ "type": "boolean"
8455
+ },
8456
+ "global": {
8457
+ "default": false,
8458
+ "description": "`g` - Search globally.",
8459
+ "markdownDescription": "`g` - Search globally.",
8460
+ "type": "boolean"
8461
+ },
8462
+ "ignore_case": {
8463
+ "default": false,
8464
+ "description": "`i` - Case-insensitive.",
8465
+ "markdownDescription": "`i` - Case-insensitive.",
8466
+ "type": "boolean"
8467
+ },
8468
+ "multiline": {
8469
+ "default": false,
8470
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8471
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8472
+ "type": "boolean"
8473
+ },
8474
+ "unicode": {
8475
+ "default": false,
8476
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8477
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8478
+ "type": "boolean"
8479
+ },
8480
+ "unicode_sets": {
8481
+ "default": false,
8482
+ "description": "`v` - Extended `unicode` mode.",
8483
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8484
+ "type": "boolean"
8485
+ }
8486
+ },
8487
+ "type": "object"
8488
+ },
8489
+ "pattern_message": {
8490
+ "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.",
8491
+ "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.",
8492
+ "type": "string"
8493
+ },
8022
8494
  "prevent_resize_existing_files": {
8023
8495
  "default": false,
8024
8496
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
@@ -8042,6 +8514,11 @@
8042
8514
  "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.",
8043
8515
  "type": "boolean"
8044
8516
  },
8517
+ "required": {
8518
+ "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).",
8519
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8520
+ "type": "boolean"
8521
+ },
8045
8522
  "resize_style": {
8046
8523
  "default": "contain",
8047
8524
  "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.",
@@ -8317,93 +8794,165 @@
8317
8794
  "type": "string"
8318
8795
  },
8319
8796
  "options": {
8797
+ "$ref": "#/definitions/SelectInputOptions",
8798
+ "description": "Options that are specific to Select Inputs.",
8799
+ "markdownDescription": "Options that are specific to Select Inputs."
8800
+ },
8801
+ "type": {
8802
+ "const": "select",
8803
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8804
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8805
+ "type": "string"
8806
+ }
8807
+ },
8808
+ "required": [
8809
+ "type"
8810
+ ],
8811
+ "type": "object"
8812
+ },
8813
+ "SelectInputOptions": {
8814
+ "additionalProperties": false,
8815
+ "properties": {
8816
+ "allow_create": {
8817
+ "default": false,
8818
+ "description": "Allows new text values to be created at edit time.",
8819
+ "markdownDescription": "Allows new text values to be created at edit time.",
8820
+ "type": "boolean"
8821
+ },
8822
+ "allow_empty": {
8823
+ "default": true,
8824
+ "description": "Provides an empty option alongside the options provided by values.",
8825
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8826
+ "type": "boolean"
8827
+ },
8828
+ "empty_type": {
8829
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8830
+ "enum": [
8831
+ "null",
8832
+ "string"
8833
+ ],
8834
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8835
+ "type": "string"
8836
+ },
8837
+ "max_length": {
8838
+ "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.",
8839
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8840
+ "type": "number"
8841
+ },
8842
+ "min_length": {
8843
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8844
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8845
+ "type": "number"
8846
+ },
8847
+ "pattern": {
8848
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8849
+ "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.",
8850
+ "type": "string"
8851
+ },
8852
+ "pattern_flags": {
8320
8853
  "additionalProperties": false,
8321
- "description": "Options that are specific to this `type` of input.",
8322
- "markdownDescription": "Options that are specific to this `type` of input.",
8854
+ "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.",
8855
+ "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.",
8323
8856
  "properties": {
8324
- "allow_create": {
8857
+ "dot_all": {
8325
8858
  "default": false,
8326
- "description": "Allows new text values to be created at edit time.",
8327
- "markdownDescription": "Allows new text values to be created at edit time.",
8859
+ "description": "`s` - `.` matches newline characters.",
8860
+ "markdownDescription": "`s` - `.` matches newline characters.",
8328
8861
  "type": "boolean"
8329
8862
  },
8330
- "allow_empty": {
8331
- "default": true,
8332
- "description": "Provides an empty option alongside the options provided by values.",
8333
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8863
+ "global": {
8864
+ "default": false,
8865
+ "description": "`g` - Search globally.",
8866
+ "markdownDescription": "`g` - Search globally.",
8334
8867
  "type": "boolean"
8335
8868
  },
8336
- "empty_type": {
8337
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8338
- "enum": [
8339
- "null",
8340
- "string"
8341
- ],
8342
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8343
- "type": "string"
8344
- },
8345
- "picker_preview": {
8346
- "$ref": "#/definitions/Preview",
8347
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8348
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8349
- },
8350
- "picker_view": {
8351
- "description": "Controls how selectable options are rendered.",
8352
- "enum": [
8353
- "card",
8354
- "text",
8355
- "gallery",
8356
- "gallery-left"
8357
- ],
8358
- "markdownDescription": "Controls how selectable options are rendered.",
8359
- "type": "string"
8360
- },
8361
- "preview": {
8362
- "$ref": "#/definitions/Preview",
8363
- "description": "Changes the way items are previewed in the CMS.",
8364
- "markdownDescription": "Changes the way items are previewed in the CMS."
8869
+ "ignore_case": {
8870
+ "default": false,
8871
+ "description": "`i` - Case-insensitive.",
8872
+ "markdownDescription": "`i` - Case-insensitive.",
8873
+ "type": "boolean"
8365
8874
  },
8366
- "value_key": {
8367
- "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.",
8368
- "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.",
8369
- "type": "string"
8875
+ "multiline": {
8876
+ "default": false,
8877
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8878
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8879
+ "type": "boolean"
8370
8880
  },
8371
- "values": {
8372
- "anyOf": [
8373
- {
8374
- "type": "string"
8375
- },
8376
- {
8377
- "$ref": "#/definitions/SelectValues"
8378
- }
8379
- ],
8380
- "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).",
8381
- "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)."
8881
+ "unicode": {
8882
+ "default": false,
8883
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8884
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8885
+ "type": "boolean"
8382
8886
  },
8383
- "view": {
8384
- "description": "Controls how selected items are rendered.",
8385
- "enum": [
8386
- "card",
8387
- "text",
8388
- "gallery",
8389
- "gallery-left"
8390
- ],
8391
- "markdownDescription": "Controls how selected items are rendered.",
8392
- "type": "string"
8887
+ "unicode_sets": {
8888
+ "default": false,
8889
+ "description": "`v` - Extended `unicode` mode.",
8890
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8891
+ "type": "boolean"
8393
8892
  }
8394
8893
  },
8395
8894
  "type": "object"
8396
8895
  },
8397
- "type": {
8398
- "const": "select",
8399
- "description": "Sets an input type, which controls how this input appears and behaves.",
8400
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8896
+ "pattern_message": {
8897
+ "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.",
8898
+ "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.",
8899
+ "type": "string"
8900
+ },
8901
+ "picker_preview": {
8902
+ "$ref": "#/definitions/Preview",
8903
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8904
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8905
+ },
8906
+ "picker_view": {
8907
+ "description": "Controls how selectable options are rendered.",
8908
+ "enum": [
8909
+ "card",
8910
+ "text",
8911
+ "gallery",
8912
+ "gallery-left"
8913
+ ],
8914
+ "markdownDescription": "Controls how selectable options are rendered.",
8915
+ "type": "string"
8916
+ },
8917
+ "preview": {
8918
+ "$ref": "#/definitions/Preview",
8919
+ "description": "Changes the way items are previewed in the CMS.",
8920
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8921
+ },
8922
+ "required": {
8923
+ "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).",
8924
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8925
+ "type": "boolean"
8926
+ },
8927
+ "value_key": {
8928
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
8929
+ "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.",
8930
+ "type": "string"
8931
+ },
8932
+ "values": {
8933
+ "anyOf": [
8934
+ {
8935
+ "type": "string"
8936
+ },
8937
+ {
8938
+ "$ref": "#/definitions/SelectValues"
8939
+ }
8940
+ ],
8941
+ "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).",
8942
+ "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)."
8943
+ },
8944
+ "view": {
8945
+ "description": "Controls how selected items are rendered.",
8946
+ "enum": [
8947
+ "card",
8948
+ "text",
8949
+ "gallery",
8950
+ "gallery-left"
8951
+ ],
8952
+ "markdownDescription": "Controls how selected items are rendered.",
8401
8953
  "type": "string"
8402
8954
  }
8403
8955
  },
8404
- "required": [
8405
- "type"
8406
- ],
8407
8956
  "type": "object"
8408
8957
  },
8409
8958
  "SelectValues": {
@@ -9698,8 +10247,8 @@
9698
10247
  },
9699
10248
  "options": {
9700
10249
  "$ref": "#/definitions/TextInputOptions",
9701
- "description": "Options that are specific to this `type` of input.",
9702
- "markdownDescription": "Options that are specific to this `type` of input."
10250
+ "description": "Options that are specific to Text Inputs.",
10251
+ "markdownDescription": "Options that are specific to Text Inputs."
9703
10252
  },
9704
10253
  "type": {
9705
10254
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -9739,10 +10288,79 @@
9739
10288
  "description": "Icon shown beside the input.",
9740
10289
  "markdownDescription": "Icon shown beside the input."
9741
10290
  },
10291
+ "max_length": {
10292
+ "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.",
10293
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10294
+ "type": "number"
10295
+ },
10296
+ "min_length": {
10297
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10298
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10299
+ "type": "number"
10300
+ },
10301
+ "pattern": {
10302
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10303
+ "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.",
10304
+ "type": "string"
10305
+ },
10306
+ "pattern_flags": {
10307
+ "additionalProperties": false,
10308
+ "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.",
10309
+ "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.",
10310
+ "properties": {
10311
+ "dot_all": {
10312
+ "default": false,
10313
+ "description": "`s` - `.` matches newline characters.",
10314
+ "markdownDescription": "`s` - `.` matches newline characters.",
10315
+ "type": "boolean"
10316
+ },
10317
+ "global": {
10318
+ "default": false,
10319
+ "description": "`g` - Search globally.",
10320
+ "markdownDescription": "`g` - Search globally.",
10321
+ "type": "boolean"
10322
+ },
10323
+ "ignore_case": {
10324
+ "default": false,
10325
+ "description": "`i` - Case-insensitive.",
10326
+ "markdownDescription": "`i` - Case-insensitive.",
10327
+ "type": "boolean"
10328
+ },
10329
+ "multiline": {
10330
+ "default": false,
10331
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10332
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10333
+ "type": "boolean"
10334
+ },
10335
+ "unicode": {
10336
+ "default": false,
10337
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10338
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10339
+ "type": "boolean"
10340
+ },
10341
+ "unicode_sets": {
10342
+ "default": false,
10343
+ "description": "`v` - Extended `unicode` mode.",
10344
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10345
+ "type": "boolean"
10346
+ }
10347
+ },
10348
+ "type": "object"
10349
+ },
10350
+ "pattern_message": {
10351
+ "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.",
10352
+ "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.",
10353
+ "type": "string"
10354
+ },
9742
10355
  "placeholder": {
9743
10356
  "description": "Text shown when this input has no value.",
9744
10357
  "markdownDescription": "Text shown when this input has no value.",
9745
10358
  "type": "string"
10359
+ },
10360
+ "required": {
10361
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
10362
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
10363
+ "type": "boolean"
9746
10364
  }
9747
10365
  },
9748
10366
  "type": "object"
@@ -9829,8 +10447,8 @@
9829
10447
  },
9830
10448
  "options": {
9831
10449
  "$ref": "#/definitions/TextareaInputOptions",
9832
- "description": "Options that are specific to this `type` of input.",
9833
- "markdownDescription": "Options that are specific to this `type` of input."
10450
+ "description": "Options that are specific to Textarea Inputs.",
10451
+ "markdownDescription": "Options that are specific to Textarea Inputs."
9834
10452
  },
9835
10453
  "type": {
9836
10454
  "const": "textarea",
@@ -9861,11 +10479,80 @@
9861
10479
  "description": "Icon shown beside the input.",
9862
10480
  "markdownDescription": "Icon shown beside the input."
9863
10481
  },
10482
+ "max_length": {
10483
+ "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.",
10484
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10485
+ "type": "number"
10486
+ },
10487
+ "min_length": {
10488
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10489
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10490
+ "type": "number"
10491
+ },
10492
+ "pattern": {
10493
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
10494
+ "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.",
10495
+ "type": "string"
10496
+ },
10497
+ "pattern_flags": {
10498
+ "additionalProperties": false,
10499
+ "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.",
10500
+ "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.",
10501
+ "properties": {
10502
+ "dot_all": {
10503
+ "default": false,
10504
+ "description": "`s` - `.` matches newline characters.",
10505
+ "markdownDescription": "`s` - `.` matches newline characters.",
10506
+ "type": "boolean"
10507
+ },
10508
+ "global": {
10509
+ "default": false,
10510
+ "description": "`g` - Search globally.",
10511
+ "markdownDescription": "`g` - Search globally.",
10512
+ "type": "boolean"
10513
+ },
10514
+ "ignore_case": {
10515
+ "default": false,
10516
+ "description": "`i` - Case-insensitive.",
10517
+ "markdownDescription": "`i` - Case-insensitive.",
10518
+ "type": "boolean"
10519
+ },
10520
+ "multiline": {
10521
+ "default": false,
10522
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10523
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10524
+ "type": "boolean"
10525
+ },
10526
+ "unicode": {
10527
+ "default": false,
10528
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10529
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10530
+ "type": "boolean"
10531
+ },
10532
+ "unicode_sets": {
10533
+ "default": false,
10534
+ "description": "`v` - Extended `unicode` mode.",
10535
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10536
+ "type": "boolean"
10537
+ }
10538
+ },
10539
+ "type": "object"
10540
+ },
10541
+ "pattern_message": {
10542
+ "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.",
10543
+ "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.",
10544
+ "type": "string"
10545
+ },
9864
10546
  "placeholder": {
9865
10547
  "description": "Text shown when this input has no value.",
9866
10548
  "markdownDescription": "Text shown when this input has no value.",
9867
10549
  "type": "string"
9868
10550
  },
10551
+ "required": {
10552
+ "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).",
10553
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
10554
+ "type": "boolean"
10555
+ },
9869
10556
  "show_count": {
9870
10557
  "default": false,
9871
10558
  "description": "Shows a character counter below the input if enabled.",
@@ -9999,9 +10686,26 @@
9999
10686
  "type": "string"
10000
10687
  },
10001
10688
  "options": {
10002
- "$ref": "#/definitions/WithEmptyTypeText",
10689
+ "additionalProperties": false,
10003
10690
  "description": "Options that are specific to Time inputs.",
10004
- "markdownDescription": "Options that are specific to Time inputs."
10691
+ "markdownDescription": "Options that are specific to Time inputs.",
10692
+ "properties": {
10693
+ "empty_type": {
10694
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10695
+ "enum": [
10696
+ "null",
10697
+ "string"
10698
+ ],
10699
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10700
+ "type": "string"
10701
+ },
10702
+ "required": {
10703
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
10704
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
10705
+ "type": "boolean"
10706
+ }
10707
+ },
10708
+ "type": "object"
10005
10709
  },
10006
10710
  "type": {
10007
10711
  "const": "time",
@@ -10887,6 +11591,11 @@
10887
11591
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
10888
11592
  "type": "boolean"
10889
11593
  },
11594
+ "max_length": {
11595
+ "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
11596
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
11597
+ "type": "number"
11598
+ },
10890
11599
  "mime_type": {
10891
11600
  "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.",
10892
11601
  "enum": [
@@ -10897,17 +11606,81 @@
10897
11606
  "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.",
10898
11607
  "type": "string"
10899
11608
  },
11609
+ "min_length": {
11610
+ "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.",
11611
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
11612
+ "type": "number"
11613
+ },
10900
11614
  "paths": {
10901
11615
  "$ref": "#/definitions/Paths",
10902
11616
  "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`.",
10903
11617
  "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`."
10904
11618
  },
11619
+ "pattern": {
11620
+ "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.",
11621
+ "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.",
11622
+ "type": "string"
11623
+ },
11624
+ "pattern_flags": {
11625
+ "additionalProperties": false,
11626
+ "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.",
11627
+ "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.",
11628
+ "properties": {
11629
+ "dot_all": {
11630
+ "default": false,
11631
+ "description": "`s` - `.` matches newline characters.",
11632
+ "markdownDescription": "`s` - `.` matches newline characters.",
11633
+ "type": "boolean"
11634
+ },
11635
+ "global": {
11636
+ "default": false,
11637
+ "description": "`g` - Search globally.",
11638
+ "markdownDescription": "`g` - Search globally.",
11639
+ "type": "boolean"
11640
+ },
11641
+ "ignore_case": {
11642
+ "default": false,
11643
+ "description": "`i` - Case-insensitive.",
11644
+ "markdownDescription": "`i` - Case-insensitive.",
11645
+ "type": "boolean"
11646
+ },
11647
+ "multiline": {
11648
+ "default": false,
11649
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11650
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11651
+ "type": "boolean"
11652
+ },
11653
+ "unicode": {
11654
+ "default": false,
11655
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
11656
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
11657
+ "type": "boolean"
11658
+ },
11659
+ "unicode_sets": {
11660
+ "default": false,
11661
+ "description": "`v` - Extended `unicode` mode.",
11662
+ "markdownDescription": "`v` - Extended `unicode` mode.",
11663
+ "type": "boolean"
11664
+ }
11665
+ },
11666
+ "type": "object"
11667
+ },
11668
+ "pattern_message": {
11669
+ "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.",
11670
+ "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.",
11671
+ "type": "string"
11672
+ },
10905
11673
  "prevent_resize_existing_files": {
10906
11674
  "default": false,
10907
11675
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
10908
11676
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
10909
11677
  "type": "boolean"
10910
11678
  },
11679
+ "required": {
11680
+ "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).",
11681
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
11682
+ "type": "boolean"
11683
+ },
10911
11684
  "resize_style": {
10912
11685
  "default": "contain",
10913
11686
  "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.",
@@ -10952,21 +11725,6 @@
10952
11725
  },
10953
11726
  "type": "object"
10954
11727
  },
10955
- "WithEmptyTypeText": {
10956
- "additionalProperties": false,
10957
- "properties": {
10958
- "empty_type": {
10959
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10960
- "enum": [
10961
- "null",
10962
- "string"
10963
- ],
10964
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10965
- "type": "string"
10966
- }
10967
- },
10968
- "type": "object"
10969
- },
10970
11728
  "WithPaths": {
10971
11729
  "additionalProperties": false,
10972
11730
  "properties": {