@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.",
|
|
@@ -6747,8 +7073,8 @@
|
|
|
6747
7073
|
},
|
|
6748
7074
|
"options": {
|
|
6749
7075
|
"additionalProperties": false,
|
|
6750
|
-
"description": "Options that are specific to
|
|
6751
|
-
"markdownDescription": "Options that are specific to
|
|
7076
|
+
"description": "Options that are specific to Multichoice Inputs.",
|
|
7077
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs.",
|
|
6752
7078
|
"properties": {
|
|
6753
7079
|
"allow_empty": {
|
|
6754
7080
|
"default": true,
|
|
@@ -6765,6 +7091,16 @@
|
|
|
6765
7091
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6766
7092
|
"type": "string"
|
|
6767
7093
|
},
|
|
7094
|
+
"max_items": {
|
|
7095
|
+
"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.",
|
|
7096
|
+
"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.",
|
|
7097
|
+
"type": "number"
|
|
7098
|
+
},
|
|
7099
|
+
"min_items": {
|
|
7100
|
+
"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.",
|
|
7101
|
+
"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.",
|
|
7102
|
+
"type": "number"
|
|
7103
|
+
},
|
|
6768
7104
|
"picker_preview": {
|
|
6769
7105
|
"$ref": "#/definitions/Preview",
|
|
6770
7106
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -6786,6 +7122,16 @@
|
|
|
6786
7122
|
"description": "Changes the way items are previewed in the CMS.",
|
|
6787
7123
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6788
7124
|
},
|
|
7125
|
+
"required": {
|
|
7126
|
+
"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).",
|
|
7127
|
+
"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).",
|
|
7128
|
+
"type": "boolean"
|
|
7129
|
+
},
|
|
7130
|
+
"unique_on": {
|
|
7131
|
+
"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.",
|
|
7132
|
+
"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.",
|
|
7133
|
+
"type": "string"
|
|
7134
|
+
},
|
|
6789
7135
|
"value_key": {
|
|
6790
7136
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
6791
7137
|
"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.",
|
|
@@ -6910,82 +7256,9 @@
|
|
|
6910
7256
|
"type": "string"
|
|
6911
7257
|
},
|
|
6912
7258
|
"options": {
|
|
6913
|
-
"
|
|
6914
|
-
"description": "Options that are specific to
|
|
6915
|
-
"markdownDescription": "Options that are specific to
|
|
6916
|
-
"properties": {
|
|
6917
|
-
"allow_create": {
|
|
6918
|
-
"default": false,
|
|
6919
|
-
"description": "Allows new text values to be created at edit time.",
|
|
6920
|
-
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
6921
|
-
"type": "boolean"
|
|
6922
|
-
},
|
|
6923
|
-
"allow_empty": {
|
|
6924
|
-
"default": true,
|
|
6925
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6926
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6927
|
-
"type": "boolean"
|
|
6928
|
-
},
|
|
6929
|
-
"empty_type": {
|
|
6930
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6931
|
-
"enum": [
|
|
6932
|
-
"null",
|
|
6933
|
-
"array"
|
|
6934
|
-
],
|
|
6935
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6936
|
-
"type": "string"
|
|
6937
|
-
},
|
|
6938
|
-
"picker_preview": {
|
|
6939
|
-
"$ref": "#/definitions/Preview",
|
|
6940
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6941
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6942
|
-
},
|
|
6943
|
-
"picker_view": {
|
|
6944
|
-
"description": "Controls how selectable options are rendered.",
|
|
6945
|
-
"enum": [
|
|
6946
|
-
"card",
|
|
6947
|
-
"text",
|
|
6948
|
-
"gallery",
|
|
6949
|
-
"gallery-left"
|
|
6950
|
-
],
|
|
6951
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6952
|
-
"type": "string"
|
|
6953
|
-
},
|
|
6954
|
-
"preview": {
|
|
6955
|
-
"$ref": "#/definitions/Preview",
|
|
6956
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
6957
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6958
|
-
},
|
|
6959
|
-
"value_key": {
|
|
6960
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
6961
|
-
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
6962
|
-
"type": "string"
|
|
6963
|
-
},
|
|
6964
|
-
"values": {
|
|
6965
|
-
"anyOf": [
|
|
6966
|
-
{
|
|
6967
|
-
"type": "string"
|
|
6968
|
-
},
|
|
6969
|
-
{
|
|
6970
|
-
"$ref": "#/definitions/SelectValues"
|
|
6971
|
-
}
|
|
6972
|
-
],
|
|
6973
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
6974
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
6975
|
-
},
|
|
6976
|
-
"view": {
|
|
6977
|
-
"description": "Controls how selected items are rendered.",
|
|
6978
|
-
"enum": [
|
|
6979
|
-
"card",
|
|
6980
|
-
"text",
|
|
6981
|
-
"gallery",
|
|
6982
|
-
"gallery-left"
|
|
6983
|
-
],
|
|
6984
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
6985
|
-
"type": "string"
|
|
6986
|
-
}
|
|
6987
|
-
},
|
|
6988
|
-
"type": "object"
|
|
7259
|
+
"$ref": "#/definitions/MultiselectInputOptions",
|
|
7260
|
+
"description": "Options that are specific to Multiselect Inputs.",
|
|
7261
|
+
"markdownDescription": "Options that are specific to Multiselect Inputs."
|
|
6989
7262
|
},
|
|
6990
7263
|
"type": {
|
|
6991
7264
|
"const": "multiselect",
|
|
@@ -6999,6 +7272,59 @@
|
|
|
6999
7272
|
],
|
|
7000
7273
|
"type": "object"
|
|
7001
7274
|
},
|
|
7275
|
+
"MultiselectInputOptions": {
|
|
7276
|
+
"additionalProperties": false,
|
|
7277
|
+
"properties": {
|
|
7278
|
+
"disable_add": {
|
|
7279
|
+
"default": false,
|
|
7280
|
+
"description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
|
|
7281
|
+
"markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
|
|
7282
|
+
"type": "boolean"
|
|
7283
|
+
},
|
|
7284
|
+
"disable_remove": {
|
|
7285
|
+
"default": false,
|
|
7286
|
+
"description": "Hides the context menu actions on each array item for removing them.",
|
|
7287
|
+
"markdownDescription": "Hides the context menu actions on each array item for removing them.",
|
|
7288
|
+
"type": "boolean"
|
|
7289
|
+
},
|
|
7290
|
+
"disable_reorder": {
|
|
7291
|
+
"default": false,
|
|
7292
|
+
"description": "Hides the controls on each array item for moving them.",
|
|
7293
|
+
"markdownDescription": "Hides the controls on each array item for moving them.",
|
|
7294
|
+
"type": "boolean"
|
|
7295
|
+
},
|
|
7296
|
+
"empty_type": {
|
|
7297
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7298
|
+
"enum": [
|
|
7299
|
+
"null",
|
|
7300
|
+
"array"
|
|
7301
|
+
],
|
|
7302
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7303
|
+
"type": "string"
|
|
7304
|
+
},
|
|
7305
|
+
"max_items": {
|
|
7306
|
+
"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.",
|
|
7307
|
+
"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.",
|
|
7308
|
+
"type": "number"
|
|
7309
|
+
},
|
|
7310
|
+
"min_items": {
|
|
7311
|
+
"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.",
|
|
7312
|
+
"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.",
|
|
7313
|
+
"type": "number"
|
|
7314
|
+
},
|
|
7315
|
+
"required": {
|
|
7316
|
+
"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).",
|
|
7317
|
+
"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).",
|
|
7318
|
+
"type": "boolean"
|
|
7319
|
+
},
|
|
7320
|
+
"unique_on": {
|
|
7321
|
+
"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.",
|
|
7322
|
+
"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.",
|
|
7323
|
+
"type": "string"
|
|
7324
|
+
}
|
|
7325
|
+
},
|
|
7326
|
+
"type": "object"
|
|
7327
|
+
},
|
|
7002
7328
|
"NumberInput": {
|
|
7003
7329
|
"additionalProperties": false,
|
|
7004
7330
|
"properties": {
|
|
@@ -7081,8 +7407,8 @@
|
|
|
7081
7407
|
},
|
|
7082
7408
|
"options": {
|
|
7083
7409
|
"$ref": "#/definitions/NumberInputOptions",
|
|
7084
|
-
"description": "Options that are specific to this
|
|
7085
|
-
"markdownDescription": "Options that are specific to this
|
|
7410
|
+
"description": "Options that are specific to this Number Inputs.",
|
|
7411
|
+
"markdownDescription": "Options that are specific to this Number Inputs."
|
|
7086
7412
|
},
|
|
7087
7413
|
"type": {
|
|
7088
7414
|
"const": "number",
|
|
@@ -7109,15 +7435,20 @@
|
|
|
7109
7435
|
"type": "string"
|
|
7110
7436
|
},
|
|
7111
7437
|
"max": {
|
|
7112
|
-
"description": "
|
|
7113
|
-
"markdownDescription": "
|
|
7438
|
+
"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.",
|
|
7439
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.\n\nThis key has no default.",
|
|
7114
7440
|
"type": "number"
|
|
7115
7441
|
},
|
|
7116
7442
|
"min": {
|
|
7117
|
-
"description": "
|
|
7118
|
-
"markdownDescription": "
|
|
7443
|
+
"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.",
|
|
7444
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.\n\nThis key has no default.",
|
|
7119
7445
|
"type": "number"
|
|
7120
7446
|
},
|
|
7447
|
+
"required": {
|
|
7448
|
+
"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).",
|
|
7449
|
+
"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).",
|
|
7450
|
+
"type": "boolean"
|
|
7451
|
+
},
|
|
7121
7452
|
"step": {
|
|
7122
7453
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
7123
7454
|
"markdownDescription": "A number that specifies the granularity that the value must adhere to, or the special value\nany, which allows any decimal value between `max` and `min`.",
|
|
@@ -7208,8 +7539,8 @@
|
|
|
7208
7539
|
},
|
|
7209
7540
|
"options": {
|
|
7210
7541
|
"$ref": "#/definitions/ObjectInputOptions",
|
|
7211
|
-
"description": "Options that are specific to
|
|
7212
|
-
"markdownDescription": "Options that are specific to
|
|
7542
|
+
"description": "Options that are specific to Object Inputs.",
|
|
7543
|
+
"markdownDescription": "Options that are specific to Object Inputs."
|
|
7213
7544
|
},
|
|
7214
7545
|
"type": {
|
|
7215
7546
|
"const": "object",
|
|
@@ -7334,6 +7665,11 @@
|
|
|
7334
7665
|
"description": "Changes the way items are previewed in the CMS.",
|
|
7335
7666
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7336
7667
|
},
|
|
7668
|
+
"required": {
|
|
7669
|
+
"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).",
|
|
7670
|
+
"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).",
|
|
7671
|
+
"type": "boolean"
|
|
7672
|
+
},
|
|
7337
7673
|
"structures": {
|
|
7338
7674
|
"anyOf": [
|
|
7339
7675
|
{
|
|
@@ -7679,8 +8015,8 @@
|
|
|
7679
8015
|
},
|
|
7680
8016
|
"options": {
|
|
7681
8017
|
"$ref": "#/definitions/RangeInputOptions",
|
|
7682
|
-
"description": "Options that are specific to
|
|
7683
|
-
"markdownDescription": "Options that are specific to
|
|
8018
|
+
"description": "Options that are specific to Range Inputs.",
|
|
8019
|
+
"markdownDescription": "Options that are specific to Range Inputs."
|
|
7684
8020
|
},
|
|
7685
8021
|
"type": {
|
|
7686
8022
|
"const": "range",
|
|
@@ -7708,16 +8044,21 @@
|
|
|
7708
8044
|
},
|
|
7709
8045
|
"max": {
|
|
7710
8046
|
"default": 10,
|
|
7711
|
-
"description": "
|
|
7712
|
-
"markdownDescription": "
|
|
8047
|
+
"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.",
|
|
8048
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.",
|
|
7713
8049
|
"type": "number"
|
|
7714
8050
|
},
|
|
7715
8051
|
"min": {
|
|
7716
8052
|
"default": 0,
|
|
7717
|
-
"description": "
|
|
7718
|
-
"markdownDescription": "
|
|
8053
|
+
"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.",
|
|
8054
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.",
|
|
7719
8055
|
"type": "number"
|
|
7720
8056
|
},
|
|
8057
|
+
"required": {
|
|
8058
|
+
"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).",
|
|
8059
|
+
"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).",
|
|
8060
|
+
"type": "boolean"
|
|
8061
|
+
},
|
|
7721
8062
|
"step": {
|
|
7722
8063
|
"default": 1,
|
|
7723
8064
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
@@ -7809,8 +8150,8 @@
|
|
|
7809
8150
|
},
|
|
7810
8151
|
"options": {
|
|
7811
8152
|
"$ref": "#/definitions/RichTextInputOptions",
|
|
7812
|
-
"description": "Options that are specific to
|
|
7813
|
-
"markdownDescription": "Options that are specific to
|
|
8153
|
+
"description": "Options that are specific to Rich Text Inputs.",
|
|
8154
|
+
"markdownDescription": "Options that are specific to Rich Text Inputs."
|
|
7814
8155
|
},
|
|
7815
8156
|
"type": {
|
|
7816
8157
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -7992,6 +8333,11 @@
|
|
|
7992
8333
|
"markdownDescription": "Enables a control to create hyperlinks around selected text.",
|
|
7993
8334
|
"type": "boolean"
|
|
7994
8335
|
},
|
|
8336
|
+
"max_length": {
|
|
8337
|
+
"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.",
|
|
8338
|
+
"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.",
|
|
8339
|
+
"type": "number"
|
|
8340
|
+
},
|
|
7995
8341
|
"mime_type": {
|
|
7996
8342
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
7997
8343
|
"enum": [
|
|
@@ -8002,6 +8348,11 @@
|
|
|
8002
8348
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
8003
8349
|
"type": "string"
|
|
8004
8350
|
},
|
|
8351
|
+
"min_length": {
|
|
8352
|
+
"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.",
|
|
8353
|
+
"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.",
|
|
8354
|
+
"type": "number"
|
|
8355
|
+
},
|
|
8005
8356
|
"numberedlist": {
|
|
8006
8357
|
"default": true,
|
|
8007
8358
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8019,6 +8370,60 @@
|
|
|
8019
8370
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
8020
8371
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
8021
8372
|
},
|
|
8373
|
+
"pattern": {
|
|
8374
|
+
"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.",
|
|
8375
|
+
"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.",
|
|
8376
|
+
"type": "string"
|
|
8377
|
+
},
|
|
8378
|
+
"pattern_flags": {
|
|
8379
|
+
"additionalProperties": false,
|
|
8380
|
+
"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.",
|
|
8381
|
+
"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.",
|
|
8382
|
+
"properties": {
|
|
8383
|
+
"dot_all": {
|
|
8384
|
+
"default": false,
|
|
8385
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8386
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8387
|
+
"type": "boolean"
|
|
8388
|
+
},
|
|
8389
|
+
"global": {
|
|
8390
|
+
"default": false,
|
|
8391
|
+
"description": "`g` - Search globally.",
|
|
8392
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8393
|
+
"type": "boolean"
|
|
8394
|
+
},
|
|
8395
|
+
"ignore_case": {
|
|
8396
|
+
"default": false,
|
|
8397
|
+
"description": "`i` - Case-insensitive.",
|
|
8398
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8399
|
+
"type": "boolean"
|
|
8400
|
+
},
|
|
8401
|
+
"multiline": {
|
|
8402
|
+
"default": false,
|
|
8403
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8404
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8405
|
+
"type": "boolean"
|
|
8406
|
+
},
|
|
8407
|
+
"unicode": {
|
|
8408
|
+
"default": false,
|
|
8409
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8410
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8411
|
+
"type": "boolean"
|
|
8412
|
+
},
|
|
8413
|
+
"unicode_sets": {
|
|
8414
|
+
"default": false,
|
|
8415
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8416
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8417
|
+
"type": "boolean"
|
|
8418
|
+
}
|
|
8419
|
+
},
|
|
8420
|
+
"type": "object"
|
|
8421
|
+
},
|
|
8422
|
+
"pattern_message": {
|
|
8423
|
+
"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.",
|
|
8424
|
+
"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.",
|
|
8425
|
+
"type": "string"
|
|
8426
|
+
},
|
|
8022
8427
|
"prevent_resize_existing_files": {
|
|
8023
8428
|
"default": false,
|
|
8024
8429
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
@@ -8042,6 +8447,11 @@
|
|
|
8042
8447
|
"markdownDescription": "Enables the control to remove formatting from text. Applies to formatting from `bold`,\n`italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles\nor formatting.",
|
|
8043
8448
|
"type": "boolean"
|
|
8044
8449
|
},
|
|
8450
|
+
"required": {
|
|
8451
|
+
"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).",
|
|
8452
|
+
"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).",
|
|
8453
|
+
"type": "boolean"
|
|
8454
|
+
},
|
|
8045
8455
|
"resize_style": {
|
|
8046
8456
|
"default": "contain",
|
|
8047
8457
|
"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.",
|
|
@@ -8318,8 +8728,8 @@
|
|
|
8318
8728
|
},
|
|
8319
8729
|
"options": {
|
|
8320
8730
|
"additionalProperties": false,
|
|
8321
|
-
"description": "Options that are specific to
|
|
8322
|
-
"markdownDescription": "Options that are specific to
|
|
8731
|
+
"description": "Options that are specific to Select Inputs.",
|
|
8732
|
+
"markdownDescription": "Options that are specific to Select Inputs.",
|
|
8323
8733
|
"properties": {
|
|
8324
8734
|
"allow_create": {
|
|
8325
8735
|
"default": false,
|
|
@@ -8342,6 +8752,70 @@
|
|
|
8342
8752
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8343
8753
|
"type": "string"
|
|
8344
8754
|
},
|
|
8755
|
+
"max_length": {
|
|
8756
|
+
"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.",
|
|
8757
|
+
"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.",
|
|
8758
|
+
"type": "number"
|
|
8759
|
+
},
|
|
8760
|
+
"min_length": {
|
|
8761
|
+
"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.",
|
|
8762
|
+
"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.",
|
|
8763
|
+
"type": "number"
|
|
8764
|
+
},
|
|
8765
|
+
"pattern": {
|
|
8766
|
+
"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.",
|
|
8767
|
+
"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.",
|
|
8768
|
+
"type": "string"
|
|
8769
|
+
},
|
|
8770
|
+
"pattern_flags": {
|
|
8771
|
+
"additionalProperties": false,
|
|
8772
|
+
"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.",
|
|
8773
|
+
"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.",
|
|
8774
|
+
"properties": {
|
|
8775
|
+
"dot_all": {
|
|
8776
|
+
"default": false,
|
|
8777
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8778
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8779
|
+
"type": "boolean"
|
|
8780
|
+
},
|
|
8781
|
+
"global": {
|
|
8782
|
+
"default": false,
|
|
8783
|
+
"description": "`g` - Search globally.",
|
|
8784
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8785
|
+
"type": "boolean"
|
|
8786
|
+
},
|
|
8787
|
+
"ignore_case": {
|
|
8788
|
+
"default": false,
|
|
8789
|
+
"description": "`i` - Case-insensitive.",
|
|
8790
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8791
|
+
"type": "boolean"
|
|
8792
|
+
},
|
|
8793
|
+
"multiline": {
|
|
8794
|
+
"default": false,
|
|
8795
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8796
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8797
|
+
"type": "boolean"
|
|
8798
|
+
},
|
|
8799
|
+
"unicode": {
|
|
8800
|
+
"default": false,
|
|
8801
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8802
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8803
|
+
"type": "boolean"
|
|
8804
|
+
},
|
|
8805
|
+
"unicode_sets": {
|
|
8806
|
+
"default": false,
|
|
8807
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8808
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8809
|
+
"type": "boolean"
|
|
8810
|
+
}
|
|
8811
|
+
},
|
|
8812
|
+
"type": "object"
|
|
8813
|
+
},
|
|
8814
|
+
"pattern_message": {
|
|
8815
|
+
"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.",
|
|
8816
|
+
"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.",
|
|
8817
|
+
"type": "string"
|
|
8818
|
+
},
|
|
8345
8819
|
"picker_preview": {
|
|
8346
8820
|
"$ref": "#/definitions/Preview",
|
|
8347
8821
|
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
@@ -8363,6 +8837,11 @@
|
|
|
8363
8837
|
"description": "Changes the way items are previewed in the CMS.",
|
|
8364
8838
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8365
8839
|
},
|
|
8840
|
+
"required": {
|
|
8841
|
+
"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).",
|
|
8842
|
+
"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).",
|
|
8843
|
+
"type": "boolean"
|
|
8844
|
+
},
|
|
8366
8845
|
"value_key": {
|
|
8367
8846
|
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
8368
8847
|
"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.",
|
|
@@ -9698,8 +10177,8 @@
|
|
|
9698
10177
|
},
|
|
9699
10178
|
"options": {
|
|
9700
10179
|
"$ref": "#/definitions/TextInputOptions",
|
|
9701
|
-
"description": "Options that are specific to
|
|
9702
|
-
"markdownDescription": "Options that are specific to
|
|
10180
|
+
"description": "Options that are specific to Text Inputs.",
|
|
10181
|
+
"markdownDescription": "Options that are specific to Text Inputs."
|
|
9703
10182
|
},
|
|
9704
10183
|
"type": {
|
|
9705
10184
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -9739,10 +10218,79 @@
|
|
|
9739
10218
|
"description": "Icon shown beside the input.",
|
|
9740
10219
|
"markdownDescription": "Icon shown beside the input."
|
|
9741
10220
|
},
|
|
10221
|
+
"max_length": {
|
|
10222
|
+
"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.",
|
|
10223
|
+
"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.",
|
|
10224
|
+
"type": "number"
|
|
10225
|
+
},
|
|
10226
|
+
"min_length": {
|
|
10227
|
+
"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.",
|
|
10228
|
+
"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.",
|
|
10229
|
+
"type": "number"
|
|
10230
|
+
},
|
|
10231
|
+
"pattern": {
|
|
10232
|
+
"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.",
|
|
10233
|
+
"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.",
|
|
10234
|
+
"type": "string"
|
|
10235
|
+
},
|
|
10236
|
+
"pattern_flags": {
|
|
10237
|
+
"additionalProperties": false,
|
|
10238
|
+
"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.",
|
|
10239
|
+
"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.",
|
|
10240
|
+
"properties": {
|
|
10241
|
+
"dot_all": {
|
|
10242
|
+
"default": false,
|
|
10243
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10244
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10245
|
+
"type": "boolean"
|
|
10246
|
+
},
|
|
10247
|
+
"global": {
|
|
10248
|
+
"default": false,
|
|
10249
|
+
"description": "`g` - Search globally.",
|
|
10250
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10251
|
+
"type": "boolean"
|
|
10252
|
+
},
|
|
10253
|
+
"ignore_case": {
|
|
10254
|
+
"default": false,
|
|
10255
|
+
"description": "`i` - Case-insensitive.",
|
|
10256
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10257
|
+
"type": "boolean"
|
|
10258
|
+
},
|
|
10259
|
+
"multiline": {
|
|
10260
|
+
"default": false,
|
|
10261
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10262
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10263
|
+
"type": "boolean"
|
|
10264
|
+
},
|
|
10265
|
+
"unicode": {
|
|
10266
|
+
"default": false,
|
|
10267
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10268
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10269
|
+
"type": "boolean"
|
|
10270
|
+
},
|
|
10271
|
+
"unicode_sets": {
|
|
10272
|
+
"default": false,
|
|
10273
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10274
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10275
|
+
"type": "boolean"
|
|
10276
|
+
}
|
|
10277
|
+
},
|
|
10278
|
+
"type": "object"
|
|
10279
|
+
},
|
|
10280
|
+
"pattern_message": {
|
|
10281
|
+
"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.",
|
|
10282
|
+
"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.",
|
|
10283
|
+
"type": "string"
|
|
10284
|
+
},
|
|
9742
10285
|
"placeholder": {
|
|
9743
10286
|
"description": "Text shown when this input has no value.",
|
|
9744
10287
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9745
10288
|
"type": "string"
|
|
10289
|
+
},
|
|
10290
|
+
"required": {
|
|
10291
|
+
"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).",
|
|
10292
|
+
"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).",
|
|
10293
|
+
"type": "boolean"
|
|
9746
10294
|
}
|
|
9747
10295
|
},
|
|
9748
10296
|
"type": "object"
|
|
@@ -9829,8 +10377,8 @@
|
|
|
9829
10377
|
},
|
|
9830
10378
|
"options": {
|
|
9831
10379
|
"$ref": "#/definitions/TextareaInputOptions",
|
|
9832
|
-
"description": "Options that are specific to
|
|
9833
|
-
"markdownDescription": "Options that are specific to
|
|
10380
|
+
"description": "Options that are specific to Textarea Inputs.",
|
|
10381
|
+
"markdownDescription": "Options that are specific to Textarea Inputs."
|
|
9834
10382
|
},
|
|
9835
10383
|
"type": {
|
|
9836
10384
|
"const": "textarea",
|
|
@@ -9861,11 +10409,80 @@
|
|
|
9861
10409
|
"description": "Icon shown beside the input.",
|
|
9862
10410
|
"markdownDescription": "Icon shown beside the input."
|
|
9863
10411
|
},
|
|
10412
|
+
"max_length": {
|
|
10413
|
+
"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.",
|
|
10414
|
+
"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.",
|
|
10415
|
+
"type": "number"
|
|
10416
|
+
},
|
|
10417
|
+
"min_length": {
|
|
10418
|
+
"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.",
|
|
10419
|
+
"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.",
|
|
10420
|
+
"type": "number"
|
|
10421
|
+
},
|
|
10422
|
+
"pattern": {
|
|
10423
|
+
"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.",
|
|
10424
|
+
"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.",
|
|
10425
|
+
"type": "string"
|
|
10426
|
+
},
|
|
10427
|
+
"pattern_flags": {
|
|
10428
|
+
"additionalProperties": false,
|
|
10429
|
+
"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.",
|
|
10430
|
+
"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.",
|
|
10431
|
+
"properties": {
|
|
10432
|
+
"dot_all": {
|
|
10433
|
+
"default": false,
|
|
10434
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10435
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10436
|
+
"type": "boolean"
|
|
10437
|
+
},
|
|
10438
|
+
"global": {
|
|
10439
|
+
"default": false,
|
|
10440
|
+
"description": "`g` - Search globally.",
|
|
10441
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10442
|
+
"type": "boolean"
|
|
10443
|
+
},
|
|
10444
|
+
"ignore_case": {
|
|
10445
|
+
"default": false,
|
|
10446
|
+
"description": "`i` - Case-insensitive.",
|
|
10447
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10448
|
+
"type": "boolean"
|
|
10449
|
+
},
|
|
10450
|
+
"multiline": {
|
|
10451
|
+
"default": false,
|
|
10452
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10453
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10454
|
+
"type": "boolean"
|
|
10455
|
+
},
|
|
10456
|
+
"unicode": {
|
|
10457
|
+
"default": false,
|
|
10458
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10459
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10460
|
+
"type": "boolean"
|
|
10461
|
+
},
|
|
10462
|
+
"unicode_sets": {
|
|
10463
|
+
"default": false,
|
|
10464
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10465
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10466
|
+
"type": "boolean"
|
|
10467
|
+
}
|
|
10468
|
+
},
|
|
10469
|
+
"type": "object"
|
|
10470
|
+
},
|
|
10471
|
+
"pattern_message": {
|
|
10472
|
+
"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.",
|
|
10473
|
+
"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.",
|
|
10474
|
+
"type": "string"
|
|
10475
|
+
},
|
|
9864
10476
|
"placeholder": {
|
|
9865
10477
|
"description": "Text shown when this input has no value.",
|
|
9866
10478
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9867
10479
|
"type": "string"
|
|
9868
10480
|
},
|
|
10481
|
+
"required": {
|
|
10482
|
+
"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).",
|
|
10483
|
+
"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).",
|
|
10484
|
+
"type": "boolean"
|
|
10485
|
+
},
|
|
9869
10486
|
"show_count": {
|
|
9870
10487
|
"default": false,
|
|
9871
10488
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -9999,9 +10616,26 @@
|
|
|
9999
10616
|
"type": "string"
|
|
10000
10617
|
},
|
|
10001
10618
|
"options": {
|
|
10002
|
-
"
|
|
10619
|
+
"additionalProperties": false,
|
|
10003
10620
|
"description": "Options that are specific to Time inputs.",
|
|
10004
|
-
"markdownDescription": "Options that are specific to Time inputs."
|
|
10621
|
+
"markdownDescription": "Options that are specific to Time inputs.",
|
|
10622
|
+
"properties": {
|
|
10623
|
+
"empty_type": {
|
|
10624
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10625
|
+
"enum": [
|
|
10626
|
+
"null",
|
|
10627
|
+
"string"
|
|
10628
|
+
],
|
|
10629
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10630
|
+
"type": "string"
|
|
10631
|
+
},
|
|
10632
|
+
"required": {
|
|
10633
|
+
"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).",
|
|
10634
|
+
"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).",
|
|
10635
|
+
"type": "boolean"
|
|
10636
|
+
}
|
|
10637
|
+
},
|
|
10638
|
+
"type": "object"
|
|
10005
10639
|
},
|
|
10006
10640
|
"type": {
|
|
10007
10641
|
"const": "time",
|
|
@@ -10887,6 +11521,11 @@
|
|
|
10887
11521
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10888
11522
|
"type": "boolean"
|
|
10889
11523
|
},
|
|
11524
|
+
"max_length": {
|
|
11525
|
+
"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.",
|
|
11526
|
+
"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.",
|
|
11527
|
+
"type": "number"
|
|
11528
|
+
},
|
|
10890
11529
|
"mime_type": {
|
|
10891
11530
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
10892
11531
|
"enum": [
|
|
@@ -10897,17 +11536,81 @@
|
|
|
10897
11536
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
10898
11537
|
"type": "string"
|
|
10899
11538
|
},
|
|
11539
|
+
"min_length": {
|
|
11540
|
+
"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.",
|
|
11541
|
+
"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.",
|
|
11542
|
+
"type": "number"
|
|
11543
|
+
},
|
|
10900
11544
|
"paths": {
|
|
10901
11545
|
"$ref": "#/definitions/Paths",
|
|
10902
11546
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
10903
11547
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
10904
11548
|
},
|
|
11549
|
+
"pattern": {
|
|
11550
|
+
"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.",
|
|
11551
|
+
"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.",
|
|
11552
|
+
"type": "string"
|
|
11553
|
+
},
|
|
11554
|
+
"pattern_flags": {
|
|
11555
|
+
"additionalProperties": false,
|
|
11556
|
+
"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.",
|
|
11557
|
+
"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.",
|
|
11558
|
+
"properties": {
|
|
11559
|
+
"dot_all": {
|
|
11560
|
+
"default": false,
|
|
11561
|
+
"description": "`s` - `.` matches newline characters.",
|
|
11562
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
11563
|
+
"type": "boolean"
|
|
11564
|
+
},
|
|
11565
|
+
"global": {
|
|
11566
|
+
"default": false,
|
|
11567
|
+
"description": "`g` - Search globally.",
|
|
11568
|
+
"markdownDescription": "`g` - Search globally.",
|
|
11569
|
+
"type": "boolean"
|
|
11570
|
+
},
|
|
11571
|
+
"ignore_case": {
|
|
11572
|
+
"default": false,
|
|
11573
|
+
"description": "`i` - Case-insensitive.",
|
|
11574
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
11575
|
+
"type": "boolean"
|
|
11576
|
+
},
|
|
11577
|
+
"multiline": {
|
|
11578
|
+
"default": false,
|
|
11579
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11580
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11581
|
+
"type": "boolean"
|
|
11582
|
+
},
|
|
11583
|
+
"unicode": {
|
|
11584
|
+
"default": false,
|
|
11585
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11586
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11587
|
+
"type": "boolean"
|
|
11588
|
+
},
|
|
11589
|
+
"unicode_sets": {
|
|
11590
|
+
"default": false,
|
|
11591
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
11592
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
11593
|
+
"type": "boolean"
|
|
11594
|
+
}
|
|
11595
|
+
},
|
|
11596
|
+
"type": "object"
|
|
11597
|
+
},
|
|
11598
|
+
"pattern_message": {
|
|
11599
|
+
"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.",
|
|
11600
|
+
"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.",
|
|
11601
|
+
"type": "string"
|
|
11602
|
+
},
|
|
10905
11603
|
"prevent_resize_existing_files": {
|
|
10906
11604
|
"default": false,
|
|
10907
11605
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10908
11606
|
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10909
11607
|
"type": "boolean"
|
|
10910
11608
|
},
|
|
11609
|
+
"required": {
|
|
11610
|
+
"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).",
|
|
11611
|
+
"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).",
|
|
11612
|
+
"type": "boolean"
|
|
11613
|
+
},
|
|
10911
11614
|
"resize_style": {
|
|
10912
11615
|
"default": "contain",
|
|
10913
11616
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -10952,21 +11655,6 @@
|
|
|
10952
11655
|
},
|
|
10953
11656
|
"type": "object"
|
|
10954
11657
|
},
|
|
10955
|
-
"WithEmptyTypeText": {
|
|
10956
|
-
"additionalProperties": false,
|
|
10957
|
-
"properties": {
|
|
10958
|
-
"empty_type": {
|
|
10959
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10960
|
-
"enum": [
|
|
10961
|
-
"null",
|
|
10962
|
-
"string"
|
|
10963
|
-
],
|
|
10964
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10965
|
-
"type": "string"
|
|
10966
|
-
}
|
|
10967
|
-
},
|
|
10968
|
-
"type": "object"
|
|
10969
|
-
},
|
|
10970
11658
|
"WithPaths": {
|
|
10971
11659
|
"additionalProperties": false,
|
|
10972
11660
|
"properties": {
|