@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"
@@ -741,87 +779,159 @@
741
779
  "type": "string"
742
780
  },
743
781
  "options": {
782
+ "$ref": "#/definitions/ChoiceInputOptions",
783
+ "description": "Options that are specific to Choice Inputs.",
784
+ "markdownDescription": "Options that are specific to Choice Inputs."
785
+ },
786
+ "type": {
787
+ "const": "choice",
788
+ "description": "Sets an input type, which controls how this input appears and behaves.",
789
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
790
+ "type": "string"
791
+ }
792
+ },
793
+ "required": [
794
+ "type"
795
+ ],
796
+ "type": "object"
797
+ },
798
+ "ChoiceInputOptions": {
799
+ "additionalProperties": false,
800
+ "properties": {
801
+ "allow_empty": {
802
+ "default": true,
803
+ "description": "Provides an empty option alongside the options provided by values.",
804
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
805
+ "type": "boolean"
806
+ },
807
+ "empty_type": {
808
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
809
+ "enum": [
810
+ "null",
811
+ "string"
812
+ ],
813
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
814
+ "type": "string"
815
+ },
816
+ "max_length": {
817
+ "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.",
818
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
819
+ "type": "number"
820
+ },
821
+ "min_length": {
822
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
823
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
824
+ "type": "number"
825
+ },
826
+ "pattern": {
827
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
828
+ "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.",
829
+ "type": "string"
830
+ },
831
+ "pattern_flags": {
744
832
  "additionalProperties": false,
745
- "description": "Options that are specific to this `type` of input.",
746
- "markdownDescription": "Options that are specific to this `type` of input.",
833
+ "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.",
834
+ "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.",
747
835
  "properties": {
748
- "allow_empty": {
749
- "default": true,
750
- "description": "Provides an empty option alongside the options provided by values.",
751
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
836
+ "dot_all": {
837
+ "default": false,
838
+ "description": "`s` - `.` matches newline characters.",
839
+ "markdownDescription": "`s` - `.` matches newline characters.",
752
840
  "type": "boolean"
753
841
  },
754
- "empty_type": {
755
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
756
- "enum": [
757
- "null",
758
- "string"
759
- ],
760
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
761
- "type": "string"
762
- },
763
- "picker_preview": {
764
- "$ref": "#/definitions/Preview",
765
- "description": "Changes the way items are previewed in the CMS while being chosen.",
766
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
767
- },
768
- "picker_view": {
769
- "description": "Controls how selectable options are rendered.",
770
- "enum": [
771
- "card",
772
- "text",
773
- "gallery",
774
- "gallery-left"
775
- ],
776
- "markdownDescription": "Controls how selectable options are rendered.",
777
- "type": "string"
842
+ "global": {
843
+ "default": false,
844
+ "description": "`g` - Search globally.",
845
+ "markdownDescription": "`g` - Search globally.",
846
+ "type": "boolean"
778
847
  },
779
- "preview": {
780
- "$ref": "#/definitions/Preview",
781
- "description": "Changes the way items are previewed in the CMS.",
782
- "markdownDescription": "Changes the way items are previewed in the CMS."
848
+ "ignore_case": {
849
+ "default": false,
850
+ "description": "`i` - Case-insensitive.",
851
+ "markdownDescription": "`i` - Case-insensitive.",
852
+ "type": "boolean"
783
853
  },
784
- "value_key": {
785
- "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.",
786
- "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.",
787
- "type": "string"
854
+ "multiline": {
855
+ "default": false,
856
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
857
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
858
+ "type": "boolean"
788
859
  },
789
- "values": {
790
- "anyOf": [
791
- {
792
- "type": "string"
793
- },
794
- {
795
- "$ref": "#/definitions/SelectValues"
796
- }
797
- ],
798
- "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).",
799
- "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)."
860
+ "unicode": {
861
+ "default": false,
862
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
863
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
864
+ "type": "boolean"
800
865
  },
801
- "view": {
802
- "description": "Controls how selected items are rendered.",
803
- "enum": [
804
- "card",
805
- "text",
806
- "gallery",
807
- "gallery-left"
808
- ],
809
- "markdownDescription": "Controls how selected items are rendered.",
810
- "type": "string"
866
+ "unicode_sets": {
867
+ "default": false,
868
+ "description": "`v` - Extended `unicode` mode.",
869
+ "markdownDescription": "`v` - Extended `unicode` mode.",
870
+ "type": "boolean"
811
871
  }
812
872
  },
813
873
  "type": "object"
814
874
  },
815
- "type": {
816
- "const": "choice",
817
- "description": "Sets an input type, which controls how this input appears and behaves.",
818
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
875
+ "pattern_message": {
876
+ "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.",
877
+ "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.",
878
+ "type": "string"
879
+ },
880
+ "picker_preview": {
881
+ "$ref": "#/definitions/Preview",
882
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
883
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
884
+ },
885
+ "picker_view": {
886
+ "description": "Controls how selectable options are rendered.",
887
+ "enum": [
888
+ "card",
889
+ "text",
890
+ "gallery",
891
+ "gallery-left"
892
+ ],
893
+ "markdownDescription": "Controls how selectable options are rendered.",
894
+ "type": "string"
895
+ },
896
+ "preview": {
897
+ "$ref": "#/definitions/Preview",
898
+ "description": "Changes the way items are previewed in the CMS.",
899
+ "markdownDescription": "Changes the way items are previewed in the CMS."
900
+ },
901
+ "required": {
902
+ "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).",
903
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
904
+ "type": "boolean"
905
+ },
906
+ "value_key": {
907
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
908
+ "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.",
909
+ "type": "string"
910
+ },
911
+ "values": {
912
+ "anyOf": [
913
+ {
914
+ "type": "string"
915
+ },
916
+ {
917
+ "$ref": "#/definitions/SelectValues"
918
+ }
919
+ ],
920
+ "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).",
921
+ "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
+ },
923
+ "view": {
924
+ "description": "Controls how selected items are rendered.",
925
+ "enum": [
926
+ "card",
927
+ "text",
928
+ "gallery",
929
+ "gallery-left"
930
+ ],
931
+ "markdownDescription": "Controls how selected items are rendered.",
819
932
  "type": "string"
820
933
  }
821
934
  },
822
- "required": [
823
- "type"
824
- ],
825
935
  "type": "object"
826
936
  },
827
937
  "CodeInput": {
@@ -906,8 +1016,8 @@
906
1016
  },
907
1017
  "options": {
908
1018
  "$ref": "#/definitions/CodeInputOptions",
909
- "description": "Options that are specific to this `type` of input.",
910
- "markdownDescription": "Options that are specific to this `type` of input."
1019
+ "description": "Options that are specific to Code Inputs.",
1020
+ "markdownDescription": "Options that are specific to Code Inputs."
911
1021
  },
912
1022
  "type": {
913
1023
  "const": "code",
@@ -933,18 +1043,87 @@
933
1043
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
934
1044
  "type": "string"
935
1045
  },
1046
+ "max_length": {
1047
+ "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.",
1048
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1049
+ "type": "number"
1050
+ },
936
1051
  "max_visible_lines": {
937
1052
  "default": 30,
938
1053
  "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.",
939
1054
  "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.",
940
1055
  "type": "number"
941
1056
  },
1057
+ "min_length": {
1058
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1059
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1060
+ "type": "number"
1061
+ },
942
1062
  "min_visible_lines": {
943
1063
  "default": 10,
944
1064
  "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`.",
945
1065
  "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`.",
946
1066
  "type": "number"
947
1067
  },
1068
+ "pattern": {
1069
+ "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.",
1070
+ "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.",
1071
+ "type": "string"
1072
+ },
1073
+ "pattern_flags": {
1074
+ "additionalProperties": false,
1075
+ "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.",
1076
+ "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.",
1077
+ "properties": {
1078
+ "dot_all": {
1079
+ "default": false,
1080
+ "description": "`s` - `.` matches newline characters.",
1081
+ "markdownDescription": "`s` - `.` matches newline characters.",
1082
+ "type": "boolean"
1083
+ },
1084
+ "global": {
1085
+ "default": false,
1086
+ "description": "`g` - Search globally.",
1087
+ "markdownDescription": "`g` - Search globally.",
1088
+ "type": "boolean"
1089
+ },
1090
+ "ignore_case": {
1091
+ "default": false,
1092
+ "description": "`i` - Case-insensitive.",
1093
+ "markdownDescription": "`i` - Case-insensitive.",
1094
+ "type": "boolean"
1095
+ },
1096
+ "multiline": {
1097
+ "default": false,
1098
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1099
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1100
+ "type": "boolean"
1101
+ },
1102
+ "unicode": {
1103
+ "default": false,
1104
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1105
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1106
+ "type": "boolean"
1107
+ },
1108
+ "unicode_sets": {
1109
+ "default": false,
1110
+ "description": "`v` - Extended `unicode` mode.",
1111
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1112
+ "type": "boolean"
1113
+ }
1114
+ },
1115
+ "type": "object"
1116
+ },
1117
+ "pattern_message": {
1118
+ "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.",
1119
+ "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.",
1120
+ "type": "string"
1121
+ },
1122
+ "required": {
1123
+ "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).",
1124
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1125
+ "type": "boolean"
1126
+ },
948
1127
  "show_gutter": {
949
1128
  "default": true,
950
1129
  "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",
@@ -1263,8 +1442,8 @@
1263
1442
  },
1264
1443
  "options": {
1265
1444
  "$ref": "#/definitions/ColorInputOptions",
1266
- "description": "Options that are specific to this `type` of input.",
1267
- "markdownDescription": "Options that are specific to this `type` of input."
1445
+ "description": "Options that are specific to Color Inputs.",
1446
+ "markdownDescription": "Options that are specific to Color Inputs."
1268
1447
  },
1269
1448
  "type": {
1270
1449
  "const": "color",
@@ -1305,6 +1484,75 @@
1305
1484
  ],
1306
1485
  "markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
1307
1486
  "type": "string"
1487
+ },
1488
+ "max_length": {
1489
+ "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.",
1490
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1491
+ "type": "number"
1492
+ },
1493
+ "min_length": {
1494
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1495
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1496
+ "type": "number"
1497
+ },
1498
+ "pattern": {
1499
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
1500
+ "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.",
1501
+ "type": "string"
1502
+ },
1503
+ "pattern_flags": {
1504
+ "additionalProperties": false,
1505
+ "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.",
1506
+ "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.",
1507
+ "properties": {
1508
+ "dot_all": {
1509
+ "default": false,
1510
+ "description": "`s` - `.` matches newline characters.",
1511
+ "markdownDescription": "`s` - `.` matches newline characters.",
1512
+ "type": "boolean"
1513
+ },
1514
+ "global": {
1515
+ "default": false,
1516
+ "description": "`g` - Search globally.",
1517
+ "markdownDescription": "`g` - Search globally.",
1518
+ "type": "boolean"
1519
+ },
1520
+ "ignore_case": {
1521
+ "default": false,
1522
+ "description": "`i` - Case-insensitive.",
1523
+ "markdownDescription": "`i` - Case-insensitive.",
1524
+ "type": "boolean"
1525
+ },
1526
+ "multiline": {
1527
+ "default": false,
1528
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1529
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
1530
+ "type": "boolean"
1531
+ },
1532
+ "unicode": {
1533
+ "default": false,
1534
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
1535
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
1536
+ "type": "boolean"
1537
+ },
1538
+ "unicode_sets": {
1539
+ "default": false,
1540
+ "description": "`v` - Extended `unicode` mode.",
1541
+ "markdownDescription": "`v` - Extended `unicode` mode.",
1542
+ "type": "boolean"
1543
+ }
1544
+ },
1545
+ "type": "object"
1546
+ },
1547
+ "pattern_message": {
1548
+ "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.",
1549
+ "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.",
1550
+ "type": "string"
1551
+ },
1552
+ "required": {
1553
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1554
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
1555
+ "type": "boolean"
1308
1556
  }
1309
1557
  },
1310
1558
  "type": "object"
@@ -1525,6 +1773,18 @@
1525
1773
  "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
1526
1774
  "type": "string"
1527
1775
  },
1776
+ "end_before": {
1777
+ "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.",
1778
+ "format": "date-time",
1779
+ "markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
1780
+ "type": "string"
1781
+ },
1782
+ "start_from": {
1783
+ "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.",
1784
+ "format": "date-time",
1785
+ "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.",
1786
+ "type": "string"
1787
+ },
1528
1788
  "timezone": {
1529
1789
  "$ref": "#/definitions/Timezone",
1530
1790
  "default": "Etc/UTC",
@@ -1846,6 +2106,11 @@
1846
2106
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
1847
2107
  "type": "boolean"
1848
2108
  },
2109
+ "max_length": {
2110
+ "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.",
2111
+ "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.",
2112
+ "type": "number"
2113
+ },
1849
2114
  "mime_type": {
1850
2115
  "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.",
1851
2116
  "enum": [
@@ -1856,17 +2121,81 @@
1856
2121
  "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.",
1857
2122
  "type": "string"
1858
2123
  },
2124
+ "min_length": {
2125
+ "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.",
2126
+ "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.",
2127
+ "type": "number"
2128
+ },
1859
2129
  "paths": {
1860
2130
  "$ref": "#/definitions/Paths",
1861
2131
  "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`.",
1862
2132
  "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`."
1863
2133
  },
2134
+ "pattern": {
2135
+ "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.",
2136
+ "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.",
2137
+ "type": "string"
2138
+ },
2139
+ "pattern_flags": {
2140
+ "additionalProperties": false,
2141
+ "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.",
2142
+ "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.",
2143
+ "properties": {
2144
+ "dot_all": {
2145
+ "default": false,
2146
+ "description": "`s` - `.` matches newline characters.",
2147
+ "markdownDescription": "`s` - `.` matches newline characters.",
2148
+ "type": "boolean"
2149
+ },
2150
+ "global": {
2151
+ "default": false,
2152
+ "description": "`g` - Search globally.",
2153
+ "markdownDescription": "`g` - Search globally.",
2154
+ "type": "boolean"
2155
+ },
2156
+ "ignore_case": {
2157
+ "default": false,
2158
+ "description": "`i` - Case-insensitive.",
2159
+ "markdownDescription": "`i` - Case-insensitive.",
2160
+ "type": "boolean"
2161
+ },
2162
+ "multiline": {
2163
+ "default": false,
2164
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2165
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
2166
+ "type": "boolean"
2167
+ },
2168
+ "unicode": {
2169
+ "default": false,
2170
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
2171
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
2172
+ "type": "boolean"
2173
+ },
2174
+ "unicode_sets": {
2175
+ "default": false,
2176
+ "description": "`v` - Extended `unicode` mode.",
2177
+ "markdownDescription": "`v` - Extended `unicode` mode.",
2178
+ "type": "boolean"
2179
+ }
2180
+ },
2181
+ "type": "object"
2182
+ },
2183
+ "pattern_message": {
2184
+ "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.",
2185
+ "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.",
2186
+ "type": "string"
2187
+ },
1864
2188
  "prevent_resize_existing_files": {
1865
2189
  "default": false,
1866
2190
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
1867
2191
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
1868
2192
  "type": "boolean"
1869
2193
  },
2194
+ "required": {
2195
+ "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).",
2196
+ "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).",
2197
+ "type": "boolean"
2198
+ },
1870
2199
  "resize_style": {
1871
2200
  "default": "contain",
1872
2201
  "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.",
@@ -6648,76 +6977,9 @@
6648
6977
  "type": "string"
6649
6978
  },
6650
6979
  "options": {
6651
- "additionalProperties": false,
6652
- "description": "Options that are specific to this `type` of input.",
6653
- "markdownDescription": "Options that are specific to this `type` of input.",
6654
- "properties": {
6655
- "allow_empty": {
6656
- "default": true,
6657
- "description": "Provides an empty option alongside the options provided by values.",
6658
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6659
- "type": "boolean"
6660
- },
6661
- "empty_type": {
6662
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6663
- "enum": [
6664
- "null",
6665
- "array"
6666
- ],
6667
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6668
- "type": "string"
6669
- },
6670
- "picker_preview": {
6671
- "$ref": "#/definitions/Preview",
6672
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6673
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6674
- },
6675
- "picker_view": {
6676
- "description": "Controls how selectable options are rendered.",
6677
- "enum": [
6678
- "card",
6679
- "text",
6680
- "gallery",
6681
- "gallery-left"
6682
- ],
6683
- "markdownDescription": "Controls how selectable options are rendered.",
6684
- "type": "string"
6685
- },
6686
- "preview": {
6687
- "$ref": "#/definitions/Preview",
6688
- "description": "Changes the way items are previewed in the CMS.",
6689
- "markdownDescription": "Changes the way items are previewed in the CMS."
6690
- },
6691
- "value_key": {
6692
- "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.",
6693
- "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.",
6694
- "type": "string"
6695
- },
6696
- "values": {
6697
- "anyOf": [
6698
- {
6699
- "type": "string"
6700
- },
6701
- {
6702
- "$ref": "#/definitions/SelectValues"
6703
- }
6704
- ],
6705
- "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).",
6706
- "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)."
6707
- },
6708
- "view": {
6709
- "description": "Controls how selected items are rendered.",
6710
- "enum": [
6711
- "card",
6712
- "text",
6713
- "gallery",
6714
- "gallery-left"
6715
- ],
6716
- "markdownDescription": "Controls how selected items are rendered.",
6717
- "type": "string"
6718
- }
6719
- },
6720
- "type": "object"
6980
+ "$ref": "#/definitions/MultichoiceInputOptions",
6981
+ "description": "Options that are specific to Multichoice Inputs.",
6982
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
6721
6983
  },
6722
6984
  "type": {
6723
6985
  "const": "multichoice",
@@ -6731,6 +6993,96 @@
6731
6993
  ],
6732
6994
  "type": "object"
6733
6995
  },
6996
+ "MultichoiceInputOptions": {
6997
+ "additionalProperties": false,
6998
+ "properties": {
6999
+ "allow_empty": {
7000
+ "default": true,
7001
+ "description": "Provides an empty option alongside the options provided by values.",
7002
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7003
+ "type": "boolean"
7004
+ },
7005
+ "empty_type": {
7006
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7007
+ "enum": [
7008
+ "null",
7009
+ "array"
7010
+ ],
7011
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7012
+ "type": "string"
7013
+ },
7014
+ "max_items": {
7015
+ "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.",
7016
+ "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.",
7017
+ "type": "number"
7018
+ },
7019
+ "min_items": {
7020
+ "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.",
7021
+ "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.",
7022
+ "type": "number"
7023
+ },
7024
+ "picker_preview": {
7025
+ "$ref": "#/definitions/Preview",
7026
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7027
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7028
+ },
7029
+ "picker_view": {
7030
+ "description": "Controls how selectable options are rendered.",
7031
+ "enum": [
7032
+ "card",
7033
+ "text",
7034
+ "gallery",
7035
+ "gallery-left"
7036
+ ],
7037
+ "markdownDescription": "Controls how selectable options are rendered.",
7038
+ "type": "string"
7039
+ },
7040
+ "preview": {
7041
+ "$ref": "#/definitions/Preview",
7042
+ "description": "Changes the way items are previewed in the CMS.",
7043
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7044
+ },
7045
+ "required": {
7046
+ "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).",
7047
+ "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).",
7048
+ "type": "boolean"
7049
+ },
7050
+ "unique_on": {
7051
+ "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.",
7052
+ "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.",
7053
+ "type": "string"
7054
+ },
7055
+ "value_key": {
7056
+ "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.",
7057
+ "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.",
7058
+ "type": "string"
7059
+ },
7060
+ "values": {
7061
+ "anyOf": [
7062
+ {
7063
+ "type": "string"
7064
+ },
7065
+ {
7066
+ "$ref": "#/definitions/SelectValues"
7067
+ }
7068
+ ],
7069
+ "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).",
7070
+ "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)."
7071
+ },
7072
+ "view": {
7073
+ "description": "Controls how selected items are rendered.",
7074
+ "enum": [
7075
+ "card",
7076
+ "text",
7077
+ "gallery",
7078
+ "gallery-left"
7079
+ ],
7080
+ "markdownDescription": "Controls how selected items are rendered.",
7081
+ "type": "string"
7082
+ }
7083
+ },
7084
+ "type": "object"
7085
+ },
6734
7086
  "MultiselectInput": {
6735
7087
  "additionalProperties": false,
6736
7088
  "properties": {
@@ -6812,82 +7164,9 @@
6812
7164
  "type": "string"
6813
7165
  },
6814
7166
  "options": {
6815
- "additionalProperties": false,
6816
- "description": "Options that are specific to this `type` of input.",
6817
- "markdownDescription": "Options that are specific to this `type` of input.",
6818
- "properties": {
6819
- "allow_create": {
6820
- "default": false,
6821
- "description": "Allows new text values to be created at edit time.",
6822
- "markdownDescription": "Allows new text values to be created at edit time.",
6823
- "type": "boolean"
6824
- },
6825
- "allow_empty": {
6826
- "default": true,
6827
- "description": "Provides an empty option alongside the options provided by values.",
6828
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6829
- "type": "boolean"
6830
- },
6831
- "empty_type": {
6832
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6833
- "enum": [
6834
- "null",
6835
- "array"
6836
- ],
6837
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6838
- "type": "string"
6839
- },
6840
- "picker_preview": {
6841
- "$ref": "#/definitions/Preview",
6842
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6843
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6844
- },
6845
- "picker_view": {
6846
- "description": "Controls how selectable options are rendered.",
6847
- "enum": [
6848
- "card",
6849
- "text",
6850
- "gallery",
6851
- "gallery-left"
6852
- ],
6853
- "markdownDescription": "Controls how selectable options are rendered.",
6854
- "type": "string"
6855
- },
6856
- "preview": {
6857
- "$ref": "#/definitions/Preview",
6858
- "description": "Changes the way items are previewed in the CMS.",
6859
- "markdownDescription": "Changes the way items are previewed in the CMS."
6860
- },
6861
- "value_key": {
6862
- "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.",
6863
- "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.",
6864
- "type": "string"
6865
- },
6866
- "values": {
6867
- "anyOf": [
6868
- {
6869
- "type": "string"
6870
- },
6871
- {
6872
- "$ref": "#/definitions/SelectValues"
6873
- }
6874
- ],
6875
- "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).",
6876
- "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)."
6877
- },
6878
- "view": {
6879
- "description": "Controls how selected items are rendered.",
6880
- "enum": [
6881
- "card",
6882
- "text",
6883
- "gallery",
6884
- "gallery-left"
6885
- ],
6886
- "markdownDescription": "Controls how selected items are rendered.",
6887
- "type": "string"
6888
- }
6889
- },
6890
- "type": "object"
7167
+ "$ref": "#/definitions/MultiselectInputOptions",
7168
+ "description": "Options that are specific to Multiselect Inputs.",
7169
+ "markdownDescription": "Options that are specific to Multiselect Inputs."
6891
7170
  },
6892
7171
  "type": {
6893
7172
  "const": "multiselect",
@@ -6901,6 +7180,120 @@
6901
7180
  ],
6902
7181
  "type": "object"
6903
7182
  },
7183
+ "MultiselectInputOptions": {
7184
+ "additionalProperties": false,
7185
+ "properties": {
7186
+ "allow_create": {
7187
+ "default": false,
7188
+ "description": "Allows new text values to be created at edit time.",
7189
+ "markdownDescription": "Allows new text values to be created at edit time.",
7190
+ "type": "boolean"
7191
+ },
7192
+ "allow_empty": {
7193
+ "default": true,
7194
+ "description": "Provides an empty option alongside the options provided by values.",
7195
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7196
+ "type": "boolean"
7197
+ },
7198
+ "disable_add": {
7199
+ "default": false,
7200
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7201
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7202
+ "type": "boolean"
7203
+ },
7204
+ "disable_remove": {
7205
+ "default": false,
7206
+ "description": "Hides the context menu actions on each item for removing them.",
7207
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7208
+ "type": "boolean"
7209
+ },
7210
+ "disable_reorder": {
7211
+ "default": false,
7212
+ "description": "Hides the controls on each item for moving them.",
7213
+ "markdownDescription": "Hides the controls on each item for moving them.",
7214
+ "type": "boolean"
7215
+ },
7216
+ "empty_type": {
7217
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7218
+ "enum": [
7219
+ "null",
7220
+ "array"
7221
+ ],
7222
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7223
+ "type": "string"
7224
+ },
7225
+ "max_items": {
7226
+ "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.",
7227
+ "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.",
7228
+ "type": "number"
7229
+ },
7230
+ "min_items": {
7231
+ "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.",
7232
+ "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.",
7233
+ "type": "number"
7234
+ },
7235
+ "picker_preview": {
7236
+ "$ref": "#/definitions/Preview",
7237
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7238
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7239
+ },
7240
+ "picker_view": {
7241
+ "description": "Controls how selectable options are rendered.",
7242
+ "enum": [
7243
+ "card",
7244
+ "text",
7245
+ "gallery",
7246
+ "gallery-left"
7247
+ ],
7248
+ "markdownDescription": "Controls how selectable options are rendered.",
7249
+ "type": "string"
7250
+ },
7251
+ "preview": {
7252
+ "$ref": "#/definitions/Preview",
7253
+ "description": "Changes the way items are previewed in the CMS.",
7254
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7255
+ },
7256
+ "required": {
7257
+ "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).",
7258
+ "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).",
7259
+ "type": "boolean"
7260
+ },
7261
+ "unique_on": {
7262
+ "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.",
7263
+ "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.",
7264
+ "type": "string"
7265
+ },
7266
+ "value_key": {
7267
+ "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.",
7268
+ "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.",
7269
+ "type": "string"
7270
+ },
7271
+ "values": {
7272
+ "anyOf": [
7273
+ {
7274
+ "type": "string"
7275
+ },
7276
+ {
7277
+ "$ref": "#/definitions/SelectValues"
7278
+ }
7279
+ ],
7280
+ "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).",
7281
+ "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)."
7282
+ },
7283
+ "view": {
7284
+ "description": "Controls how selected items are rendered.",
7285
+ "enum": [
7286
+ "card",
7287
+ "text",
7288
+ "gallery",
7289
+ "gallery-left"
7290
+ ],
7291
+ "markdownDescription": "Controls how selected items are rendered.",
7292
+ "type": "string"
7293
+ }
7294
+ },
7295
+ "type": "object"
7296
+ },
6904
7297
  "NumberInput": {
6905
7298
  "additionalProperties": false,
6906
7299
  "properties": {
@@ -6983,8 +7376,8 @@
6983
7376
  },
6984
7377
  "options": {
6985
7378
  "$ref": "#/definitions/NumberInputOptions",
6986
- "description": "Options that are specific to this `type` of input.",
6987
- "markdownDescription": "Options that are specific to this `type` of input."
7379
+ "description": "Options that are specific to this Number Inputs.",
7380
+ "markdownDescription": "Options that are specific to this Number Inputs."
6988
7381
  },
6989
7382
  "type": {
6990
7383
  "const": "number",
@@ -7011,15 +7404,20 @@
7011
7404
  "type": "string"
7012
7405
  },
7013
7406
  "max": {
7014
- "description": "The greatest value in the range of permitted values.",
7015
- "markdownDescription": "The greatest value in the range of permitted values.",
7407
+ "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.",
7408
+ "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.",
7016
7409
  "type": "number"
7017
7410
  },
7018
7411
  "min": {
7019
- "description": "The lowest value in the range of permitted values.",
7020
- "markdownDescription": "The lowest value in the range of permitted values.",
7412
+ "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.",
7413
+ "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.",
7021
7414
  "type": "number"
7022
7415
  },
7416
+ "required": {
7417
+ "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).",
7418
+ "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).",
7419
+ "type": "boolean"
7420
+ },
7023
7421
  "step": {
7024
7422
  "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`.",
7025
7423
  "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`.",
@@ -7110,8 +7508,8 @@
7110
7508
  },
7111
7509
  "options": {
7112
7510
  "$ref": "#/definitions/ObjectInputOptions",
7113
- "description": "Options that are specific to this `type` of input.",
7114
- "markdownDescription": "Options that are specific to this `type` of input."
7511
+ "description": "Options that are specific to Object Inputs.",
7512
+ "markdownDescription": "Options that are specific to Object Inputs."
7115
7513
  },
7116
7514
  "type": {
7117
7515
  "const": "object",
@@ -7236,6 +7634,11 @@
7236
7634
  "description": "Changes the way items are previewed in the CMS.",
7237
7635
  "markdownDescription": "Changes the way items are previewed in the CMS."
7238
7636
  },
7637
+ "required": {
7638
+ "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).",
7639
+ "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).",
7640
+ "type": "boolean"
7641
+ },
7239
7642
  "structures": {
7240
7643
  "anyOf": [
7241
7644
  {
@@ -7581,8 +7984,8 @@
7581
7984
  },
7582
7985
  "options": {
7583
7986
  "$ref": "#/definitions/RangeInputOptions",
7584
- "description": "Options that are specific to this `type` of input.",
7585
- "markdownDescription": "Options that are specific to this `type` of input."
7987
+ "description": "Options that are specific to Range Inputs.",
7988
+ "markdownDescription": "Options that are specific to Range Inputs."
7586
7989
  },
7587
7990
  "type": {
7588
7991
  "const": "range",
@@ -7610,16 +8013,21 @@
7610
8013
  },
7611
8014
  "max": {
7612
8015
  "default": 10,
7613
- "description": "The greatest value in the range of permitted values.",
7614
- "markdownDescription": "The greatest value in the range of permitted values.",
8016
+ "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.",
8017
+ "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.",
7615
8018
  "type": "number"
7616
8019
  },
7617
8020
  "min": {
7618
8021
  "default": 0,
7619
- "description": "The lowest value in the range of permitted values.",
7620
- "markdownDescription": "The lowest value in the range of permitted values.",
8022
+ "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.",
8023
+ "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.",
7621
8024
  "type": "number"
7622
8025
  },
8026
+ "required": {
8027
+ "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).",
8028
+ "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).",
8029
+ "type": "boolean"
8030
+ },
7623
8031
  "step": {
7624
8032
  "default": 1,
7625
8033
  "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`.",
@@ -7711,8 +8119,8 @@
7711
8119
  },
7712
8120
  "options": {
7713
8121
  "$ref": "#/definitions/RichTextInputOptions",
7714
- "description": "Options that are specific to this `type` of input.",
7715
- "markdownDescription": "Options that are specific to this `type` of input."
8122
+ "description": "Options that are specific to Rich Text Inputs.",
8123
+ "markdownDescription": "Options that are specific to Rich Text Inputs."
7716
8124
  },
7717
8125
  "type": {
7718
8126
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -7894,6 +8302,11 @@
7894
8302
  "markdownDescription": "Enables a control to create hyperlinks around selected text.",
7895
8303
  "type": "boolean"
7896
8304
  },
8305
+ "max_length": {
8306
+ "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.",
8307
+ "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.",
8308
+ "type": "number"
8309
+ },
7897
8310
  "mime_type": {
7898
8311
  "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.",
7899
8312
  "enum": [
@@ -7904,6 +8317,11 @@
7904
8317
  "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.",
7905
8318
  "type": "string"
7906
8319
  },
8320
+ "min_length": {
8321
+ "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.",
8322
+ "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.",
8323
+ "type": "number"
8324
+ },
7907
8325
  "numberedlist": {
7908
8326
  "default": true,
7909
8327
  "description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
@@ -7921,6 +8339,60 @@
7921
8339
  "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`.",
7922
8340
  "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`."
7923
8341
  },
8342
+ "pattern": {
8343
+ "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.",
8344
+ "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.",
8345
+ "type": "string"
8346
+ },
8347
+ "pattern_flags": {
8348
+ "additionalProperties": false,
8349
+ "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.",
8350
+ "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.",
8351
+ "properties": {
8352
+ "dot_all": {
8353
+ "default": false,
8354
+ "description": "`s` - `.` matches newline characters.",
8355
+ "markdownDescription": "`s` - `.` matches newline characters.",
8356
+ "type": "boolean"
8357
+ },
8358
+ "global": {
8359
+ "default": false,
8360
+ "description": "`g` - Search globally.",
8361
+ "markdownDescription": "`g` - Search globally.",
8362
+ "type": "boolean"
8363
+ },
8364
+ "ignore_case": {
8365
+ "default": false,
8366
+ "description": "`i` - Case-insensitive.",
8367
+ "markdownDescription": "`i` - Case-insensitive.",
8368
+ "type": "boolean"
8369
+ },
8370
+ "multiline": {
8371
+ "default": false,
8372
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8373
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8374
+ "type": "boolean"
8375
+ },
8376
+ "unicode": {
8377
+ "default": false,
8378
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8379
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8380
+ "type": "boolean"
8381
+ },
8382
+ "unicode_sets": {
8383
+ "default": false,
8384
+ "description": "`v` - Extended `unicode` mode.",
8385
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8386
+ "type": "boolean"
8387
+ }
8388
+ },
8389
+ "type": "object"
8390
+ },
8391
+ "pattern_message": {
8392
+ "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.",
8393
+ "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.",
8394
+ "type": "string"
8395
+ },
7924
8396
  "prevent_resize_existing_files": {
7925
8397
  "default": false,
7926
8398
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
@@ -7944,6 +8416,11 @@
7944
8416
  "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.",
7945
8417
  "type": "boolean"
7946
8418
  },
8419
+ "required": {
8420
+ "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).",
8421
+ "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).",
8422
+ "type": "boolean"
8423
+ },
7947
8424
  "resize_style": {
7948
8425
  "default": "contain",
7949
8426
  "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.",
@@ -8219,93 +8696,165 @@
8219
8696
  "type": "string"
8220
8697
  },
8221
8698
  "options": {
8699
+ "$ref": "#/definitions/SelectInputOptions",
8700
+ "description": "Options that are specific to Select Inputs.",
8701
+ "markdownDescription": "Options that are specific to Select Inputs."
8702
+ },
8703
+ "type": {
8704
+ "const": "select",
8705
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8706
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8707
+ "type": "string"
8708
+ }
8709
+ },
8710
+ "required": [
8711
+ "type"
8712
+ ],
8713
+ "type": "object"
8714
+ },
8715
+ "SelectInputOptions": {
8716
+ "additionalProperties": false,
8717
+ "properties": {
8718
+ "allow_create": {
8719
+ "default": false,
8720
+ "description": "Allows new text values to be created at edit time.",
8721
+ "markdownDescription": "Allows new text values to be created at edit time.",
8722
+ "type": "boolean"
8723
+ },
8724
+ "allow_empty": {
8725
+ "default": true,
8726
+ "description": "Provides an empty option alongside the options provided by values.",
8727
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8728
+ "type": "boolean"
8729
+ },
8730
+ "empty_type": {
8731
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8732
+ "enum": [
8733
+ "null",
8734
+ "string"
8735
+ ],
8736
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8737
+ "type": "string"
8738
+ },
8739
+ "max_length": {
8740
+ "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.",
8741
+ "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.",
8742
+ "type": "number"
8743
+ },
8744
+ "min_length": {
8745
+ "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.",
8746
+ "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.",
8747
+ "type": "number"
8748
+ },
8749
+ "pattern": {
8750
+ "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.",
8751
+ "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.",
8752
+ "type": "string"
8753
+ },
8754
+ "pattern_flags": {
8222
8755
  "additionalProperties": false,
8223
- "description": "Options that are specific to this `type` of input.",
8224
- "markdownDescription": "Options that are specific to this `type` of input.",
8756
+ "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.",
8757
+ "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.",
8225
8758
  "properties": {
8226
- "allow_create": {
8759
+ "dot_all": {
8227
8760
  "default": false,
8228
- "description": "Allows new text values to be created at edit time.",
8229
- "markdownDescription": "Allows new text values to be created at edit time.",
8761
+ "description": "`s` - `.` matches newline characters.",
8762
+ "markdownDescription": "`s` - `.` matches newline characters.",
8230
8763
  "type": "boolean"
8231
8764
  },
8232
- "allow_empty": {
8233
- "default": true,
8234
- "description": "Provides an empty option alongside the options provided by values.",
8235
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8765
+ "global": {
8766
+ "default": false,
8767
+ "description": "`g` - Search globally.",
8768
+ "markdownDescription": "`g` - Search globally.",
8236
8769
  "type": "boolean"
8237
8770
  },
8238
- "empty_type": {
8239
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8240
- "enum": [
8241
- "null",
8242
- "string"
8243
- ],
8244
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8245
- "type": "string"
8246
- },
8247
- "picker_preview": {
8248
- "$ref": "#/definitions/Preview",
8249
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8250
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8251
- },
8252
- "picker_view": {
8253
- "description": "Controls how selectable options are rendered.",
8254
- "enum": [
8255
- "card",
8256
- "text",
8257
- "gallery",
8258
- "gallery-left"
8259
- ],
8260
- "markdownDescription": "Controls how selectable options are rendered.",
8261
- "type": "string"
8262
- },
8263
- "preview": {
8264
- "$ref": "#/definitions/Preview",
8265
- "description": "Changes the way items are previewed in the CMS.",
8266
- "markdownDescription": "Changes the way items are previewed in the CMS."
8771
+ "ignore_case": {
8772
+ "default": false,
8773
+ "description": "`i` - Case-insensitive.",
8774
+ "markdownDescription": "`i` - Case-insensitive.",
8775
+ "type": "boolean"
8267
8776
  },
8268
- "value_key": {
8269
- "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.",
8270
- "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.",
8271
- "type": "string"
8777
+ "multiline": {
8778
+ "default": false,
8779
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8780
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8781
+ "type": "boolean"
8272
8782
  },
8273
- "values": {
8274
- "anyOf": [
8275
- {
8276
- "type": "string"
8277
- },
8278
- {
8279
- "$ref": "#/definitions/SelectValues"
8280
- }
8281
- ],
8282
- "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).",
8283
- "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)."
8783
+ "unicode": {
8784
+ "default": false,
8785
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8786
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8787
+ "type": "boolean"
8284
8788
  },
8285
- "view": {
8286
- "description": "Controls how selected items are rendered.",
8287
- "enum": [
8288
- "card",
8289
- "text",
8290
- "gallery",
8291
- "gallery-left"
8292
- ],
8293
- "markdownDescription": "Controls how selected items are rendered.",
8294
- "type": "string"
8789
+ "unicode_sets": {
8790
+ "default": false,
8791
+ "description": "`v` - Extended `unicode` mode.",
8792
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8793
+ "type": "boolean"
8295
8794
  }
8296
8795
  },
8297
8796
  "type": "object"
8298
8797
  },
8299
- "type": {
8300
- "const": "select",
8301
- "description": "Sets an input type, which controls how this input appears and behaves.",
8302
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8798
+ "pattern_message": {
8799
+ "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.",
8800
+ "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.",
8801
+ "type": "string"
8802
+ },
8803
+ "picker_preview": {
8804
+ "$ref": "#/definitions/Preview",
8805
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8806
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8807
+ },
8808
+ "picker_view": {
8809
+ "description": "Controls how selectable options are rendered.",
8810
+ "enum": [
8811
+ "card",
8812
+ "text",
8813
+ "gallery",
8814
+ "gallery-left"
8815
+ ],
8816
+ "markdownDescription": "Controls how selectable options are rendered.",
8817
+ "type": "string"
8818
+ },
8819
+ "preview": {
8820
+ "$ref": "#/definitions/Preview",
8821
+ "description": "Changes the way items are previewed in the CMS.",
8822
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8823
+ },
8824
+ "required": {
8825
+ "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).",
8826
+ "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).",
8827
+ "type": "boolean"
8828
+ },
8829
+ "value_key": {
8830
+ "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.",
8831
+ "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.",
8832
+ "type": "string"
8833
+ },
8834
+ "values": {
8835
+ "anyOf": [
8836
+ {
8837
+ "type": "string"
8838
+ },
8839
+ {
8840
+ "$ref": "#/definitions/SelectValues"
8841
+ }
8842
+ ],
8843
+ "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).",
8844
+ "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)."
8845
+ },
8846
+ "view": {
8847
+ "description": "Controls how selected items are rendered.",
8848
+ "enum": [
8849
+ "card",
8850
+ "text",
8851
+ "gallery",
8852
+ "gallery-left"
8853
+ ],
8854
+ "markdownDescription": "Controls how selected items are rendered.",
8303
8855
  "type": "string"
8304
8856
  }
8305
8857
  },
8306
- "required": [
8307
- "type"
8308
- ],
8309
8858
  "type": "object"
8310
8859
  },
8311
8860
  "SelectValues": {
@@ -9600,8 +10149,8 @@
9600
10149
  },
9601
10150
  "options": {
9602
10151
  "$ref": "#/definitions/TextInputOptions",
9603
- "description": "Options that are specific to this `type` of input.",
9604
- "markdownDescription": "Options that are specific to this `type` of input."
10152
+ "description": "Options that are specific to Text Inputs.",
10153
+ "markdownDescription": "Options that are specific to Text Inputs."
9605
10154
  },
9606
10155
  "type": {
9607
10156
  "description": "Sets an input type, which controls how this input appears and behaves.",
@@ -9641,10 +10190,79 @@
9641
10190
  "description": "Icon shown beside the input.",
9642
10191
  "markdownDescription": "Icon shown beside the input."
9643
10192
  },
10193
+ "max_length": {
10194
+ "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.",
10195
+ "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.",
10196
+ "type": "number"
10197
+ },
10198
+ "min_length": {
10199
+ "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.",
10200
+ "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.",
10201
+ "type": "number"
10202
+ },
10203
+ "pattern": {
10204
+ "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.",
10205
+ "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.",
10206
+ "type": "string"
10207
+ },
10208
+ "pattern_flags": {
10209
+ "additionalProperties": false,
10210
+ "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.",
10211
+ "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.",
10212
+ "properties": {
10213
+ "dot_all": {
10214
+ "default": false,
10215
+ "description": "`s` - `.` matches newline characters.",
10216
+ "markdownDescription": "`s` - `.` matches newline characters.",
10217
+ "type": "boolean"
10218
+ },
10219
+ "global": {
10220
+ "default": false,
10221
+ "description": "`g` - Search globally.",
10222
+ "markdownDescription": "`g` - Search globally.",
10223
+ "type": "boolean"
10224
+ },
10225
+ "ignore_case": {
10226
+ "default": false,
10227
+ "description": "`i` - Case-insensitive.",
10228
+ "markdownDescription": "`i` - Case-insensitive.",
10229
+ "type": "boolean"
10230
+ },
10231
+ "multiline": {
10232
+ "default": false,
10233
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10234
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10235
+ "type": "boolean"
10236
+ },
10237
+ "unicode": {
10238
+ "default": false,
10239
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10240
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10241
+ "type": "boolean"
10242
+ },
10243
+ "unicode_sets": {
10244
+ "default": false,
10245
+ "description": "`v` - Extended `unicode` mode.",
10246
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10247
+ "type": "boolean"
10248
+ }
10249
+ },
10250
+ "type": "object"
10251
+ },
10252
+ "pattern_message": {
10253
+ "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.",
10254
+ "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.",
10255
+ "type": "string"
10256
+ },
9644
10257
  "placeholder": {
9645
10258
  "description": "Text shown when this input has no value.",
9646
10259
  "markdownDescription": "Text shown when this input has no value.",
9647
10260
  "type": "string"
10261
+ },
10262
+ "required": {
10263
+ "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).",
10264
+ "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).",
10265
+ "type": "boolean"
9648
10266
  }
9649
10267
  },
9650
10268
  "type": "object"
@@ -9731,8 +10349,8 @@
9731
10349
  },
9732
10350
  "options": {
9733
10351
  "$ref": "#/definitions/TextareaInputOptions",
9734
- "description": "Options that are specific to this `type` of input.",
9735
- "markdownDescription": "Options that are specific to this `type` of input."
10352
+ "description": "Options that are specific to Textarea Inputs.",
10353
+ "markdownDescription": "Options that are specific to Textarea Inputs."
9736
10354
  },
9737
10355
  "type": {
9738
10356
  "const": "textarea",
@@ -9763,11 +10381,80 @@
9763
10381
  "description": "Icon shown beside the input.",
9764
10382
  "markdownDescription": "Icon shown beside the input."
9765
10383
  },
10384
+ "max_length": {
10385
+ "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.",
10386
+ "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.",
10387
+ "type": "number"
10388
+ },
10389
+ "min_length": {
10390
+ "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.",
10391
+ "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.",
10392
+ "type": "number"
10393
+ },
10394
+ "pattern": {
10395
+ "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.",
10396
+ "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.",
10397
+ "type": "string"
10398
+ },
10399
+ "pattern_flags": {
10400
+ "additionalProperties": false,
10401
+ "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.",
10402
+ "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.",
10403
+ "properties": {
10404
+ "dot_all": {
10405
+ "default": false,
10406
+ "description": "`s` - `.` matches newline characters.",
10407
+ "markdownDescription": "`s` - `.` matches newline characters.",
10408
+ "type": "boolean"
10409
+ },
10410
+ "global": {
10411
+ "default": false,
10412
+ "description": "`g` - Search globally.",
10413
+ "markdownDescription": "`g` - Search globally.",
10414
+ "type": "boolean"
10415
+ },
10416
+ "ignore_case": {
10417
+ "default": false,
10418
+ "description": "`i` - Case-insensitive.",
10419
+ "markdownDescription": "`i` - Case-insensitive.",
10420
+ "type": "boolean"
10421
+ },
10422
+ "multiline": {
10423
+ "default": false,
10424
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10425
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
10426
+ "type": "boolean"
10427
+ },
10428
+ "unicode": {
10429
+ "default": false,
10430
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
10431
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
10432
+ "type": "boolean"
10433
+ },
10434
+ "unicode_sets": {
10435
+ "default": false,
10436
+ "description": "`v` - Extended `unicode` mode.",
10437
+ "markdownDescription": "`v` - Extended `unicode` mode.",
10438
+ "type": "boolean"
10439
+ }
10440
+ },
10441
+ "type": "object"
10442
+ },
10443
+ "pattern_message": {
10444
+ "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.",
10445
+ "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.",
10446
+ "type": "string"
10447
+ },
9766
10448
  "placeholder": {
9767
10449
  "description": "Text shown when this input has no value.",
9768
10450
  "markdownDescription": "Text shown when this input has no value.",
9769
10451
  "type": "string"
9770
10452
  },
10453
+ "required": {
10454
+ "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).",
10455
+ "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).",
10456
+ "type": "boolean"
10457
+ },
9771
10458
  "show_count": {
9772
10459
  "default": false,
9773
10460
  "description": "Shows a character counter below the input if enabled.",
@@ -9901,9 +10588,26 @@
9901
10588
  "type": "string"
9902
10589
  },
9903
10590
  "options": {
9904
- "$ref": "#/definitions/WithEmptyTypeText",
10591
+ "additionalProperties": false,
9905
10592
  "description": "Options that are specific to Time inputs.",
9906
- "markdownDescription": "Options that are specific to Time inputs."
10593
+ "markdownDescription": "Options that are specific to Time inputs.",
10594
+ "properties": {
10595
+ "empty_type": {
10596
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10597
+ "enum": [
10598
+ "null",
10599
+ "string"
10600
+ ],
10601
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10602
+ "type": "string"
10603
+ },
10604
+ "required": {
10605
+ "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).",
10606
+ "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).",
10607
+ "type": "boolean"
10608
+ }
10609
+ },
10610
+ "type": "object"
9907
10611
  },
9908
10612
  "type": {
9909
10613
  "const": "time",
@@ -10789,6 +11493,11 @@
10789
11493
  "markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
10790
11494
  "type": "boolean"
10791
11495
  },
11496
+ "max_length": {
11497
+ "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.",
11498
+ "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.",
11499
+ "type": "number"
11500
+ },
10792
11501
  "mime_type": {
10793
11502
  "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.",
10794
11503
  "enum": [
@@ -10799,17 +11508,81 @@
10799
11508
  "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.",
10800
11509
  "type": "string"
10801
11510
  },
11511
+ "min_length": {
11512
+ "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.",
11513
+ "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.",
11514
+ "type": "number"
11515
+ },
10802
11516
  "paths": {
10803
11517
  "$ref": "#/definitions/Paths",
10804
11518
  "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`.",
10805
11519
  "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`."
10806
11520
  },
11521
+ "pattern": {
11522
+ "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.",
11523
+ "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.",
11524
+ "type": "string"
11525
+ },
11526
+ "pattern_flags": {
11527
+ "additionalProperties": false,
11528
+ "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.",
11529
+ "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.",
11530
+ "properties": {
11531
+ "dot_all": {
11532
+ "default": false,
11533
+ "description": "`s` - `.` matches newline characters.",
11534
+ "markdownDescription": "`s` - `.` matches newline characters.",
11535
+ "type": "boolean"
11536
+ },
11537
+ "global": {
11538
+ "default": false,
11539
+ "description": "`g` - Search globally.",
11540
+ "markdownDescription": "`g` - Search globally.",
11541
+ "type": "boolean"
11542
+ },
11543
+ "ignore_case": {
11544
+ "default": false,
11545
+ "description": "`i` - Case-insensitive.",
11546
+ "markdownDescription": "`i` - Case-insensitive.",
11547
+ "type": "boolean"
11548
+ },
11549
+ "multiline": {
11550
+ "default": false,
11551
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11552
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
11553
+ "type": "boolean"
11554
+ },
11555
+ "unicode": {
11556
+ "default": false,
11557
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
11558
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
11559
+ "type": "boolean"
11560
+ },
11561
+ "unicode_sets": {
11562
+ "default": false,
11563
+ "description": "`v` - Extended `unicode` mode.",
11564
+ "markdownDescription": "`v` - Extended `unicode` mode.",
11565
+ "type": "boolean"
11566
+ }
11567
+ },
11568
+ "type": "object"
11569
+ },
11570
+ "pattern_message": {
11571
+ "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.",
11572
+ "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.",
11573
+ "type": "string"
11574
+ },
10807
11575
  "prevent_resize_existing_files": {
10808
11576
  "default": false,
10809
11577
  "description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
10810
11578
  "markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
10811
11579
  "type": "boolean"
10812
11580
  },
11581
+ "required": {
11582
+ "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).",
11583
+ "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).",
11584
+ "type": "boolean"
11585
+ },
10813
11586
  "resize_style": {
10814
11587
  "default": "contain",
10815
11588
  "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.",
@@ -10854,21 +11627,6 @@
10854
11627
  },
10855
11628
  "type": "object"
10856
11629
  },
10857
- "WithEmptyTypeText": {
10858
- "additionalProperties": false,
10859
- "properties": {
10860
- "empty_type": {
10861
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10862
- "enum": [
10863
- "null",
10864
- "string"
10865
- ],
10866
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
10867
- "type": "string"
10868
- }
10869
- },
10870
- "type": "object"
10871
- },
10872
11630
  "WithPaths": {
10873
11631
  "additionalProperties": false,
10874
11632
  "properties": {