@cloudcannon/configuration-types 0.0.31 → 0.0.32
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.
- package/dist/cloudcannon-config.latest.schema.json +813 -125
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +813 -125
- package/dist/cloudcannon-config.legacy-hugo.schema.json +813 -125
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +813 -125
- package/dist/cloudcannon-config.legacy-reader.schema.json +813 -125
- package/package.json +2 -2
- package/src/inputs.d.ts +309 -39
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
},
|
|
127
127
|
"options": {
|
|
128
128
|
"$ref": "#/definitions/ArrayInputOptions",
|
|
129
|
-
"description": "Options that are specific to
|
|
130
|
-
"markdownDescription": "Options that are specific to
|
|
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 array item for adding new items to this Input.",
|
|
150
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"disable_remove": {
|
|
154
|
+
"default": false,
|
|
155
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
156
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"disable_reorder": {
|
|
160
|
+
"default": false,
|
|
161
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
162
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
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"
|
|
@@ -804,8 +842,8 @@
|
|
|
804
842
|
},
|
|
805
843
|
"options": {
|
|
806
844
|
"additionalProperties": false,
|
|
807
|
-
"description": "Options that are specific to
|
|
808
|
-
"markdownDescription": "Options that are specific to
|
|
845
|
+
"description": "Options that are specific to Choice Inputs.",
|
|
846
|
+
"markdownDescription": "Options that are specific to Choice Inputs.",
|
|
809
847
|
"properties": {
|
|
810
848
|
"allow_empty": {
|
|
811
849
|
"default": true,
|
|
@@ -822,6 +860,70 @@
|
|
|
822
860
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
823
861
|
"type": "string"
|
|
824
862
|
},
|
|
863
|
+
"max_length": {
|
|
864
|
+
"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.",
|
|
865
|
+
"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.",
|
|
866
|
+
"type": "number"
|
|
867
|
+
},
|
|
868
|
+
"min_length": {
|
|
869
|
+
"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.",
|
|
870
|
+
"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.",
|
|
871
|
+
"type": "number"
|
|
872
|
+
},
|
|
873
|
+
"pattern": {
|
|
874
|
+
"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.",
|
|
875
|
+
"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.",
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"pattern_flags": {
|
|
879
|
+
"additionalProperties": false,
|
|
880
|
+
"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.",
|
|
881
|
+
"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.",
|
|
882
|
+
"properties": {
|
|
883
|
+
"dot_all": {
|
|
884
|
+
"default": false,
|
|
885
|
+
"description": "`s` - `.` matches newline characters.",
|
|
886
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
887
|
+
"type": "boolean"
|
|
888
|
+
},
|
|
889
|
+
"global": {
|
|
890
|
+
"default": false,
|
|
891
|
+
"description": "`g` - Search globally.",
|
|
892
|
+
"markdownDescription": "`g` - Search globally.",
|
|
893
|
+
"type": "boolean"
|
|
894
|
+
},
|
|
895
|
+
"ignore_case": {
|
|
896
|
+
"default": false,
|
|
897
|
+
"description": "`i` - Case-insensitive.",
|
|
898
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"multiline": {
|
|
902
|
+
"default": false,
|
|
903
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
904
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
905
|
+
"type": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"unicode": {
|
|
908
|
+
"default": false,
|
|
909
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
910
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
911
|
+
"type": "boolean"
|
|
912
|
+
},
|
|
913
|
+
"unicode_sets": {
|
|
914
|
+
"default": false,
|
|
915
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
916
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
917
|
+
"type": "boolean"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"type": "object"
|
|
921
|
+
},
|
|
922
|
+
"pattern_message": {
|
|
923
|
+
"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.",
|
|
924
|
+
"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.",
|
|
925
|
+
"type": "string"
|
|
926
|
+
},
|
|
825
927
|
"picker_preview": {
|
|
826
928
|
"$ref": "#/definitions/Preview",
|
|
827
929
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -843,6 +945,11 @@
|
|
|
843
945
|
"description": "Changes the way items are previewed in the CMS.",
|
|
844
946
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
845
947
|
},
|
|
948
|
+
"required": {
|
|
949
|
+
"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).",
|
|
950
|
+
"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).",
|
|
951
|
+
"type": "boolean"
|
|
952
|
+
},
|
|
846
953
|
"value_key": {
|
|
847
954
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
848
955
|
"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.",
|
|
@@ -968,8 +1075,8 @@
|
|
|
968
1075
|
},
|
|
969
1076
|
"options": {
|
|
970
1077
|
"$ref": "#/definitions/CodeInputOptions",
|
|
971
|
-
"description": "Options that are specific to
|
|
972
|
-
"markdownDescription": "Options that are specific to
|
|
1078
|
+
"description": "Options that are specific to Code Inputs.",
|
|
1079
|
+
"markdownDescription": "Options that are specific to Code Inputs."
|
|
973
1080
|
},
|
|
974
1081
|
"type": {
|
|
975
1082
|
"const": "code",
|
|
@@ -995,18 +1102,87 @@
|
|
|
995
1102
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
996
1103
|
"type": "string"
|
|
997
1104
|
},
|
|
1105
|
+
"max_length": {
|
|
1106
|
+
"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.",
|
|
1107
|
+
"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.",
|
|
1108
|
+
"type": "number"
|
|
1109
|
+
},
|
|
998
1110
|
"max_visible_lines": {
|
|
999
1111
|
"default": 30,
|
|
1000
1112
|
"description": "Sets the maximum number of visible lines for this input, effectively controlling maximum height. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1001
1113
|
"markdownDescription": "Sets the maximum number of visible lines for this input, effectively controlling maximum\nheight. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1002
1114
|
"type": "number"
|
|
1003
1115
|
},
|
|
1116
|
+
"min_length": {
|
|
1117
|
+
"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.",
|
|
1118
|
+
"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.",
|
|
1119
|
+
"type": "number"
|
|
1120
|
+
},
|
|
1004
1121
|
"min_visible_lines": {
|
|
1005
1122
|
"default": 10,
|
|
1006
1123
|
"description": "Sets the minimum number of visible lines for this input, effectively controlling initial height. When the containing text exceeds this number, the input grows line by line to the lines defined by `max_visible_lines`.",
|
|
1007
1124
|
"markdownDescription": "Sets the minimum number of visible lines for this input, effectively controlling initial\nheight. When the containing text exceeds this number, the input grows line by line to the lines\ndefined by `max_visible_lines`.",
|
|
1008
1125
|
"type": "number"
|
|
1009
1126
|
},
|
|
1127
|
+
"pattern": {
|
|
1128
|
+
"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.",
|
|
1129
|
+
"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.",
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
"pattern_flags": {
|
|
1133
|
+
"additionalProperties": false,
|
|
1134
|
+
"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.",
|
|
1135
|
+
"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.",
|
|
1136
|
+
"properties": {
|
|
1137
|
+
"dot_all": {
|
|
1138
|
+
"default": false,
|
|
1139
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1140
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1141
|
+
"type": "boolean"
|
|
1142
|
+
},
|
|
1143
|
+
"global": {
|
|
1144
|
+
"default": false,
|
|
1145
|
+
"description": "`g` - Search globally.",
|
|
1146
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1147
|
+
"type": "boolean"
|
|
1148
|
+
},
|
|
1149
|
+
"ignore_case": {
|
|
1150
|
+
"default": false,
|
|
1151
|
+
"description": "`i` - Case-insensitive.",
|
|
1152
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1153
|
+
"type": "boolean"
|
|
1154
|
+
},
|
|
1155
|
+
"multiline": {
|
|
1156
|
+
"default": false,
|
|
1157
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1158
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1159
|
+
"type": "boolean"
|
|
1160
|
+
},
|
|
1161
|
+
"unicode": {
|
|
1162
|
+
"default": false,
|
|
1163
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1164
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1165
|
+
"type": "boolean"
|
|
1166
|
+
},
|
|
1167
|
+
"unicode_sets": {
|
|
1168
|
+
"default": false,
|
|
1169
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1170
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1171
|
+
"type": "boolean"
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"type": "object"
|
|
1175
|
+
},
|
|
1176
|
+
"pattern_message": {
|
|
1177
|
+
"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.",
|
|
1178
|
+
"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.",
|
|
1179
|
+
"type": "string"
|
|
1180
|
+
},
|
|
1181
|
+
"required": {
|
|
1182
|
+
"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).",
|
|
1183
|
+
"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).",
|
|
1184
|
+
"type": "boolean"
|
|
1185
|
+
},
|
|
1010
1186
|
"show_gutter": {
|
|
1011
1187
|
"default": true,
|
|
1012
1188
|
"description": "This key toggles the gutter on the left of the editing interface, displaying line numbers and code folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
@@ -1144,8 +1320,8 @@
|
|
|
1144
1320
|
},
|
|
1145
1321
|
"options": {
|
|
1146
1322
|
"$ref": "#/definitions/ColorInputOptions",
|
|
1147
|
-
"description": "Options that are specific to
|
|
1148
|
-
"markdownDescription": "Options that are specific to
|
|
1323
|
+
"description": "Options that are specific to Color Inputs.",
|
|
1324
|
+
"markdownDescription": "Options that are specific to Color Inputs."
|
|
1149
1325
|
},
|
|
1150
1326
|
"type": {
|
|
1151
1327
|
"const": "color",
|
|
@@ -1186,6 +1362,75 @@
|
|
|
1186
1362
|
],
|
|
1187
1363
|
"markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
|
|
1188
1364
|
"type": "string"
|
|
1365
|
+
},
|
|
1366
|
+
"max_length": {
|
|
1367
|
+
"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.",
|
|
1368
|
+
"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.",
|
|
1369
|
+
"type": "number"
|
|
1370
|
+
},
|
|
1371
|
+
"min_length": {
|
|
1372
|
+
"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.",
|
|
1373
|
+
"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.",
|
|
1374
|
+
"type": "number"
|
|
1375
|
+
},
|
|
1376
|
+
"pattern": {
|
|
1377
|
+
"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.",
|
|
1378
|
+
"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.",
|
|
1379
|
+
"type": "string"
|
|
1380
|
+
},
|
|
1381
|
+
"pattern_flags": {
|
|
1382
|
+
"additionalProperties": false,
|
|
1383
|
+
"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.",
|
|
1384
|
+
"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.",
|
|
1385
|
+
"properties": {
|
|
1386
|
+
"dot_all": {
|
|
1387
|
+
"default": false,
|
|
1388
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1389
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1390
|
+
"type": "boolean"
|
|
1391
|
+
},
|
|
1392
|
+
"global": {
|
|
1393
|
+
"default": false,
|
|
1394
|
+
"description": "`g` - Search globally.",
|
|
1395
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1396
|
+
"type": "boolean"
|
|
1397
|
+
},
|
|
1398
|
+
"ignore_case": {
|
|
1399
|
+
"default": false,
|
|
1400
|
+
"description": "`i` - Case-insensitive.",
|
|
1401
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1402
|
+
"type": "boolean"
|
|
1403
|
+
},
|
|
1404
|
+
"multiline": {
|
|
1405
|
+
"default": false,
|
|
1406
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1407
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1408
|
+
"type": "boolean"
|
|
1409
|
+
},
|
|
1410
|
+
"unicode": {
|
|
1411
|
+
"default": false,
|
|
1412
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1413
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1414
|
+
"type": "boolean"
|
|
1415
|
+
},
|
|
1416
|
+
"unicode_sets": {
|
|
1417
|
+
"default": false,
|
|
1418
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1419
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1420
|
+
"type": "boolean"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"type": "object"
|
|
1424
|
+
},
|
|
1425
|
+
"pattern_message": {
|
|
1426
|
+
"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.",
|
|
1427
|
+
"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.",
|
|
1428
|
+
"type": "string"
|
|
1429
|
+
},
|
|
1430
|
+
"required": {
|
|
1431
|
+
"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).",
|
|
1432
|
+
"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).",
|
|
1433
|
+
"type": "boolean"
|
|
1189
1434
|
}
|
|
1190
1435
|
},
|
|
1191
1436
|
"type": "object"
|
|
@@ -1392,6 +1637,18 @@
|
|
|
1392
1637
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1393
1638
|
"type": "string"
|
|
1394
1639
|
},
|
|
1640
|
+
"end_before": {
|
|
1641
|
+
"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.",
|
|
1642
|
+
"format": "date-time",
|
|
1643
|
+
"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.",
|
|
1644
|
+
"type": "string"
|
|
1645
|
+
},
|
|
1646
|
+
"start_from": {
|
|
1647
|
+
"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.",
|
|
1648
|
+
"format": "date-time",
|
|
1649
|
+
"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.",
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1395
1652
|
"timezone": {
|
|
1396
1653
|
"$ref": "#/definitions/Timezone",
|
|
1397
1654
|
"default": "Etc/UTC",
|
|
@@ -1713,6 +1970,11 @@
|
|
|
1713
1970
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1714
1971
|
"type": "boolean"
|
|
1715
1972
|
},
|
|
1973
|
+
"max_length": {
|
|
1974
|
+
"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.",
|
|
1975
|
+
"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.",
|
|
1976
|
+
"type": "number"
|
|
1977
|
+
},
|
|
1716
1978
|
"mime_type": {
|
|
1717
1979
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
1718
1980
|
"enum": [
|
|
@@ -1723,17 +1985,81 @@
|
|
|
1723
1985
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
1724
1986
|
"type": "string"
|
|
1725
1987
|
},
|
|
1988
|
+
"min_length": {
|
|
1989
|
+
"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.",
|
|
1990
|
+
"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.",
|
|
1991
|
+
"type": "number"
|
|
1992
|
+
},
|
|
1726
1993
|
"paths": {
|
|
1727
1994
|
"$ref": "#/definitions/Paths",
|
|
1728
1995
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
1729
1996
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
1730
1997
|
},
|
|
1998
|
+
"pattern": {
|
|
1999
|
+
"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.",
|
|
2000
|
+
"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.",
|
|
2001
|
+
"type": "string"
|
|
2002
|
+
},
|
|
2003
|
+
"pattern_flags": {
|
|
2004
|
+
"additionalProperties": false,
|
|
2005
|
+
"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.",
|
|
2006
|
+
"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.",
|
|
2007
|
+
"properties": {
|
|
2008
|
+
"dot_all": {
|
|
2009
|
+
"default": false,
|
|
2010
|
+
"description": "`s` - `.` matches newline characters.",
|
|
2011
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
2012
|
+
"type": "boolean"
|
|
2013
|
+
},
|
|
2014
|
+
"global": {
|
|
2015
|
+
"default": false,
|
|
2016
|
+
"description": "`g` - Search globally.",
|
|
2017
|
+
"markdownDescription": "`g` - Search globally.",
|
|
2018
|
+
"type": "boolean"
|
|
2019
|
+
},
|
|
2020
|
+
"ignore_case": {
|
|
2021
|
+
"default": false,
|
|
2022
|
+
"description": "`i` - Case-insensitive.",
|
|
2023
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
2024
|
+
"type": "boolean"
|
|
2025
|
+
},
|
|
2026
|
+
"multiline": {
|
|
2027
|
+
"default": false,
|
|
2028
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2029
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2030
|
+
"type": "boolean"
|
|
2031
|
+
},
|
|
2032
|
+
"unicode": {
|
|
2033
|
+
"default": false,
|
|
2034
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2035
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2036
|
+
"type": "boolean"
|
|
2037
|
+
},
|
|
2038
|
+
"unicode_sets": {
|
|
2039
|
+
"default": false,
|
|
2040
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
2041
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
2042
|
+
"type": "boolean"
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
"type": "object"
|
|
2046
|
+
},
|
|
2047
|
+
"pattern_message": {
|
|
2048
|
+
"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.",
|
|
2049
|
+
"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.",
|
|
2050
|
+
"type": "string"
|
|
2051
|
+
},
|
|
1731
2052
|
"prevent_resize_existing_files": {
|
|
1732
2053
|
"default": false,
|
|
1733
2054
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
1734
2055
|
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
1735
2056
|
"type": "boolean"
|
|
1736
2057
|
},
|
|
2058
|
+
"required": {
|
|
2059
|
+
"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).",
|
|
2060
|
+
"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).",
|
|
2061
|
+
"type": "boolean"
|
|
2062
|
+
},
|
|
1737
2063
|
"resize_style": {
|
|
1738
2064
|
"default": "contain",
|
|
1739
2065
|
"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.",
|
|
@@ -6551,8 +6877,8 @@
|
|
|
6551
6877
|
},
|
|
6552
6878
|
"options": {
|
|
6553
6879
|
"additionalProperties": false,
|
|
6554
|
-
"description": "Options that are specific to
|
|
6555
|
-
"markdownDescription": "Options that are specific to
|
|
6880
|
+
"description": "Options that are specific to Multichoice Inputs.",
|
|
6881
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs.",
|
|
6556
6882
|
"properties": {
|
|
6557
6883
|
"allow_empty": {
|
|
6558
6884
|
"default": true,
|
|
@@ -6569,6 +6895,16 @@
|
|
|
6569
6895
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6570
6896
|
"type": "string"
|
|
6571
6897
|
},
|
|
6898
|
+
"max_items": {
|
|
6899
|
+
"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.",
|
|
6900
|
+
"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.",
|
|
6901
|
+
"type": "number"
|
|
6902
|
+
},
|
|
6903
|
+
"min_items": {
|
|
6904
|
+
"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.",
|
|
6905
|
+
"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.",
|
|
6906
|
+
"type": "number"
|
|
6907
|
+
},
|
|
6572
6908
|
"picker_preview": {
|
|
6573
6909
|
"$ref": "#/definitions/Preview",
|
|
6574
6910
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -6590,6 +6926,16 @@
|
|
|
6590
6926
|
"description": "Changes the way items are previewed in the CMS.",
|
|
6591
6927
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6592
6928
|
},
|
|
6929
|
+
"required": {
|
|
6930
|
+
"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).",
|
|
6931
|
+
"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).",
|
|
6932
|
+
"type": "boolean"
|
|
6933
|
+
},
|
|
6934
|
+
"unique_on": {
|
|
6935
|
+
"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.",
|
|
6936
|
+
"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.",
|
|
6937
|
+
"type": "string"
|
|
6938
|
+
},
|
|
6593
6939
|
"value_key": {
|
|
6594
6940
|
"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.",
|
|
6595
6941
|
"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.",
|
|
@@ -6714,82 +7060,9 @@
|
|
|
6714
7060
|
"type": "string"
|
|
6715
7061
|
},
|
|
6716
7062
|
"options": {
|
|
6717
|
-
"
|
|
6718
|
-
"description": "Options that are specific to
|
|
6719
|
-
"markdownDescription": "Options that are specific to
|
|
6720
|
-
"properties": {
|
|
6721
|
-
"allow_create": {
|
|
6722
|
-
"default": false,
|
|
6723
|
-
"description": "Allows new text values to be created at edit time.",
|
|
6724
|
-
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
6725
|
-
"type": "boolean"
|
|
6726
|
-
},
|
|
6727
|
-
"allow_empty": {
|
|
6728
|
-
"default": true,
|
|
6729
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6730
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6731
|
-
"type": "boolean"
|
|
6732
|
-
},
|
|
6733
|
-
"empty_type": {
|
|
6734
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6735
|
-
"enum": [
|
|
6736
|
-
"null",
|
|
6737
|
-
"array"
|
|
6738
|
-
],
|
|
6739
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6740
|
-
"type": "string"
|
|
6741
|
-
},
|
|
6742
|
-
"picker_preview": {
|
|
6743
|
-
"$ref": "#/definitions/Preview",
|
|
6744
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6745
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6746
|
-
},
|
|
6747
|
-
"picker_view": {
|
|
6748
|
-
"description": "Controls how selectable options are rendered.",
|
|
6749
|
-
"enum": [
|
|
6750
|
-
"card",
|
|
6751
|
-
"text",
|
|
6752
|
-
"gallery",
|
|
6753
|
-
"gallery-left"
|
|
6754
|
-
],
|
|
6755
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6756
|
-
"type": "string"
|
|
6757
|
-
},
|
|
6758
|
-
"preview": {
|
|
6759
|
-
"$ref": "#/definitions/Preview",
|
|
6760
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
6761
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6762
|
-
},
|
|
6763
|
-
"value_key": {
|
|
6764
|
-
"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.",
|
|
6765
|
-
"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.",
|
|
6766
|
-
"type": "string"
|
|
6767
|
-
},
|
|
6768
|
-
"values": {
|
|
6769
|
-
"anyOf": [
|
|
6770
|
-
{
|
|
6771
|
-
"type": "string"
|
|
6772
|
-
},
|
|
6773
|
-
{
|
|
6774
|
-
"$ref": "#/definitions/SelectValues"
|
|
6775
|
-
}
|
|
6776
|
-
],
|
|
6777
|
-
"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).",
|
|
6778
|
-
"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)."
|
|
6779
|
-
},
|
|
6780
|
-
"view": {
|
|
6781
|
-
"description": "Controls how selected items are rendered.",
|
|
6782
|
-
"enum": [
|
|
6783
|
-
"card",
|
|
6784
|
-
"text",
|
|
6785
|
-
"gallery",
|
|
6786
|
-
"gallery-left"
|
|
6787
|
-
],
|
|
6788
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
6789
|
-
"type": "string"
|
|
6790
|
-
}
|
|
6791
|
-
},
|
|
6792
|
-
"type": "object"
|
|
7063
|
+
"$ref": "#/definitions/MultiselectInputOptions",
|
|
7064
|
+
"description": "Options that are specific to Multiselect Inputs.",
|
|
7065
|
+
"markdownDescription": "Options that are specific to Multiselect Inputs."
|
|
6793
7066
|
},
|
|
6794
7067
|
"type": {
|
|
6795
7068
|
"const": "multiselect",
|
|
@@ -6803,6 +7076,59 @@
|
|
|
6803
7076
|
],
|
|
6804
7077
|
"type": "object"
|
|
6805
7078
|
},
|
|
7079
|
+
"MultiselectInputOptions": {
|
|
7080
|
+
"additionalProperties": false,
|
|
7081
|
+
"properties": {
|
|
7082
|
+
"disable_add": {
|
|
7083
|
+
"default": false,
|
|
7084
|
+
"description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
|
|
7085
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
7086
|
+
"type": "boolean"
|
|
7087
|
+
},
|
|
7088
|
+
"disable_remove": {
|
|
7089
|
+
"default": false,
|
|
7090
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
7091
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
7092
|
+
"type": "boolean"
|
|
7093
|
+
},
|
|
7094
|
+
"disable_reorder": {
|
|
7095
|
+
"default": false,
|
|
7096
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
7097
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
7098
|
+
"type": "boolean"
|
|
7099
|
+
},
|
|
7100
|
+
"empty_type": {
|
|
7101
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7102
|
+
"enum": [
|
|
7103
|
+
"null",
|
|
7104
|
+
"array"
|
|
7105
|
+
],
|
|
7106
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7107
|
+
"type": "string"
|
|
7108
|
+
},
|
|
7109
|
+
"max_items": {
|
|
7110
|
+
"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.",
|
|
7111
|
+
"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.",
|
|
7112
|
+
"type": "number"
|
|
7113
|
+
},
|
|
7114
|
+
"min_items": {
|
|
7115
|
+
"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.",
|
|
7116
|
+
"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.",
|
|
7117
|
+
"type": "number"
|
|
7118
|
+
},
|
|
7119
|
+
"required": {
|
|
7120
|
+
"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).",
|
|
7121
|
+
"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).",
|
|
7122
|
+
"type": "boolean"
|
|
7123
|
+
},
|
|
7124
|
+
"unique_on": {
|
|
7125
|
+
"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.",
|
|
7126
|
+
"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.",
|
|
7127
|
+
"type": "string"
|
|
7128
|
+
}
|
|
7129
|
+
},
|
|
7130
|
+
"type": "object"
|
|
7131
|
+
},
|
|
6806
7132
|
"NumberInput": {
|
|
6807
7133
|
"additionalProperties": false,
|
|
6808
7134
|
"properties": {
|
|
@@ -6885,8 +7211,8 @@
|
|
|
6885
7211
|
},
|
|
6886
7212
|
"options": {
|
|
6887
7213
|
"$ref": "#/definitions/NumberInputOptions",
|
|
6888
|
-
"description": "Options that are specific to this
|
|
6889
|
-
"markdownDescription": "Options that are specific to this
|
|
7214
|
+
"description": "Options that are specific to this Number Inputs.",
|
|
7215
|
+
"markdownDescription": "Options that are specific to this Number Inputs."
|
|
6890
7216
|
},
|
|
6891
7217
|
"type": {
|
|
6892
7218
|
"const": "number",
|
|
@@ -6913,15 +7239,20 @@
|
|
|
6913
7239
|
"type": "string"
|
|
6914
7240
|
},
|
|
6915
7241
|
"max": {
|
|
6916
|
-
"description": "
|
|
6917
|
-
"markdownDescription": "
|
|
7242
|
+
"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.",
|
|
7243
|
+
"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.",
|
|
6918
7244
|
"type": "number"
|
|
6919
7245
|
},
|
|
6920
7246
|
"min": {
|
|
6921
|
-
"description": "
|
|
6922
|
-
"markdownDescription": "
|
|
7247
|
+
"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.",
|
|
7248
|
+
"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.",
|
|
6923
7249
|
"type": "number"
|
|
6924
7250
|
},
|
|
7251
|
+
"required": {
|
|
7252
|
+
"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).",
|
|
7253
|
+
"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).",
|
|
7254
|
+
"type": "boolean"
|
|
7255
|
+
},
|
|
6925
7256
|
"step": {
|
|
6926
7257
|
"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`.",
|
|
6927
7258
|
"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`.",
|
|
@@ -7012,8 +7343,8 @@
|
|
|
7012
7343
|
},
|
|
7013
7344
|
"options": {
|
|
7014
7345
|
"$ref": "#/definitions/ObjectInputOptions",
|
|
7015
|
-
"description": "Options that are specific to
|
|
7016
|
-
"markdownDescription": "Options that are specific to
|
|
7346
|
+
"description": "Options that are specific to Object Inputs.",
|
|
7347
|
+
"markdownDescription": "Options that are specific to Object Inputs."
|
|
7017
7348
|
},
|
|
7018
7349
|
"type": {
|
|
7019
7350
|
"const": "object",
|
|
@@ -7138,6 +7469,11 @@
|
|
|
7138
7469
|
"description": "Changes the way items are previewed in the CMS.",
|
|
7139
7470
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7140
7471
|
},
|
|
7472
|
+
"required": {
|
|
7473
|
+
"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).",
|
|
7474
|
+
"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).",
|
|
7475
|
+
"type": "boolean"
|
|
7476
|
+
},
|
|
7141
7477
|
"structures": {
|
|
7142
7478
|
"anyOf": [
|
|
7143
7479
|
{
|
|
@@ -7483,8 +7819,8 @@
|
|
|
7483
7819
|
},
|
|
7484
7820
|
"options": {
|
|
7485
7821
|
"$ref": "#/definitions/RangeInputOptions",
|
|
7486
|
-
"description": "Options that are specific to
|
|
7487
|
-
"markdownDescription": "Options that are specific to
|
|
7822
|
+
"description": "Options that are specific to Range Inputs.",
|
|
7823
|
+
"markdownDescription": "Options that are specific to Range Inputs."
|
|
7488
7824
|
},
|
|
7489
7825
|
"type": {
|
|
7490
7826
|
"const": "range",
|
|
@@ -7512,16 +7848,21 @@
|
|
|
7512
7848
|
},
|
|
7513
7849
|
"max": {
|
|
7514
7850
|
"default": 10,
|
|
7515
|
-
"description": "
|
|
7516
|
-
"markdownDescription": "
|
|
7851
|
+
"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.",
|
|
7852
|
+
"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.",
|
|
7517
7853
|
"type": "number"
|
|
7518
7854
|
},
|
|
7519
7855
|
"min": {
|
|
7520
7856
|
"default": 0,
|
|
7521
|
-
"description": "
|
|
7522
|
-
"markdownDescription": "
|
|
7857
|
+
"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.",
|
|
7858
|
+
"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.",
|
|
7523
7859
|
"type": "number"
|
|
7524
7860
|
},
|
|
7861
|
+
"required": {
|
|
7862
|
+
"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).",
|
|
7863
|
+
"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).",
|
|
7864
|
+
"type": "boolean"
|
|
7865
|
+
},
|
|
7525
7866
|
"step": {
|
|
7526
7867
|
"default": 1,
|
|
7527
7868
|
"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`.",
|
|
@@ -7831,8 +8172,8 @@
|
|
|
7831
8172
|
},
|
|
7832
8173
|
"options": {
|
|
7833
8174
|
"$ref": "#/definitions/RichTextInputOptions",
|
|
7834
|
-
"description": "Options that are specific to
|
|
7835
|
-
"markdownDescription": "Options that are specific to
|
|
8175
|
+
"description": "Options that are specific to Rich Text Inputs.",
|
|
8176
|
+
"markdownDescription": "Options that are specific to Rich Text Inputs."
|
|
7836
8177
|
},
|
|
7837
8178
|
"type": {
|
|
7838
8179
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -8014,6 +8355,11 @@
|
|
|
8014
8355
|
"markdownDescription": "Enables a control to create hyperlinks around selected text.",
|
|
8015
8356
|
"type": "boolean"
|
|
8016
8357
|
},
|
|
8358
|
+
"max_length": {
|
|
8359
|
+
"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.",
|
|
8360
|
+
"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.",
|
|
8361
|
+
"type": "number"
|
|
8362
|
+
},
|
|
8017
8363
|
"mime_type": {
|
|
8018
8364
|
"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.",
|
|
8019
8365
|
"enum": [
|
|
@@ -8024,6 +8370,11 @@
|
|
|
8024
8370
|
"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.",
|
|
8025
8371
|
"type": "string"
|
|
8026
8372
|
},
|
|
8373
|
+
"min_length": {
|
|
8374
|
+
"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.",
|
|
8375
|
+
"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.",
|
|
8376
|
+
"type": "number"
|
|
8377
|
+
},
|
|
8027
8378
|
"numberedlist": {
|
|
8028
8379
|
"default": true,
|
|
8029
8380
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8041,6 +8392,60 @@
|
|
|
8041
8392
|
"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`.",
|
|
8042
8393
|
"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`."
|
|
8043
8394
|
},
|
|
8395
|
+
"pattern": {
|
|
8396
|
+
"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.",
|
|
8397
|
+
"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.",
|
|
8398
|
+
"type": "string"
|
|
8399
|
+
},
|
|
8400
|
+
"pattern_flags": {
|
|
8401
|
+
"additionalProperties": false,
|
|
8402
|
+
"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.",
|
|
8403
|
+
"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.",
|
|
8404
|
+
"properties": {
|
|
8405
|
+
"dot_all": {
|
|
8406
|
+
"default": false,
|
|
8407
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8408
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8409
|
+
"type": "boolean"
|
|
8410
|
+
},
|
|
8411
|
+
"global": {
|
|
8412
|
+
"default": false,
|
|
8413
|
+
"description": "`g` - Search globally.",
|
|
8414
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8415
|
+
"type": "boolean"
|
|
8416
|
+
},
|
|
8417
|
+
"ignore_case": {
|
|
8418
|
+
"default": false,
|
|
8419
|
+
"description": "`i` - Case-insensitive.",
|
|
8420
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8421
|
+
"type": "boolean"
|
|
8422
|
+
},
|
|
8423
|
+
"multiline": {
|
|
8424
|
+
"default": false,
|
|
8425
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8426
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8427
|
+
"type": "boolean"
|
|
8428
|
+
},
|
|
8429
|
+
"unicode": {
|
|
8430
|
+
"default": false,
|
|
8431
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8432
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8433
|
+
"type": "boolean"
|
|
8434
|
+
},
|
|
8435
|
+
"unicode_sets": {
|
|
8436
|
+
"default": false,
|
|
8437
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8438
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8439
|
+
"type": "boolean"
|
|
8440
|
+
}
|
|
8441
|
+
},
|
|
8442
|
+
"type": "object"
|
|
8443
|
+
},
|
|
8444
|
+
"pattern_message": {
|
|
8445
|
+
"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.",
|
|
8446
|
+
"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.",
|
|
8447
|
+
"type": "string"
|
|
8448
|
+
},
|
|
8044
8449
|
"prevent_resize_existing_files": {
|
|
8045
8450
|
"default": false,
|
|
8046
8451
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
@@ -8064,6 +8469,11 @@
|
|
|
8064
8469
|
"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.",
|
|
8065
8470
|
"type": "boolean"
|
|
8066
8471
|
},
|
|
8472
|
+
"required": {
|
|
8473
|
+
"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).",
|
|
8474
|
+
"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).",
|
|
8475
|
+
"type": "boolean"
|
|
8476
|
+
},
|
|
8067
8477
|
"resize_style": {
|
|
8068
8478
|
"default": "contain",
|
|
8069
8479
|
"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.",
|
|
@@ -8340,8 +8750,8 @@
|
|
|
8340
8750
|
},
|
|
8341
8751
|
"options": {
|
|
8342
8752
|
"additionalProperties": false,
|
|
8343
|
-
"description": "Options that are specific to
|
|
8344
|
-
"markdownDescription": "Options that are specific to
|
|
8753
|
+
"description": "Options that are specific to Select Inputs.",
|
|
8754
|
+
"markdownDescription": "Options that are specific to Select Inputs.",
|
|
8345
8755
|
"properties": {
|
|
8346
8756
|
"allow_create": {
|
|
8347
8757
|
"default": false,
|
|
@@ -8364,6 +8774,70 @@
|
|
|
8364
8774
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8365
8775
|
"type": "string"
|
|
8366
8776
|
},
|
|
8777
|
+
"max_length": {
|
|
8778
|
+
"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.",
|
|
8779
|
+
"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.",
|
|
8780
|
+
"type": "number"
|
|
8781
|
+
},
|
|
8782
|
+
"min_length": {
|
|
8783
|
+
"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.",
|
|
8784
|
+
"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.",
|
|
8785
|
+
"type": "number"
|
|
8786
|
+
},
|
|
8787
|
+
"pattern": {
|
|
8788
|
+
"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.",
|
|
8789
|
+
"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.",
|
|
8790
|
+
"type": "string"
|
|
8791
|
+
},
|
|
8792
|
+
"pattern_flags": {
|
|
8793
|
+
"additionalProperties": false,
|
|
8794
|
+
"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.",
|
|
8795
|
+
"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.",
|
|
8796
|
+
"properties": {
|
|
8797
|
+
"dot_all": {
|
|
8798
|
+
"default": false,
|
|
8799
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8800
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8801
|
+
"type": "boolean"
|
|
8802
|
+
},
|
|
8803
|
+
"global": {
|
|
8804
|
+
"default": false,
|
|
8805
|
+
"description": "`g` - Search globally.",
|
|
8806
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8807
|
+
"type": "boolean"
|
|
8808
|
+
},
|
|
8809
|
+
"ignore_case": {
|
|
8810
|
+
"default": false,
|
|
8811
|
+
"description": "`i` - Case-insensitive.",
|
|
8812
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8813
|
+
"type": "boolean"
|
|
8814
|
+
},
|
|
8815
|
+
"multiline": {
|
|
8816
|
+
"default": false,
|
|
8817
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8818
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8819
|
+
"type": "boolean"
|
|
8820
|
+
},
|
|
8821
|
+
"unicode": {
|
|
8822
|
+
"default": false,
|
|
8823
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8824
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8825
|
+
"type": "boolean"
|
|
8826
|
+
},
|
|
8827
|
+
"unicode_sets": {
|
|
8828
|
+
"default": false,
|
|
8829
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8830
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8831
|
+
"type": "boolean"
|
|
8832
|
+
}
|
|
8833
|
+
},
|
|
8834
|
+
"type": "object"
|
|
8835
|
+
},
|
|
8836
|
+
"pattern_message": {
|
|
8837
|
+
"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.",
|
|
8838
|
+
"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.",
|
|
8839
|
+
"type": "string"
|
|
8840
|
+
},
|
|
8367
8841
|
"picker_preview": {
|
|
8368
8842
|
"$ref": "#/definitions/Preview",
|
|
8369
8843
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -8385,6 +8859,11 @@
|
|
|
8385
8859
|
"description": "Changes the way items are previewed in the CMS.",
|
|
8386
8860
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8387
8861
|
},
|
|
8862
|
+
"required": {
|
|
8863
|
+
"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).",
|
|
8864
|
+
"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).",
|
|
8865
|
+
"type": "boolean"
|
|
8866
|
+
},
|
|
8388
8867
|
"value_key": {
|
|
8389
8868
|
"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.",
|
|
8390
8869
|
"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.",
|
|
@@ -9720,8 +10199,8 @@
|
|
|
9720
10199
|
},
|
|
9721
10200
|
"options": {
|
|
9722
10201
|
"$ref": "#/definitions/TextInputOptions",
|
|
9723
|
-
"description": "Options that are specific to
|
|
9724
|
-
"markdownDescription": "Options that are specific to
|
|
10202
|
+
"description": "Options that are specific to Text Inputs.",
|
|
10203
|
+
"markdownDescription": "Options that are specific to Text Inputs."
|
|
9725
10204
|
},
|
|
9726
10205
|
"type": {
|
|
9727
10206
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -9761,10 +10240,79 @@
|
|
|
9761
10240
|
"description": "Icon shown beside the input.",
|
|
9762
10241
|
"markdownDescription": "Icon shown beside the input."
|
|
9763
10242
|
},
|
|
10243
|
+
"max_length": {
|
|
10244
|
+
"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.",
|
|
10245
|
+
"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.",
|
|
10246
|
+
"type": "number"
|
|
10247
|
+
},
|
|
10248
|
+
"min_length": {
|
|
10249
|
+
"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.",
|
|
10250
|
+
"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.",
|
|
10251
|
+
"type": "number"
|
|
10252
|
+
},
|
|
10253
|
+
"pattern": {
|
|
10254
|
+
"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.",
|
|
10255
|
+
"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.",
|
|
10256
|
+
"type": "string"
|
|
10257
|
+
},
|
|
10258
|
+
"pattern_flags": {
|
|
10259
|
+
"additionalProperties": false,
|
|
10260
|
+
"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.",
|
|
10261
|
+
"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.",
|
|
10262
|
+
"properties": {
|
|
10263
|
+
"dot_all": {
|
|
10264
|
+
"default": false,
|
|
10265
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10266
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10267
|
+
"type": "boolean"
|
|
10268
|
+
},
|
|
10269
|
+
"global": {
|
|
10270
|
+
"default": false,
|
|
10271
|
+
"description": "`g` - Search globally.",
|
|
10272
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10273
|
+
"type": "boolean"
|
|
10274
|
+
},
|
|
10275
|
+
"ignore_case": {
|
|
10276
|
+
"default": false,
|
|
10277
|
+
"description": "`i` - Case-insensitive.",
|
|
10278
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10279
|
+
"type": "boolean"
|
|
10280
|
+
},
|
|
10281
|
+
"multiline": {
|
|
10282
|
+
"default": false,
|
|
10283
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10284
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10285
|
+
"type": "boolean"
|
|
10286
|
+
},
|
|
10287
|
+
"unicode": {
|
|
10288
|
+
"default": false,
|
|
10289
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10290
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10291
|
+
"type": "boolean"
|
|
10292
|
+
},
|
|
10293
|
+
"unicode_sets": {
|
|
10294
|
+
"default": false,
|
|
10295
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10296
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10297
|
+
"type": "boolean"
|
|
10298
|
+
}
|
|
10299
|
+
},
|
|
10300
|
+
"type": "object"
|
|
10301
|
+
},
|
|
10302
|
+
"pattern_message": {
|
|
10303
|
+
"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.",
|
|
10304
|
+
"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.",
|
|
10305
|
+
"type": "string"
|
|
10306
|
+
},
|
|
9764
10307
|
"placeholder": {
|
|
9765
10308
|
"description": "Text shown when this input has no value.",
|
|
9766
10309
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9767
10310
|
"type": "string"
|
|
10311
|
+
},
|
|
10312
|
+
"required": {
|
|
10313
|
+
"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).",
|
|
10314
|
+
"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).",
|
|
10315
|
+
"type": "boolean"
|
|
9768
10316
|
}
|
|
9769
10317
|
},
|
|
9770
10318
|
"type": "object"
|
|
@@ -9851,8 +10399,8 @@
|
|
|
9851
10399
|
},
|
|
9852
10400
|
"options": {
|
|
9853
10401
|
"$ref": "#/definitions/TextareaInputOptions",
|
|
9854
|
-
"description": "Options that are specific to
|
|
9855
|
-
"markdownDescription": "Options that are specific to
|
|
10402
|
+
"description": "Options that are specific to Textarea Inputs.",
|
|
10403
|
+
"markdownDescription": "Options that are specific to Textarea Inputs."
|
|
9856
10404
|
},
|
|
9857
10405
|
"type": {
|
|
9858
10406
|
"const": "textarea",
|
|
@@ -9883,11 +10431,80 @@
|
|
|
9883
10431
|
"description": "Icon shown beside the input.",
|
|
9884
10432
|
"markdownDescription": "Icon shown beside the input."
|
|
9885
10433
|
},
|
|
10434
|
+
"max_length": {
|
|
10435
|
+
"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.",
|
|
10436
|
+
"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.",
|
|
10437
|
+
"type": "number"
|
|
10438
|
+
},
|
|
10439
|
+
"min_length": {
|
|
10440
|
+
"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.",
|
|
10441
|
+
"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.",
|
|
10442
|
+
"type": "number"
|
|
10443
|
+
},
|
|
10444
|
+
"pattern": {
|
|
10445
|
+
"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.",
|
|
10446
|
+
"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.",
|
|
10447
|
+
"type": "string"
|
|
10448
|
+
},
|
|
10449
|
+
"pattern_flags": {
|
|
10450
|
+
"additionalProperties": false,
|
|
10451
|
+
"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.",
|
|
10452
|
+
"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.",
|
|
10453
|
+
"properties": {
|
|
10454
|
+
"dot_all": {
|
|
10455
|
+
"default": false,
|
|
10456
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10457
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10458
|
+
"type": "boolean"
|
|
10459
|
+
},
|
|
10460
|
+
"global": {
|
|
10461
|
+
"default": false,
|
|
10462
|
+
"description": "`g` - Search globally.",
|
|
10463
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10464
|
+
"type": "boolean"
|
|
10465
|
+
},
|
|
10466
|
+
"ignore_case": {
|
|
10467
|
+
"default": false,
|
|
10468
|
+
"description": "`i` - Case-insensitive.",
|
|
10469
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10470
|
+
"type": "boolean"
|
|
10471
|
+
},
|
|
10472
|
+
"multiline": {
|
|
10473
|
+
"default": false,
|
|
10474
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10475
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10476
|
+
"type": "boolean"
|
|
10477
|
+
},
|
|
10478
|
+
"unicode": {
|
|
10479
|
+
"default": false,
|
|
10480
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10481
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10482
|
+
"type": "boolean"
|
|
10483
|
+
},
|
|
10484
|
+
"unicode_sets": {
|
|
10485
|
+
"default": false,
|
|
10486
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10487
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10488
|
+
"type": "boolean"
|
|
10489
|
+
}
|
|
10490
|
+
},
|
|
10491
|
+
"type": "object"
|
|
10492
|
+
},
|
|
10493
|
+
"pattern_message": {
|
|
10494
|
+
"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.",
|
|
10495
|
+
"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.",
|
|
10496
|
+
"type": "string"
|
|
10497
|
+
},
|
|
9886
10498
|
"placeholder": {
|
|
9887
10499
|
"description": "Text shown when this input has no value.",
|
|
9888
10500
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9889
10501
|
"type": "string"
|
|
9890
10502
|
},
|
|
10503
|
+
"required": {
|
|
10504
|
+
"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).",
|
|
10505
|
+
"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).",
|
|
10506
|
+
"type": "boolean"
|
|
10507
|
+
},
|
|
9891
10508
|
"show_count": {
|
|
9892
10509
|
"default": false,
|
|
9893
10510
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10021,9 +10638,26 @@
|
|
|
10021
10638
|
"type": "string"
|
|
10022
10639
|
},
|
|
10023
10640
|
"options": {
|
|
10024
|
-
"
|
|
10641
|
+
"additionalProperties": false,
|
|
10025
10642
|
"description": "Options that are specific to Time inputs.",
|
|
10026
|
-
"markdownDescription": "Options that are specific to Time inputs."
|
|
10643
|
+
"markdownDescription": "Options that are specific to Time inputs.",
|
|
10644
|
+
"properties": {
|
|
10645
|
+
"empty_type": {
|
|
10646
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10647
|
+
"enum": [
|
|
10648
|
+
"null",
|
|
10649
|
+
"string"
|
|
10650
|
+
],
|
|
10651
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10652
|
+
"type": "string"
|
|
10653
|
+
},
|
|
10654
|
+
"required": {
|
|
10655
|
+
"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).",
|
|
10656
|
+
"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).",
|
|
10657
|
+
"type": "boolean"
|
|
10658
|
+
}
|
|
10659
|
+
},
|
|
10660
|
+
"type": "object"
|
|
10027
10661
|
},
|
|
10028
10662
|
"type": {
|
|
10029
10663
|
"const": "time",
|
|
@@ -10909,6 +11543,11 @@
|
|
|
10909
11543
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10910
11544
|
"type": "boolean"
|
|
10911
11545
|
},
|
|
11546
|
+
"max_length": {
|
|
11547
|
+
"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.",
|
|
11548
|
+
"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.",
|
|
11549
|
+
"type": "number"
|
|
11550
|
+
},
|
|
10912
11551
|
"mime_type": {
|
|
10913
11552
|
"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.",
|
|
10914
11553
|
"enum": [
|
|
@@ -10919,17 +11558,81 @@
|
|
|
10919
11558
|
"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.",
|
|
10920
11559
|
"type": "string"
|
|
10921
11560
|
},
|
|
11561
|
+
"min_length": {
|
|
11562
|
+
"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.",
|
|
11563
|
+
"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.",
|
|
11564
|
+
"type": "number"
|
|
11565
|
+
},
|
|
10922
11566
|
"paths": {
|
|
10923
11567
|
"$ref": "#/definitions/Paths",
|
|
10924
11568
|
"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`.",
|
|
10925
11569
|
"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`."
|
|
10926
11570
|
},
|
|
11571
|
+
"pattern": {
|
|
11572
|
+
"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.",
|
|
11573
|
+
"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.",
|
|
11574
|
+
"type": "string"
|
|
11575
|
+
},
|
|
11576
|
+
"pattern_flags": {
|
|
11577
|
+
"additionalProperties": false,
|
|
11578
|
+
"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.",
|
|
11579
|
+
"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.",
|
|
11580
|
+
"properties": {
|
|
11581
|
+
"dot_all": {
|
|
11582
|
+
"default": false,
|
|
11583
|
+
"description": "`s` - `.` matches newline characters.",
|
|
11584
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
11585
|
+
"type": "boolean"
|
|
11586
|
+
},
|
|
11587
|
+
"global": {
|
|
11588
|
+
"default": false,
|
|
11589
|
+
"description": "`g` - Search globally.",
|
|
11590
|
+
"markdownDescription": "`g` - Search globally.",
|
|
11591
|
+
"type": "boolean"
|
|
11592
|
+
},
|
|
11593
|
+
"ignore_case": {
|
|
11594
|
+
"default": false,
|
|
11595
|
+
"description": "`i` - Case-insensitive.",
|
|
11596
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
11597
|
+
"type": "boolean"
|
|
11598
|
+
},
|
|
11599
|
+
"multiline": {
|
|
11600
|
+
"default": false,
|
|
11601
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11602
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11603
|
+
"type": "boolean"
|
|
11604
|
+
},
|
|
11605
|
+
"unicode": {
|
|
11606
|
+
"default": false,
|
|
11607
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11608
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11609
|
+
"type": "boolean"
|
|
11610
|
+
},
|
|
11611
|
+
"unicode_sets": {
|
|
11612
|
+
"default": false,
|
|
11613
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
11614
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
11615
|
+
"type": "boolean"
|
|
11616
|
+
}
|
|
11617
|
+
},
|
|
11618
|
+
"type": "object"
|
|
11619
|
+
},
|
|
11620
|
+
"pattern_message": {
|
|
11621
|
+
"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.",
|
|
11622
|
+
"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.",
|
|
11623
|
+
"type": "string"
|
|
11624
|
+
},
|
|
10927
11625
|
"prevent_resize_existing_files": {
|
|
10928
11626
|
"default": false,
|
|
10929
11627
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10930
11628
|
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10931
11629
|
"type": "boolean"
|
|
10932
11630
|
},
|
|
11631
|
+
"required": {
|
|
11632
|
+
"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).",
|
|
11633
|
+
"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).",
|
|
11634
|
+
"type": "boolean"
|
|
11635
|
+
},
|
|
10933
11636
|
"resize_style": {
|
|
10934
11637
|
"default": "contain",
|
|
10935
11638
|
"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.",
|
|
@@ -10974,21 +11677,6 @@
|
|
|
10974
11677
|
},
|
|
10975
11678
|
"type": "object"
|
|
10976
11679
|
},
|
|
10977
|
-
"WithEmptyTypeText": {
|
|
10978
|
-
"additionalProperties": false,
|
|
10979
|
-
"properties": {
|
|
10980
|
-
"empty_type": {
|
|
10981
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10982
|
-
"enum": [
|
|
10983
|
-
"null",
|
|
10984
|
-
"string"
|
|
10985
|
-
],
|
|
10986
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10987
|
-
"type": "string"
|
|
10988
|
-
}
|
|
10989
|
-
},
|
|
10990
|
-
"type": "object"
|
|
10991
|
-
},
|
|
10992
11680
|
"WithPaths": {
|
|
10993
11681
|
"additionalProperties": false,
|
|
10994
11682
|
"properties": {
|