@cloudcannon/configuration-types 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-config.latest.schema.json +1083 -325
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +1083 -325
- package/dist/cloudcannon-config.legacy-hugo.schema.json +1083 -325
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +1083 -325
- package/dist/cloudcannon-config.legacy-reader.schema.json +1083 -325
- package/package.json +2 -2
- package/src/inputs.d.ts +303 -40
|
@@ -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 item for adding new items to this Input.",
|
|
150
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"disable_remove": {
|
|
154
|
+
"default": false,
|
|
155
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
156
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"disable_reorder": {
|
|
160
|
+
"default": false,
|
|
161
|
+
"description": "Hides the controls on each item for moving them.",
|
|
162
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
147
165
|
"empty_type": {
|
|
148
166
|
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
149
167
|
"enum": [
|
|
@@ -153,6 +171,21 @@
|
|
|
153
171
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
154
172
|
"type": "string"
|
|
155
173
|
},
|
|
174
|
+
"max_items": {
|
|
175
|
+
"description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
176
|
+
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"min_items": {
|
|
180
|
+
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
181
|
+
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
182
|
+
"type": "number"
|
|
183
|
+
},
|
|
184
|
+
"required": {
|
|
185
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
186
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
156
189
|
"structures": {
|
|
157
190
|
"anyOf": [
|
|
158
191
|
{
|
|
@@ -164,6 +197,11 @@
|
|
|
164
197
|
],
|
|
165
198
|
"description": "Provides data formats for value of this object. When choosing an item, team members are prompted to choose from a number of values you have defined.",
|
|
166
199
|
"markdownDescription": "Provides data formats for value of this object. When choosing an item, team members are\nprompted to choose from a number of values you have defined."
|
|
200
|
+
},
|
|
201
|
+
"unique_on": {
|
|
202
|
+
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
203
|
+
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
204
|
+
"type": "string"
|
|
167
205
|
}
|
|
168
206
|
},
|
|
169
207
|
"type": "object"
|
|
@@ -803,87 +841,159 @@
|
|
|
803
841
|
"type": "string"
|
|
804
842
|
},
|
|
805
843
|
"options": {
|
|
844
|
+
"$ref": "#/definitions/ChoiceInputOptions",
|
|
845
|
+
"description": "Options that are specific to Choice Inputs.",
|
|
846
|
+
"markdownDescription": "Options that are specific to Choice Inputs."
|
|
847
|
+
},
|
|
848
|
+
"type": {
|
|
849
|
+
"const": "choice",
|
|
850
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
851
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
852
|
+
"type": "string"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"required": [
|
|
856
|
+
"type"
|
|
857
|
+
],
|
|
858
|
+
"type": "object"
|
|
859
|
+
},
|
|
860
|
+
"ChoiceInputOptions": {
|
|
861
|
+
"additionalProperties": false,
|
|
862
|
+
"properties": {
|
|
863
|
+
"allow_empty": {
|
|
864
|
+
"default": true,
|
|
865
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
866
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
867
|
+
"type": "boolean"
|
|
868
|
+
},
|
|
869
|
+
"empty_type": {
|
|
870
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
871
|
+
"enum": [
|
|
872
|
+
"null",
|
|
873
|
+
"string"
|
|
874
|
+
],
|
|
875
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"max_length": {
|
|
879
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
880
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
881
|
+
"type": "number"
|
|
882
|
+
},
|
|
883
|
+
"min_length": {
|
|
884
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
885
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
886
|
+
"type": "number"
|
|
887
|
+
},
|
|
888
|
+
"pattern": {
|
|
889
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
890
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
891
|
+
"type": "string"
|
|
892
|
+
},
|
|
893
|
+
"pattern_flags": {
|
|
806
894
|
"additionalProperties": false,
|
|
807
|
-
"description": "
|
|
808
|
-
"markdownDescription": "
|
|
895
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
896
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
809
897
|
"properties": {
|
|
810
|
-
"
|
|
811
|
-
"default":
|
|
812
|
-
"description": "
|
|
813
|
-
"markdownDescription": "
|
|
898
|
+
"dot_all": {
|
|
899
|
+
"default": false,
|
|
900
|
+
"description": "`s` - `.` matches newline characters.",
|
|
901
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
814
902
|
"type": "boolean"
|
|
815
903
|
},
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
],
|
|
822
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
823
|
-
"type": "string"
|
|
824
|
-
},
|
|
825
|
-
"picker_preview": {
|
|
826
|
-
"$ref": "#/definitions/Preview",
|
|
827
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
828
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
829
|
-
},
|
|
830
|
-
"picker_view": {
|
|
831
|
-
"description": "Controls how selectable options are rendered.",
|
|
832
|
-
"enum": [
|
|
833
|
-
"card",
|
|
834
|
-
"text",
|
|
835
|
-
"gallery",
|
|
836
|
-
"gallery-left"
|
|
837
|
-
],
|
|
838
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
839
|
-
"type": "string"
|
|
904
|
+
"global": {
|
|
905
|
+
"default": false,
|
|
906
|
+
"description": "`g` - Search globally.",
|
|
907
|
+
"markdownDescription": "`g` - Search globally.",
|
|
908
|
+
"type": "boolean"
|
|
840
909
|
},
|
|
841
|
-
"
|
|
842
|
-
"
|
|
843
|
-
"description": "
|
|
844
|
-
"markdownDescription": "
|
|
910
|
+
"ignore_case": {
|
|
911
|
+
"default": false,
|
|
912
|
+
"description": "`i` - Case-insensitive.",
|
|
913
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
914
|
+
"type": "boolean"
|
|
845
915
|
},
|
|
846
|
-
"
|
|
847
|
-
"
|
|
848
|
-
"
|
|
849
|
-
"
|
|
916
|
+
"multiline": {
|
|
917
|
+
"default": false,
|
|
918
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
919
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
920
|
+
"type": "boolean"
|
|
850
921
|
},
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
{
|
|
857
|
-
"$ref": "#/definitions/SelectValues"
|
|
858
|
-
}
|
|
859
|
-
],
|
|
860
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
861
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
922
|
+
"unicode": {
|
|
923
|
+
"default": false,
|
|
924
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
925
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
926
|
+
"type": "boolean"
|
|
862
927
|
},
|
|
863
|
-
"
|
|
864
|
-
"
|
|
865
|
-
"
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
"gallery",
|
|
869
|
-
"gallery-left"
|
|
870
|
-
],
|
|
871
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
872
|
-
"type": "string"
|
|
928
|
+
"unicode_sets": {
|
|
929
|
+
"default": false,
|
|
930
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
931
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
932
|
+
"type": "boolean"
|
|
873
933
|
}
|
|
874
934
|
},
|
|
875
935
|
"type": "object"
|
|
876
936
|
},
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"
|
|
937
|
+
"pattern_message": {
|
|
938
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
939
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
"picker_preview": {
|
|
943
|
+
"$ref": "#/definitions/Preview",
|
|
944
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
945
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
946
|
+
},
|
|
947
|
+
"picker_view": {
|
|
948
|
+
"description": "Controls how selectable options are rendered.",
|
|
949
|
+
"enum": [
|
|
950
|
+
"card",
|
|
951
|
+
"text",
|
|
952
|
+
"gallery",
|
|
953
|
+
"gallery-left"
|
|
954
|
+
],
|
|
955
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
956
|
+
"type": "string"
|
|
957
|
+
},
|
|
958
|
+
"preview": {
|
|
959
|
+
"$ref": "#/definitions/Preview",
|
|
960
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
961
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
962
|
+
},
|
|
963
|
+
"required": {
|
|
964
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
965
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
966
|
+
"type": "boolean"
|
|
967
|
+
},
|
|
968
|
+
"value_key": {
|
|
969
|
+
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
970
|
+
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
"values": {
|
|
974
|
+
"anyOf": [
|
|
975
|
+
{
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"$ref": "#/definitions/SelectValues"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
983
|
+
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
984
|
+
},
|
|
985
|
+
"view": {
|
|
986
|
+
"description": "Controls how selected items are rendered.",
|
|
987
|
+
"enum": [
|
|
988
|
+
"card",
|
|
989
|
+
"text",
|
|
990
|
+
"gallery",
|
|
991
|
+
"gallery-left"
|
|
992
|
+
],
|
|
993
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
881
994
|
"type": "string"
|
|
882
995
|
}
|
|
883
996
|
},
|
|
884
|
-
"required": [
|
|
885
|
-
"type"
|
|
886
|
-
],
|
|
887
997
|
"type": "object"
|
|
888
998
|
},
|
|
889
999
|
"CodeInput": {
|
|
@@ -968,8 +1078,8 @@
|
|
|
968
1078
|
},
|
|
969
1079
|
"options": {
|
|
970
1080
|
"$ref": "#/definitions/CodeInputOptions",
|
|
971
|
-
"description": "Options that are specific to
|
|
972
|
-
"markdownDescription": "Options that are specific to
|
|
1081
|
+
"description": "Options that are specific to Code Inputs.",
|
|
1082
|
+
"markdownDescription": "Options that are specific to Code Inputs."
|
|
973
1083
|
},
|
|
974
1084
|
"type": {
|
|
975
1085
|
"const": "code",
|
|
@@ -995,18 +1105,87 @@
|
|
|
995
1105
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
996
1106
|
"type": "string"
|
|
997
1107
|
},
|
|
1108
|
+
"max_length": {
|
|
1109
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1110
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1111
|
+
"type": "number"
|
|
1112
|
+
},
|
|
998
1113
|
"max_visible_lines": {
|
|
999
1114
|
"default": 30,
|
|
1000
1115
|
"description": "Sets the maximum number of visible lines for this input, effectively controlling maximum height. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1001
1116
|
"markdownDescription": "Sets the maximum number of visible lines for this input, effectively controlling maximum\nheight. When the containing text exceeds this number, the input becomes a scroll area.",
|
|
1002
1117
|
"type": "number"
|
|
1003
1118
|
},
|
|
1119
|
+
"min_length": {
|
|
1120
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1121
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1122
|
+
"type": "number"
|
|
1123
|
+
},
|
|
1004
1124
|
"min_visible_lines": {
|
|
1005
1125
|
"default": 10,
|
|
1006
1126
|
"description": "Sets the minimum number of visible lines for this input, effectively controlling initial height. When the containing text exceeds this number, the input grows line by line to the lines defined by `max_visible_lines`.",
|
|
1007
1127
|
"markdownDescription": "Sets the minimum number of visible lines for this input, effectively controlling initial\nheight. When the containing text exceeds this number, the input grows line by line to the lines\ndefined by `max_visible_lines`.",
|
|
1008
1128
|
"type": "number"
|
|
1009
1129
|
},
|
|
1130
|
+
"pattern": {
|
|
1131
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1132
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1133
|
+
"type": "string"
|
|
1134
|
+
},
|
|
1135
|
+
"pattern_flags": {
|
|
1136
|
+
"additionalProperties": false,
|
|
1137
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1138
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1139
|
+
"properties": {
|
|
1140
|
+
"dot_all": {
|
|
1141
|
+
"default": false,
|
|
1142
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1143
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1144
|
+
"type": "boolean"
|
|
1145
|
+
},
|
|
1146
|
+
"global": {
|
|
1147
|
+
"default": false,
|
|
1148
|
+
"description": "`g` - Search globally.",
|
|
1149
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1150
|
+
"type": "boolean"
|
|
1151
|
+
},
|
|
1152
|
+
"ignore_case": {
|
|
1153
|
+
"default": false,
|
|
1154
|
+
"description": "`i` - Case-insensitive.",
|
|
1155
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1156
|
+
"type": "boolean"
|
|
1157
|
+
},
|
|
1158
|
+
"multiline": {
|
|
1159
|
+
"default": false,
|
|
1160
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1161
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
},
|
|
1164
|
+
"unicode": {
|
|
1165
|
+
"default": false,
|
|
1166
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1167
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1168
|
+
"type": "boolean"
|
|
1169
|
+
},
|
|
1170
|
+
"unicode_sets": {
|
|
1171
|
+
"default": false,
|
|
1172
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1173
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1174
|
+
"type": "boolean"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"type": "object"
|
|
1178
|
+
},
|
|
1179
|
+
"pattern_message": {
|
|
1180
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1181
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1182
|
+
"type": "string"
|
|
1183
|
+
},
|
|
1184
|
+
"required": {
|
|
1185
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1186
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1187
|
+
"type": "boolean"
|
|
1188
|
+
},
|
|
1010
1189
|
"show_gutter": {
|
|
1011
1190
|
"default": true,
|
|
1012
1191
|
"description": "This key toggles the gutter on the left of the editing interface, displaying line numbers and code folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
|
|
@@ -1144,8 +1323,8 @@
|
|
|
1144
1323
|
},
|
|
1145
1324
|
"options": {
|
|
1146
1325
|
"$ref": "#/definitions/ColorInputOptions",
|
|
1147
|
-
"description": "Options that are specific to
|
|
1148
|
-
"markdownDescription": "Options that are specific to
|
|
1326
|
+
"description": "Options that are specific to Color Inputs.",
|
|
1327
|
+
"markdownDescription": "Options that are specific to Color Inputs."
|
|
1149
1328
|
},
|
|
1150
1329
|
"type": {
|
|
1151
1330
|
"const": "color",
|
|
@@ -1186,6 +1365,75 @@
|
|
|
1186
1365
|
],
|
|
1187
1366
|
"markdownDescription": "Sets what format the color value is saved as. Defaults to the naming convention, or HEX if that\nis unset.",
|
|
1188
1367
|
"type": "string"
|
|
1368
|
+
},
|
|
1369
|
+
"max_length": {
|
|
1370
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1371
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1372
|
+
"type": "number"
|
|
1373
|
+
},
|
|
1374
|
+
"min_length": {
|
|
1375
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1376
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1377
|
+
"type": "number"
|
|
1378
|
+
},
|
|
1379
|
+
"pattern": {
|
|
1380
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1381
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1382
|
+
"type": "string"
|
|
1383
|
+
},
|
|
1384
|
+
"pattern_flags": {
|
|
1385
|
+
"additionalProperties": false,
|
|
1386
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1387
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
1388
|
+
"properties": {
|
|
1389
|
+
"dot_all": {
|
|
1390
|
+
"default": false,
|
|
1391
|
+
"description": "`s` - `.` matches newline characters.",
|
|
1392
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
1393
|
+
"type": "boolean"
|
|
1394
|
+
},
|
|
1395
|
+
"global": {
|
|
1396
|
+
"default": false,
|
|
1397
|
+
"description": "`g` - Search globally.",
|
|
1398
|
+
"markdownDescription": "`g` - Search globally.",
|
|
1399
|
+
"type": "boolean"
|
|
1400
|
+
},
|
|
1401
|
+
"ignore_case": {
|
|
1402
|
+
"default": false,
|
|
1403
|
+
"description": "`i` - Case-insensitive.",
|
|
1404
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
1405
|
+
"type": "boolean"
|
|
1406
|
+
},
|
|
1407
|
+
"multiline": {
|
|
1408
|
+
"default": false,
|
|
1409
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1410
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
1411
|
+
"type": "boolean"
|
|
1412
|
+
},
|
|
1413
|
+
"unicode": {
|
|
1414
|
+
"default": false,
|
|
1415
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1416
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
1417
|
+
"type": "boolean"
|
|
1418
|
+
},
|
|
1419
|
+
"unicode_sets": {
|
|
1420
|
+
"default": false,
|
|
1421
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
1422
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
1423
|
+
"type": "boolean"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
"type": "object"
|
|
1427
|
+
},
|
|
1428
|
+
"pattern_message": {
|
|
1429
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1430
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
1431
|
+
"type": "string"
|
|
1432
|
+
},
|
|
1433
|
+
"required": {
|
|
1434
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1435
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
1436
|
+
"type": "boolean"
|
|
1189
1437
|
}
|
|
1190
1438
|
},
|
|
1191
1439
|
"type": "object"
|
|
@@ -1392,6 +1640,18 @@
|
|
|
1392
1640
|
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
1393
1641
|
"type": "string"
|
|
1394
1642
|
},
|
|
1643
|
+
"end_before": {
|
|
1644
|
+
"description": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting a later date and time. If the Input already contains a later date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be an earlier date and time.\n\nThis key has no default.",
|
|
1645
|
+
"format": "date-time",
|
|
1646
|
+
"markdownDescription": "This key defines the date and time, exclusive, that CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from selecting a later date and time. If the Input\nalready contains a later date and time, CloudCannon will require you to change it to a valid\nvalue to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If options.start_from is also configured, this key cannot be\nan earlier date and time.\n\nThis key has no default.",
|
|
1647
|
+
"type": "string"
|
|
1648
|
+
},
|
|
1649
|
+
"start_from": {
|
|
1650
|
+
"description": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting an earlier date and time. If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be a later date and time.\n\nThis key has no default.",
|
|
1651
|
+
"format": "date-time",
|
|
1652
|
+
"markdownDescription": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an\nInput. When configured, CloudCannon will prevent you from selecting an earlier date and time.\nIf the Input already contains an earlier date and time, CloudCannon will require you to change\nit to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be\na later date and time.\n\nThis key has no default.",
|
|
1653
|
+
"type": "string"
|
|
1654
|
+
},
|
|
1395
1655
|
"timezone": {
|
|
1396
1656
|
"$ref": "#/definitions/Timezone",
|
|
1397
1657
|
"default": "Etc/UTC",
|
|
@@ -1713,6 +1973,11 @@
|
|
|
1713
1973
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
1714
1974
|
"type": "boolean"
|
|
1715
1975
|
},
|
|
1976
|
+
"max_length": {
|
|
1977
|
+
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1978
|
+
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1979
|
+
"type": "number"
|
|
1980
|
+
},
|
|
1716
1981
|
"mime_type": {
|
|
1717
1982
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
1718
1983
|
"enum": [
|
|
@@ -1723,17 +1988,81 @@
|
|
|
1723
1988
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
1724
1989
|
"type": "string"
|
|
1725
1990
|
},
|
|
1991
|
+
"min_length": {
|
|
1992
|
+
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1993
|
+
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
1994
|
+
"type": "number"
|
|
1995
|
+
},
|
|
1726
1996
|
"paths": {
|
|
1727
1997
|
"$ref": "#/definitions/Paths",
|
|
1728
1998
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
1729
1999
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
1730
2000
|
},
|
|
2001
|
+
"pattern": {
|
|
2002
|
+
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
2003
|
+
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
2004
|
+
"type": "string"
|
|
2005
|
+
},
|
|
2006
|
+
"pattern_flags": {
|
|
2007
|
+
"additionalProperties": false,
|
|
2008
|
+
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
2009
|
+
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
2010
|
+
"properties": {
|
|
2011
|
+
"dot_all": {
|
|
2012
|
+
"default": false,
|
|
2013
|
+
"description": "`s` - `.` matches newline characters.",
|
|
2014
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
2015
|
+
"type": "boolean"
|
|
2016
|
+
},
|
|
2017
|
+
"global": {
|
|
2018
|
+
"default": false,
|
|
2019
|
+
"description": "`g` - Search globally.",
|
|
2020
|
+
"markdownDescription": "`g` - Search globally.",
|
|
2021
|
+
"type": "boolean"
|
|
2022
|
+
},
|
|
2023
|
+
"ignore_case": {
|
|
2024
|
+
"default": false,
|
|
2025
|
+
"description": "`i` - Case-insensitive.",
|
|
2026
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
2027
|
+
"type": "boolean"
|
|
2028
|
+
},
|
|
2029
|
+
"multiline": {
|
|
2030
|
+
"default": false,
|
|
2031
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2032
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
2033
|
+
"type": "boolean"
|
|
2034
|
+
},
|
|
2035
|
+
"unicode": {
|
|
2036
|
+
"default": false,
|
|
2037
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2038
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
2039
|
+
"type": "boolean"
|
|
2040
|
+
},
|
|
2041
|
+
"unicode_sets": {
|
|
2042
|
+
"default": false,
|
|
2043
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
2044
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
2045
|
+
"type": "boolean"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"type": "object"
|
|
2049
|
+
},
|
|
2050
|
+
"pattern_message": {
|
|
2051
|
+
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
2052
|
+
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
2053
|
+
"type": "string"
|
|
2054
|
+
},
|
|
1731
2055
|
"prevent_resize_existing_files": {
|
|
1732
2056
|
"default": false,
|
|
1733
2057
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
1734
2058
|
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
1735
2059
|
"type": "boolean"
|
|
1736
2060
|
},
|
|
2061
|
+
"required": {
|
|
2062
|
+
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
2063
|
+
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
2064
|
+
"type": "boolean"
|
|
2065
|
+
},
|
|
1737
2066
|
"resize_style": {
|
|
1738
2067
|
"default": "contain",
|
|
1739
2068
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -6550,76 +6879,9 @@
|
|
|
6550
6879
|
"type": "string"
|
|
6551
6880
|
},
|
|
6552
6881
|
"options": {
|
|
6553
|
-
"
|
|
6554
|
-
"description": "Options that are specific to
|
|
6555
|
-
"markdownDescription": "Options that are specific to
|
|
6556
|
-
"properties": {
|
|
6557
|
-
"allow_empty": {
|
|
6558
|
-
"default": true,
|
|
6559
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6560
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6561
|
-
"type": "boolean"
|
|
6562
|
-
},
|
|
6563
|
-
"empty_type": {
|
|
6564
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6565
|
-
"enum": [
|
|
6566
|
-
"null",
|
|
6567
|
-
"array"
|
|
6568
|
-
],
|
|
6569
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6570
|
-
"type": "string"
|
|
6571
|
-
},
|
|
6572
|
-
"picker_preview": {
|
|
6573
|
-
"$ref": "#/definitions/Preview",
|
|
6574
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6575
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6576
|
-
},
|
|
6577
|
-
"picker_view": {
|
|
6578
|
-
"description": "Controls how selectable options are rendered.",
|
|
6579
|
-
"enum": [
|
|
6580
|
-
"card",
|
|
6581
|
-
"text",
|
|
6582
|
-
"gallery",
|
|
6583
|
-
"gallery-left"
|
|
6584
|
-
],
|
|
6585
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6586
|
-
"type": "string"
|
|
6587
|
-
},
|
|
6588
|
-
"preview": {
|
|
6589
|
-
"$ref": "#/definitions/Preview",
|
|
6590
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
6591
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6592
|
-
},
|
|
6593
|
-
"value_key": {
|
|
6594
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
6595
|
-
"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.",
|
|
6596
|
-
"type": "string"
|
|
6597
|
-
},
|
|
6598
|
-
"values": {
|
|
6599
|
-
"anyOf": [
|
|
6600
|
-
{
|
|
6601
|
-
"type": "string"
|
|
6602
|
-
},
|
|
6603
|
-
{
|
|
6604
|
-
"$ref": "#/definitions/SelectValues"
|
|
6605
|
-
}
|
|
6606
|
-
],
|
|
6607
|
-
"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).",
|
|
6608
|
-
"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)."
|
|
6609
|
-
},
|
|
6610
|
-
"view": {
|
|
6611
|
-
"description": "Controls how selected items are rendered.",
|
|
6612
|
-
"enum": [
|
|
6613
|
-
"card",
|
|
6614
|
-
"text",
|
|
6615
|
-
"gallery",
|
|
6616
|
-
"gallery-left"
|
|
6617
|
-
],
|
|
6618
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
6619
|
-
"type": "string"
|
|
6620
|
-
}
|
|
6621
|
-
},
|
|
6622
|
-
"type": "object"
|
|
6882
|
+
"$ref": "#/definitions/MultichoiceInputOptions",
|
|
6883
|
+
"description": "Options that are specific to Multichoice Inputs.",
|
|
6884
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
6623
6885
|
},
|
|
6624
6886
|
"type": {
|
|
6625
6887
|
"const": "multichoice",
|
|
@@ -6633,6 +6895,96 @@
|
|
|
6633
6895
|
],
|
|
6634
6896
|
"type": "object"
|
|
6635
6897
|
},
|
|
6898
|
+
"MultichoiceInputOptions": {
|
|
6899
|
+
"additionalProperties": false,
|
|
6900
|
+
"properties": {
|
|
6901
|
+
"allow_empty": {
|
|
6902
|
+
"default": true,
|
|
6903
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
6904
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6905
|
+
"type": "boolean"
|
|
6906
|
+
},
|
|
6907
|
+
"empty_type": {
|
|
6908
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6909
|
+
"enum": [
|
|
6910
|
+
"null",
|
|
6911
|
+
"array"
|
|
6912
|
+
],
|
|
6913
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6914
|
+
"type": "string"
|
|
6915
|
+
},
|
|
6916
|
+
"max_items": {
|
|
6917
|
+
"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.",
|
|
6918
|
+
"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.",
|
|
6919
|
+
"type": "number"
|
|
6920
|
+
},
|
|
6921
|
+
"min_items": {
|
|
6922
|
+
"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.",
|
|
6923
|
+
"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.",
|
|
6924
|
+
"type": "number"
|
|
6925
|
+
},
|
|
6926
|
+
"picker_preview": {
|
|
6927
|
+
"$ref": "#/definitions/Preview",
|
|
6928
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6929
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6930
|
+
},
|
|
6931
|
+
"picker_view": {
|
|
6932
|
+
"description": "Controls how selectable options are rendered.",
|
|
6933
|
+
"enum": [
|
|
6934
|
+
"card",
|
|
6935
|
+
"text",
|
|
6936
|
+
"gallery",
|
|
6937
|
+
"gallery-left"
|
|
6938
|
+
],
|
|
6939
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6940
|
+
"type": "string"
|
|
6941
|
+
},
|
|
6942
|
+
"preview": {
|
|
6943
|
+
"$ref": "#/definitions/Preview",
|
|
6944
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
6945
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6946
|
+
},
|
|
6947
|
+
"required": {
|
|
6948
|
+
"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).",
|
|
6949
|
+
"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).",
|
|
6950
|
+
"type": "boolean"
|
|
6951
|
+
},
|
|
6952
|
+
"unique_on": {
|
|
6953
|
+
"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.",
|
|
6954
|
+
"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.",
|
|
6955
|
+
"type": "string"
|
|
6956
|
+
},
|
|
6957
|
+
"value_key": {
|
|
6958
|
+
"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.",
|
|
6959
|
+
"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.",
|
|
6960
|
+
"type": "string"
|
|
6961
|
+
},
|
|
6962
|
+
"values": {
|
|
6963
|
+
"anyOf": [
|
|
6964
|
+
{
|
|
6965
|
+
"type": "string"
|
|
6966
|
+
},
|
|
6967
|
+
{
|
|
6968
|
+
"$ref": "#/definitions/SelectValues"
|
|
6969
|
+
}
|
|
6970
|
+
],
|
|
6971
|
+
"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).",
|
|
6972
|
+
"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)."
|
|
6973
|
+
},
|
|
6974
|
+
"view": {
|
|
6975
|
+
"description": "Controls how selected items are rendered.",
|
|
6976
|
+
"enum": [
|
|
6977
|
+
"card",
|
|
6978
|
+
"text",
|
|
6979
|
+
"gallery",
|
|
6980
|
+
"gallery-left"
|
|
6981
|
+
],
|
|
6982
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
6983
|
+
"type": "string"
|
|
6984
|
+
}
|
|
6985
|
+
},
|
|
6986
|
+
"type": "object"
|
|
6987
|
+
},
|
|
6636
6988
|
"MultiselectInput": {
|
|
6637
6989
|
"additionalProperties": false,
|
|
6638
6990
|
"properties": {
|
|
@@ -6714,82 +7066,9 @@
|
|
|
6714
7066
|
"type": "string"
|
|
6715
7067
|
},
|
|
6716
7068
|
"options": {
|
|
6717
|
-
"
|
|
6718
|
-
"description": "Options that are specific to
|
|
6719
|
-
"markdownDescription": "Options that are specific to
|
|
6720
|
-
"properties": {
|
|
6721
|
-
"allow_create": {
|
|
6722
|
-
"default": false,
|
|
6723
|
-
"description": "Allows new text values to be created at edit time.",
|
|
6724
|
-
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
6725
|
-
"type": "boolean"
|
|
6726
|
-
},
|
|
6727
|
-
"allow_empty": {
|
|
6728
|
-
"default": true,
|
|
6729
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6730
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6731
|
-
"type": "boolean"
|
|
6732
|
-
},
|
|
6733
|
-
"empty_type": {
|
|
6734
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6735
|
-
"enum": [
|
|
6736
|
-
"null",
|
|
6737
|
-
"array"
|
|
6738
|
-
],
|
|
6739
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6740
|
-
"type": "string"
|
|
6741
|
-
},
|
|
6742
|
-
"picker_preview": {
|
|
6743
|
-
"$ref": "#/definitions/Preview",
|
|
6744
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6745
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6746
|
-
},
|
|
6747
|
-
"picker_view": {
|
|
6748
|
-
"description": "Controls how selectable options are rendered.",
|
|
6749
|
-
"enum": [
|
|
6750
|
-
"card",
|
|
6751
|
-
"text",
|
|
6752
|
-
"gallery",
|
|
6753
|
-
"gallery-left"
|
|
6754
|
-
],
|
|
6755
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6756
|
-
"type": "string"
|
|
6757
|
-
},
|
|
6758
|
-
"preview": {
|
|
6759
|
-
"$ref": "#/definitions/Preview",
|
|
6760
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
6761
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6762
|
-
},
|
|
6763
|
-
"value_key": {
|
|
6764
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
6765
|
-
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
6766
|
-
"type": "string"
|
|
6767
|
-
},
|
|
6768
|
-
"values": {
|
|
6769
|
-
"anyOf": [
|
|
6770
|
-
{
|
|
6771
|
-
"type": "string"
|
|
6772
|
-
},
|
|
6773
|
-
{
|
|
6774
|
-
"$ref": "#/definitions/SelectValues"
|
|
6775
|
-
}
|
|
6776
|
-
],
|
|
6777
|
-
"description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
|
|
6778
|
-
"markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
|
|
6779
|
-
},
|
|
6780
|
-
"view": {
|
|
6781
|
-
"description": "Controls how selected items are rendered.",
|
|
6782
|
-
"enum": [
|
|
6783
|
-
"card",
|
|
6784
|
-
"text",
|
|
6785
|
-
"gallery",
|
|
6786
|
-
"gallery-left"
|
|
6787
|
-
],
|
|
6788
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
6789
|
-
"type": "string"
|
|
6790
|
-
}
|
|
6791
|
-
},
|
|
6792
|
-
"type": "object"
|
|
7069
|
+
"$ref": "#/definitions/MultiselectInputOptions",
|
|
7070
|
+
"description": "Options that are specific to Multiselect Inputs.",
|
|
7071
|
+
"markdownDescription": "Options that are specific to Multiselect Inputs."
|
|
6793
7072
|
},
|
|
6794
7073
|
"type": {
|
|
6795
7074
|
"const": "multiselect",
|
|
@@ -6803,6 +7082,120 @@
|
|
|
6803
7082
|
],
|
|
6804
7083
|
"type": "object"
|
|
6805
7084
|
},
|
|
7085
|
+
"MultiselectInputOptions": {
|
|
7086
|
+
"additionalProperties": false,
|
|
7087
|
+
"properties": {
|
|
7088
|
+
"allow_create": {
|
|
7089
|
+
"default": false,
|
|
7090
|
+
"description": "Allows new text values to be created at edit time.",
|
|
7091
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7092
|
+
"type": "boolean"
|
|
7093
|
+
},
|
|
7094
|
+
"allow_empty": {
|
|
7095
|
+
"default": true,
|
|
7096
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7097
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7098
|
+
"type": "boolean"
|
|
7099
|
+
},
|
|
7100
|
+
"disable_add": {
|
|
7101
|
+
"default": false,
|
|
7102
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7103
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7104
|
+
"type": "boolean"
|
|
7105
|
+
},
|
|
7106
|
+
"disable_remove": {
|
|
7107
|
+
"default": false,
|
|
7108
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
7109
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
7110
|
+
"type": "boolean"
|
|
7111
|
+
},
|
|
7112
|
+
"disable_reorder": {
|
|
7113
|
+
"default": false,
|
|
7114
|
+
"description": "Hides the controls on each item for moving them.",
|
|
7115
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
7116
|
+
"type": "boolean"
|
|
7117
|
+
},
|
|
7118
|
+
"empty_type": {
|
|
7119
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7120
|
+
"enum": [
|
|
7121
|
+
"null",
|
|
7122
|
+
"array"
|
|
7123
|
+
],
|
|
7124
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7125
|
+
"type": "string"
|
|
7126
|
+
},
|
|
7127
|
+
"max_items": {
|
|
7128
|
+
"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.",
|
|
7129
|
+
"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.",
|
|
7130
|
+
"type": "number"
|
|
7131
|
+
},
|
|
7132
|
+
"min_items": {
|
|
7133
|
+
"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.",
|
|
7134
|
+
"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.",
|
|
7135
|
+
"type": "number"
|
|
7136
|
+
},
|
|
7137
|
+
"picker_preview": {
|
|
7138
|
+
"$ref": "#/definitions/Preview",
|
|
7139
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7140
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7141
|
+
},
|
|
7142
|
+
"picker_view": {
|
|
7143
|
+
"description": "Controls how selectable options are rendered.",
|
|
7144
|
+
"enum": [
|
|
7145
|
+
"card",
|
|
7146
|
+
"text",
|
|
7147
|
+
"gallery",
|
|
7148
|
+
"gallery-left"
|
|
7149
|
+
],
|
|
7150
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7151
|
+
"type": "string"
|
|
7152
|
+
},
|
|
7153
|
+
"preview": {
|
|
7154
|
+
"$ref": "#/definitions/Preview",
|
|
7155
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7156
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7157
|
+
},
|
|
7158
|
+
"required": {
|
|
7159
|
+
"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).",
|
|
7160
|
+
"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).",
|
|
7161
|
+
"type": "boolean"
|
|
7162
|
+
},
|
|
7163
|
+
"unique_on": {
|
|
7164
|
+
"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.",
|
|
7165
|
+
"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.",
|
|
7166
|
+
"type": "string"
|
|
7167
|
+
},
|
|
7168
|
+
"value_key": {
|
|
7169
|
+
"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.",
|
|
7170
|
+
"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.",
|
|
7171
|
+
"type": "string"
|
|
7172
|
+
},
|
|
7173
|
+
"values": {
|
|
7174
|
+
"anyOf": [
|
|
7175
|
+
{
|
|
7176
|
+
"type": "string"
|
|
7177
|
+
},
|
|
7178
|
+
{
|
|
7179
|
+
"$ref": "#/definitions/SelectValues"
|
|
7180
|
+
}
|
|
7181
|
+
],
|
|
7182
|
+
"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).",
|
|
7183
|
+
"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)."
|
|
7184
|
+
},
|
|
7185
|
+
"view": {
|
|
7186
|
+
"description": "Controls how selected items are rendered.",
|
|
7187
|
+
"enum": [
|
|
7188
|
+
"card",
|
|
7189
|
+
"text",
|
|
7190
|
+
"gallery",
|
|
7191
|
+
"gallery-left"
|
|
7192
|
+
],
|
|
7193
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7194
|
+
"type": "string"
|
|
7195
|
+
}
|
|
7196
|
+
},
|
|
7197
|
+
"type": "object"
|
|
7198
|
+
},
|
|
6806
7199
|
"NumberInput": {
|
|
6807
7200
|
"additionalProperties": false,
|
|
6808
7201
|
"properties": {
|
|
@@ -6885,8 +7278,8 @@
|
|
|
6885
7278
|
},
|
|
6886
7279
|
"options": {
|
|
6887
7280
|
"$ref": "#/definitions/NumberInputOptions",
|
|
6888
|
-
"description": "Options that are specific to this
|
|
6889
|
-
"markdownDescription": "Options that are specific to this
|
|
7281
|
+
"description": "Options that are specific to this Number Inputs.",
|
|
7282
|
+
"markdownDescription": "Options that are specific to this Number Inputs."
|
|
6890
7283
|
},
|
|
6891
7284
|
"type": {
|
|
6892
7285
|
"const": "number",
|
|
@@ -6913,15 +7306,20 @@
|
|
|
6913
7306
|
"type": "string"
|
|
6914
7307
|
},
|
|
6915
7308
|
"max": {
|
|
6916
|
-
"description": "
|
|
6917
|
-
"markdownDescription": "
|
|
7309
|
+
"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.",
|
|
7310
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.\n\nThis key has no default.",
|
|
6918
7311
|
"type": "number"
|
|
6919
7312
|
},
|
|
6920
7313
|
"min": {
|
|
6921
|
-
"description": "
|
|
6922
|
-
"markdownDescription": "
|
|
7314
|
+
"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.",
|
|
7315
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.\n\nThis key has no default.",
|
|
6923
7316
|
"type": "number"
|
|
6924
7317
|
},
|
|
7318
|
+
"required": {
|
|
7319
|
+
"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).",
|
|
7320
|
+
"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).",
|
|
7321
|
+
"type": "boolean"
|
|
7322
|
+
},
|
|
6925
7323
|
"step": {
|
|
6926
7324
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
6927
7325
|
"markdownDescription": "A number that specifies the granularity that the value must adhere to, or the special value\nany, which allows any decimal value between `max` and `min`.",
|
|
@@ -7012,8 +7410,8 @@
|
|
|
7012
7410
|
},
|
|
7013
7411
|
"options": {
|
|
7014
7412
|
"$ref": "#/definitions/ObjectInputOptions",
|
|
7015
|
-
"description": "Options that are specific to
|
|
7016
|
-
"markdownDescription": "Options that are specific to
|
|
7413
|
+
"description": "Options that are specific to Object Inputs.",
|
|
7414
|
+
"markdownDescription": "Options that are specific to Object Inputs."
|
|
7017
7415
|
},
|
|
7018
7416
|
"type": {
|
|
7019
7417
|
"const": "object",
|
|
@@ -7138,6 +7536,11 @@
|
|
|
7138
7536
|
"description": "Changes the way items are previewed in the CMS.",
|
|
7139
7537
|
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7140
7538
|
},
|
|
7539
|
+
"required": {
|
|
7540
|
+
"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).",
|
|
7541
|
+
"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).",
|
|
7542
|
+
"type": "boolean"
|
|
7543
|
+
},
|
|
7141
7544
|
"structures": {
|
|
7142
7545
|
"anyOf": [
|
|
7143
7546
|
{
|
|
@@ -7483,8 +7886,8 @@
|
|
|
7483
7886
|
},
|
|
7484
7887
|
"options": {
|
|
7485
7888
|
"$ref": "#/definitions/RangeInputOptions",
|
|
7486
|
-
"description": "Options that are specific to
|
|
7487
|
-
"markdownDescription": "Options that are specific to
|
|
7889
|
+
"description": "Options that are specific to Range Inputs.",
|
|
7890
|
+
"markdownDescription": "Options that are specific to Range Inputs."
|
|
7488
7891
|
},
|
|
7489
7892
|
"type": {
|
|
7490
7893
|
"const": "range",
|
|
@@ -7512,16 +7915,21 @@
|
|
|
7512
7915
|
},
|
|
7513
7916
|
"max": {
|
|
7514
7917
|
"default": 10,
|
|
7515
|
-
"description": "
|
|
7516
|
-
"markdownDescription": "
|
|
7918
|
+
"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.",
|
|
7919
|
+
"markdownDescription": "This key defines the maximum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a greater numerical value. If the Input\nalready contains a greater numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.min` is also configured, this key cannot be a lesser\nnumber.",
|
|
7517
7920
|
"type": "number"
|
|
7518
7921
|
},
|
|
7519
7922
|
"min": {
|
|
7520
7923
|
"default": 0,
|
|
7521
|
-
"description": "
|
|
7522
|
-
"markdownDescription": "
|
|
7924
|
+
"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.",
|
|
7925
|
+
"markdownDescription": "This key defines the minimum numerical value CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from entering a lesser numerical value. If the Input\nalready contains a lesser numerical value, CloudCannon will require you to enter a valid value\nto save your changes, or discard your unsaved changes.\n\nValue can be any integer. If `options.max` is also configured, this key cannot be a greater\nnumber.",
|
|
7523
7926
|
"type": "number"
|
|
7524
7927
|
},
|
|
7928
|
+
"required": {
|
|
7929
|
+
"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).",
|
|
7930
|
+
"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).",
|
|
7931
|
+
"type": "boolean"
|
|
7932
|
+
},
|
|
7525
7933
|
"step": {
|
|
7526
7934
|
"default": 1,
|
|
7527
7935
|
"description": "A number that specifies the granularity that the value must adhere to, or the special value any, which allows any decimal value between `max` and `min`.",
|
|
@@ -7831,8 +8239,8 @@
|
|
|
7831
8239
|
},
|
|
7832
8240
|
"options": {
|
|
7833
8241
|
"$ref": "#/definitions/RichTextInputOptions",
|
|
7834
|
-
"description": "Options that are specific to
|
|
7835
|
-
"markdownDescription": "Options that are specific to
|
|
8242
|
+
"description": "Options that are specific to Rich Text Inputs.",
|
|
8243
|
+
"markdownDescription": "Options that are specific to Rich Text Inputs."
|
|
7836
8244
|
},
|
|
7837
8245
|
"type": {
|
|
7838
8246
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -8014,6 +8422,11 @@
|
|
|
8014
8422
|
"markdownDescription": "Enables a control to create hyperlinks around selected text.",
|
|
8015
8423
|
"type": "boolean"
|
|
8016
8424
|
},
|
|
8425
|
+
"max_length": {
|
|
8426
|
+
"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.",
|
|
8427
|
+
"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.",
|
|
8428
|
+
"type": "number"
|
|
8429
|
+
},
|
|
8017
8430
|
"mime_type": {
|
|
8018
8431
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
8019
8432
|
"enum": [
|
|
@@ -8024,6 +8437,11 @@
|
|
|
8024
8437
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
8025
8438
|
"type": "string"
|
|
8026
8439
|
},
|
|
8440
|
+
"min_length": {
|
|
8441
|
+
"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.",
|
|
8442
|
+
"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.",
|
|
8443
|
+
"type": "number"
|
|
8444
|
+
},
|
|
8027
8445
|
"numberedlist": {
|
|
8028
8446
|
"default": true,
|
|
8029
8447
|
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
@@ -8041,6 +8459,60 @@
|
|
|
8041
8459
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
8042
8460
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
8043
8461
|
},
|
|
8462
|
+
"pattern": {
|
|
8463
|
+
"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.",
|
|
8464
|
+
"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.",
|
|
8465
|
+
"type": "string"
|
|
8466
|
+
},
|
|
8467
|
+
"pattern_flags": {
|
|
8468
|
+
"additionalProperties": false,
|
|
8469
|
+
"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.",
|
|
8470
|
+
"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.",
|
|
8471
|
+
"properties": {
|
|
8472
|
+
"dot_all": {
|
|
8473
|
+
"default": false,
|
|
8474
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8475
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8476
|
+
"type": "boolean"
|
|
8477
|
+
},
|
|
8478
|
+
"global": {
|
|
8479
|
+
"default": false,
|
|
8480
|
+
"description": "`g` - Search globally.",
|
|
8481
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8482
|
+
"type": "boolean"
|
|
8483
|
+
},
|
|
8484
|
+
"ignore_case": {
|
|
8485
|
+
"default": false,
|
|
8486
|
+
"description": "`i` - Case-insensitive.",
|
|
8487
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8488
|
+
"type": "boolean"
|
|
8489
|
+
},
|
|
8490
|
+
"multiline": {
|
|
8491
|
+
"default": false,
|
|
8492
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8493
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8494
|
+
"type": "boolean"
|
|
8495
|
+
},
|
|
8496
|
+
"unicode": {
|
|
8497
|
+
"default": false,
|
|
8498
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8499
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8500
|
+
"type": "boolean"
|
|
8501
|
+
},
|
|
8502
|
+
"unicode_sets": {
|
|
8503
|
+
"default": false,
|
|
8504
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8505
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8506
|
+
"type": "boolean"
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
"type": "object"
|
|
8510
|
+
},
|
|
8511
|
+
"pattern_message": {
|
|
8512
|
+
"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.",
|
|
8513
|
+
"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.",
|
|
8514
|
+
"type": "string"
|
|
8515
|
+
},
|
|
8044
8516
|
"prevent_resize_existing_files": {
|
|
8045
8517
|
"default": false,
|
|
8046
8518
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
@@ -8064,6 +8536,11 @@
|
|
|
8064
8536
|
"markdownDescription": "Enables the control to remove formatting from text. Applies to formatting from `bold`,\n`italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles\nor formatting.",
|
|
8065
8537
|
"type": "boolean"
|
|
8066
8538
|
},
|
|
8539
|
+
"required": {
|
|
8540
|
+
"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).",
|
|
8541
|
+
"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).",
|
|
8542
|
+
"type": "boolean"
|
|
8543
|
+
},
|
|
8067
8544
|
"resize_style": {
|
|
8068
8545
|
"default": "contain",
|
|
8069
8546
|
"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.",
|
|
@@ -8339,93 +8816,165 @@
|
|
|
8339
8816
|
"type": "string"
|
|
8340
8817
|
},
|
|
8341
8818
|
"options": {
|
|
8819
|
+
"$ref": "#/definitions/SelectInputOptions",
|
|
8820
|
+
"description": "Options that are specific to Select Inputs.",
|
|
8821
|
+
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8822
|
+
},
|
|
8823
|
+
"type": {
|
|
8824
|
+
"const": "select",
|
|
8825
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
8826
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
8827
|
+
"type": "string"
|
|
8828
|
+
}
|
|
8829
|
+
},
|
|
8830
|
+
"required": [
|
|
8831
|
+
"type"
|
|
8832
|
+
],
|
|
8833
|
+
"type": "object"
|
|
8834
|
+
},
|
|
8835
|
+
"SelectInputOptions": {
|
|
8836
|
+
"additionalProperties": false,
|
|
8837
|
+
"properties": {
|
|
8838
|
+
"allow_create": {
|
|
8839
|
+
"default": false,
|
|
8840
|
+
"description": "Allows new text values to be created at edit time.",
|
|
8841
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
8842
|
+
"type": "boolean"
|
|
8843
|
+
},
|
|
8844
|
+
"allow_empty": {
|
|
8845
|
+
"default": true,
|
|
8846
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
8847
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
8848
|
+
"type": "boolean"
|
|
8849
|
+
},
|
|
8850
|
+
"empty_type": {
|
|
8851
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8852
|
+
"enum": [
|
|
8853
|
+
"null",
|
|
8854
|
+
"string"
|
|
8855
|
+
],
|
|
8856
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8857
|
+
"type": "string"
|
|
8858
|
+
},
|
|
8859
|
+
"max_length": {
|
|
8860
|
+
"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.",
|
|
8861
|
+
"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.",
|
|
8862
|
+
"type": "number"
|
|
8863
|
+
},
|
|
8864
|
+
"min_length": {
|
|
8865
|
+
"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.",
|
|
8866
|
+
"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.",
|
|
8867
|
+
"type": "number"
|
|
8868
|
+
},
|
|
8869
|
+
"pattern": {
|
|
8870
|
+
"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.",
|
|
8871
|
+
"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.",
|
|
8872
|
+
"type": "string"
|
|
8873
|
+
},
|
|
8874
|
+
"pattern_flags": {
|
|
8342
8875
|
"additionalProperties": false,
|
|
8343
|
-
"description": "
|
|
8344
|
-
"markdownDescription": "
|
|
8876
|
+
"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.",
|
|
8877
|
+
"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.",
|
|
8345
8878
|
"properties": {
|
|
8346
|
-
"
|
|
8879
|
+
"dot_all": {
|
|
8347
8880
|
"default": false,
|
|
8348
|
-
"description": "
|
|
8349
|
-
"markdownDescription": "
|
|
8881
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8882
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8350
8883
|
"type": "boolean"
|
|
8351
8884
|
},
|
|
8352
|
-
"
|
|
8353
|
-
"default":
|
|
8354
|
-
"description": "
|
|
8355
|
-
"markdownDescription": "
|
|
8885
|
+
"global": {
|
|
8886
|
+
"default": false,
|
|
8887
|
+
"description": "`g` - Search globally.",
|
|
8888
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8356
8889
|
"type": "boolean"
|
|
8357
8890
|
},
|
|
8358
|
-
"
|
|
8359
|
-
"
|
|
8360
|
-
"
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
],
|
|
8364
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8365
|
-
"type": "string"
|
|
8366
|
-
},
|
|
8367
|
-
"picker_preview": {
|
|
8368
|
-
"$ref": "#/definitions/Preview",
|
|
8369
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8370
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8371
|
-
},
|
|
8372
|
-
"picker_view": {
|
|
8373
|
-
"description": "Controls how selectable options are rendered.",
|
|
8374
|
-
"enum": [
|
|
8375
|
-
"card",
|
|
8376
|
-
"text",
|
|
8377
|
-
"gallery",
|
|
8378
|
-
"gallery-left"
|
|
8379
|
-
],
|
|
8380
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8381
|
-
"type": "string"
|
|
8382
|
-
},
|
|
8383
|
-
"preview": {
|
|
8384
|
-
"$ref": "#/definitions/Preview",
|
|
8385
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
8386
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8891
|
+
"ignore_case": {
|
|
8892
|
+
"default": false,
|
|
8893
|
+
"description": "`i` - Case-insensitive.",
|
|
8894
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8895
|
+
"type": "boolean"
|
|
8387
8896
|
},
|
|
8388
|
-
"
|
|
8389
|
-
"
|
|
8390
|
-
"
|
|
8391
|
-
"
|
|
8897
|
+
"multiline": {
|
|
8898
|
+
"default": false,
|
|
8899
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8900
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8901
|
+
"type": "boolean"
|
|
8392
8902
|
},
|
|
8393
|
-
"
|
|
8394
|
-
"
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
{
|
|
8399
|
-
"$ref": "#/definitions/SelectValues"
|
|
8400
|
-
}
|
|
8401
|
-
],
|
|
8402
|
-
"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).",
|
|
8403
|
-
"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)."
|
|
8903
|
+
"unicode": {
|
|
8904
|
+
"default": false,
|
|
8905
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8906
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8907
|
+
"type": "boolean"
|
|
8404
8908
|
},
|
|
8405
|
-
"
|
|
8406
|
-
"
|
|
8407
|
-
"
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
"gallery",
|
|
8411
|
-
"gallery-left"
|
|
8412
|
-
],
|
|
8413
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
8414
|
-
"type": "string"
|
|
8909
|
+
"unicode_sets": {
|
|
8910
|
+
"default": false,
|
|
8911
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8912
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8913
|
+
"type": "boolean"
|
|
8415
8914
|
}
|
|
8416
8915
|
},
|
|
8417
8916
|
"type": "object"
|
|
8418
8917
|
},
|
|
8419
|
-
"
|
|
8420
|
-
"
|
|
8421
|
-
"
|
|
8422
|
-
"
|
|
8918
|
+
"pattern_message": {
|
|
8919
|
+
"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.",
|
|
8920
|
+
"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.",
|
|
8921
|
+
"type": "string"
|
|
8922
|
+
},
|
|
8923
|
+
"picker_preview": {
|
|
8924
|
+
"$ref": "#/definitions/Preview",
|
|
8925
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8926
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8927
|
+
},
|
|
8928
|
+
"picker_view": {
|
|
8929
|
+
"description": "Controls how selectable options are rendered.",
|
|
8930
|
+
"enum": [
|
|
8931
|
+
"card",
|
|
8932
|
+
"text",
|
|
8933
|
+
"gallery",
|
|
8934
|
+
"gallery-left"
|
|
8935
|
+
],
|
|
8936
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8937
|
+
"type": "string"
|
|
8938
|
+
},
|
|
8939
|
+
"preview": {
|
|
8940
|
+
"$ref": "#/definitions/Preview",
|
|
8941
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
8942
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8943
|
+
},
|
|
8944
|
+
"required": {
|
|
8945
|
+
"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).",
|
|
8946
|
+
"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).",
|
|
8947
|
+
"type": "boolean"
|
|
8948
|
+
},
|
|
8949
|
+
"value_key": {
|
|
8950
|
+
"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.",
|
|
8951
|
+
"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.",
|
|
8952
|
+
"type": "string"
|
|
8953
|
+
},
|
|
8954
|
+
"values": {
|
|
8955
|
+
"anyOf": [
|
|
8956
|
+
{
|
|
8957
|
+
"type": "string"
|
|
8958
|
+
},
|
|
8959
|
+
{
|
|
8960
|
+
"$ref": "#/definitions/SelectValues"
|
|
8961
|
+
}
|
|
8962
|
+
],
|
|
8963
|
+
"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).",
|
|
8964
|
+
"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)."
|
|
8965
|
+
},
|
|
8966
|
+
"view": {
|
|
8967
|
+
"description": "Controls how selected items are rendered.",
|
|
8968
|
+
"enum": [
|
|
8969
|
+
"card",
|
|
8970
|
+
"text",
|
|
8971
|
+
"gallery",
|
|
8972
|
+
"gallery-left"
|
|
8973
|
+
],
|
|
8974
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
8423
8975
|
"type": "string"
|
|
8424
8976
|
}
|
|
8425
8977
|
},
|
|
8426
|
-
"required": [
|
|
8427
|
-
"type"
|
|
8428
|
-
],
|
|
8429
8978
|
"type": "object"
|
|
8430
8979
|
},
|
|
8431
8980
|
"SelectValues": {
|
|
@@ -9720,8 +10269,8 @@
|
|
|
9720
10269
|
},
|
|
9721
10270
|
"options": {
|
|
9722
10271
|
"$ref": "#/definitions/TextInputOptions",
|
|
9723
|
-
"description": "Options that are specific to
|
|
9724
|
-
"markdownDescription": "Options that are specific to
|
|
10272
|
+
"description": "Options that are specific to Text Inputs.",
|
|
10273
|
+
"markdownDescription": "Options that are specific to Text Inputs."
|
|
9725
10274
|
},
|
|
9726
10275
|
"type": {
|
|
9727
10276
|
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
@@ -9761,10 +10310,79 @@
|
|
|
9761
10310
|
"description": "Icon shown beside the input.",
|
|
9762
10311
|
"markdownDescription": "Icon shown beside the input."
|
|
9763
10312
|
},
|
|
10313
|
+
"max_length": {
|
|
10314
|
+
"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.",
|
|
10315
|
+
"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.",
|
|
10316
|
+
"type": "number"
|
|
10317
|
+
},
|
|
10318
|
+
"min_length": {
|
|
10319
|
+
"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.",
|
|
10320
|
+
"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.",
|
|
10321
|
+
"type": "number"
|
|
10322
|
+
},
|
|
10323
|
+
"pattern": {
|
|
10324
|
+
"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.",
|
|
10325
|
+
"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.",
|
|
10326
|
+
"type": "string"
|
|
10327
|
+
},
|
|
10328
|
+
"pattern_flags": {
|
|
10329
|
+
"additionalProperties": false,
|
|
10330
|
+
"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.",
|
|
10331
|
+
"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.",
|
|
10332
|
+
"properties": {
|
|
10333
|
+
"dot_all": {
|
|
10334
|
+
"default": false,
|
|
10335
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10336
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10337
|
+
"type": "boolean"
|
|
10338
|
+
},
|
|
10339
|
+
"global": {
|
|
10340
|
+
"default": false,
|
|
10341
|
+
"description": "`g` - Search globally.",
|
|
10342
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10343
|
+
"type": "boolean"
|
|
10344
|
+
},
|
|
10345
|
+
"ignore_case": {
|
|
10346
|
+
"default": false,
|
|
10347
|
+
"description": "`i` - Case-insensitive.",
|
|
10348
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10349
|
+
"type": "boolean"
|
|
10350
|
+
},
|
|
10351
|
+
"multiline": {
|
|
10352
|
+
"default": false,
|
|
10353
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10354
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10355
|
+
"type": "boolean"
|
|
10356
|
+
},
|
|
10357
|
+
"unicode": {
|
|
10358
|
+
"default": false,
|
|
10359
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10360
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10361
|
+
"type": "boolean"
|
|
10362
|
+
},
|
|
10363
|
+
"unicode_sets": {
|
|
10364
|
+
"default": false,
|
|
10365
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10366
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10367
|
+
"type": "boolean"
|
|
10368
|
+
}
|
|
10369
|
+
},
|
|
10370
|
+
"type": "object"
|
|
10371
|
+
},
|
|
10372
|
+
"pattern_message": {
|
|
10373
|
+
"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.",
|
|
10374
|
+
"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.",
|
|
10375
|
+
"type": "string"
|
|
10376
|
+
},
|
|
9764
10377
|
"placeholder": {
|
|
9765
10378
|
"description": "Text shown when this input has no value.",
|
|
9766
10379
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9767
10380
|
"type": "string"
|
|
10381
|
+
},
|
|
10382
|
+
"required": {
|
|
10383
|
+
"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).",
|
|
10384
|
+
"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).",
|
|
10385
|
+
"type": "boolean"
|
|
9768
10386
|
}
|
|
9769
10387
|
},
|
|
9770
10388
|
"type": "object"
|
|
@@ -9851,8 +10469,8 @@
|
|
|
9851
10469
|
},
|
|
9852
10470
|
"options": {
|
|
9853
10471
|
"$ref": "#/definitions/TextareaInputOptions",
|
|
9854
|
-
"description": "Options that are specific to
|
|
9855
|
-
"markdownDescription": "Options that are specific to
|
|
10472
|
+
"description": "Options that are specific to Textarea Inputs.",
|
|
10473
|
+
"markdownDescription": "Options that are specific to Textarea Inputs."
|
|
9856
10474
|
},
|
|
9857
10475
|
"type": {
|
|
9858
10476
|
"const": "textarea",
|
|
@@ -9883,11 +10501,80 @@
|
|
|
9883
10501
|
"description": "Icon shown beside the input.",
|
|
9884
10502
|
"markdownDescription": "Icon shown beside the input."
|
|
9885
10503
|
},
|
|
10504
|
+
"max_length": {
|
|
10505
|
+
"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.",
|
|
10506
|
+
"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.",
|
|
10507
|
+
"type": "number"
|
|
10508
|
+
},
|
|
10509
|
+
"min_length": {
|
|
10510
|
+
"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.",
|
|
10511
|
+
"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.",
|
|
10512
|
+
"type": "number"
|
|
10513
|
+
},
|
|
10514
|
+
"pattern": {
|
|
10515
|
+
"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.",
|
|
10516
|
+
"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.",
|
|
10517
|
+
"type": "string"
|
|
10518
|
+
},
|
|
10519
|
+
"pattern_flags": {
|
|
10520
|
+
"additionalProperties": false,
|
|
10521
|
+
"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.",
|
|
10522
|
+
"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.",
|
|
10523
|
+
"properties": {
|
|
10524
|
+
"dot_all": {
|
|
10525
|
+
"default": false,
|
|
10526
|
+
"description": "`s` - `.` matches newline characters.",
|
|
10527
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
10528
|
+
"type": "boolean"
|
|
10529
|
+
},
|
|
10530
|
+
"global": {
|
|
10531
|
+
"default": false,
|
|
10532
|
+
"description": "`g` - Search globally.",
|
|
10533
|
+
"markdownDescription": "`g` - Search globally.",
|
|
10534
|
+
"type": "boolean"
|
|
10535
|
+
},
|
|
10536
|
+
"ignore_case": {
|
|
10537
|
+
"default": false,
|
|
10538
|
+
"description": "`i` - Case-insensitive.",
|
|
10539
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
10540
|
+
"type": "boolean"
|
|
10541
|
+
},
|
|
10542
|
+
"multiline": {
|
|
10543
|
+
"default": false,
|
|
10544
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10545
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
10546
|
+
"type": "boolean"
|
|
10547
|
+
},
|
|
10548
|
+
"unicode": {
|
|
10549
|
+
"default": false,
|
|
10550
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10551
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
10552
|
+
"type": "boolean"
|
|
10553
|
+
},
|
|
10554
|
+
"unicode_sets": {
|
|
10555
|
+
"default": false,
|
|
10556
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
10557
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
10558
|
+
"type": "boolean"
|
|
10559
|
+
}
|
|
10560
|
+
},
|
|
10561
|
+
"type": "object"
|
|
10562
|
+
},
|
|
10563
|
+
"pattern_message": {
|
|
10564
|
+
"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.",
|
|
10565
|
+
"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.",
|
|
10566
|
+
"type": "string"
|
|
10567
|
+
},
|
|
9886
10568
|
"placeholder": {
|
|
9887
10569
|
"description": "Text shown when this input has no value.",
|
|
9888
10570
|
"markdownDescription": "Text shown when this input has no value.",
|
|
9889
10571
|
"type": "string"
|
|
9890
10572
|
},
|
|
10573
|
+
"required": {
|
|
10574
|
+
"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).",
|
|
10575
|
+
"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).",
|
|
10576
|
+
"type": "boolean"
|
|
10577
|
+
},
|
|
9891
10578
|
"show_count": {
|
|
9892
10579
|
"default": false,
|
|
9893
10580
|
"description": "Shows a character counter below the input if enabled.",
|
|
@@ -10021,9 +10708,26 @@
|
|
|
10021
10708
|
"type": "string"
|
|
10022
10709
|
},
|
|
10023
10710
|
"options": {
|
|
10024
|
-
"
|
|
10711
|
+
"additionalProperties": false,
|
|
10025
10712
|
"description": "Options that are specific to Time inputs.",
|
|
10026
|
-
"markdownDescription": "Options that are specific to Time inputs."
|
|
10713
|
+
"markdownDescription": "Options that are specific to Time inputs.",
|
|
10714
|
+
"properties": {
|
|
10715
|
+
"empty_type": {
|
|
10716
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10717
|
+
"enum": [
|
|
10718
|
+
"null",
|
|
10719
|
+
"string"
|
|
10720
|
+
],
|
|
10721
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10722
|
+
"type": "string"
|
|
10723
|
+
},
|
|
10724
|
+
"required": {
|
|
10725
|
+
"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).",
|
|
10726
|
+
"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).",
|
|
10727
|
+
"type": "boolean"
|
|
10728
|
+
}
|
|
10729
|
+
},
|
|
10730
|
+
"type": "object"
|
|
10027
10731
|
},
|
|
10028
10732
|
"type": {
|
|
10029
10733
|
"const": "time",
|
|
@@ -10909,6 +11613,11 @@
|
|
|
10909
11613
|
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can\nprevent pop-in as a page loads.",
|
|
10910
11614
|
"type": "boolean"
|
|
10911
11615
|
},
|
|
11616
|
+
"max_length": {
|
|
11617
|
+
"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.",
|
|
11618
|
+
"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.",
|
|
11619
|
+
"type": "number"
|
|
11620
|
+
},
|
|
10912
11621
|
"mime_type": {
|
|
10913
11622
|
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
10914
11623
|
"enum": [
|
|
@@ -10919,17 +11628,81 @@
|
|
|
10919
11628
|
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated\nto match. Defaults to keeping the mime type of the uploaded file.",
|
|
10920
11629
|
"type": "string"
|
|
10921
11630
|
},
|
|
11631
|
+
"min_length": {
|
|
11632
|
+
"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.",
|
|
11633
|
+
"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.",
|
|
11634
|
+
"type": "number"
|
|
11635
|
+
},
|
|
10922
11636
|
"paths": {
|
|
10923
11637
|
"$ref": "#/definitions/Paths",
|
|
10924
11638
|
"description": "Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.",
|
|
10925
11639
|
"markdownDescription": "Paths to where new asset files are uploaded to. They also set the default path when choosing\nexisting images, and linking to existing files. Each path is relative to global `source`.\nDefaults to the global `paths`."
|
|
10926
11640
|
},
|
|
11641
|
+
"pattern": {
|
|
11642
|
+
"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.",
|
|
11643
|
+
"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.",
|
|
11644
|
+
"type": "string"
|
|
11645
|
+
},
|
|
11646
|
+
"pattern_flags": {
|
|
11647
|
+
"additionalProperties": false,
|
|
11648
|
+
"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.",
|
|
11649
|
+
"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.",
|
|
11650
|
+
"properties": {
|
|
11651
|
+
"dot_all": {
|
|
11652
|
+
"default": false,
|
|
11653
|
+
"description": "`s` - `.` matches newline characters.",
|
|
11654
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
11655
|
+
"type": "boolean"
|
|
11656
|
+
},
|
|
11657
|
+
"global": {
|
|
11658
|
+
"default": false,
|
|
11659
|
+
"description": "`g` - Search globally.",
|
|
11660
|
+
"markdownDescription": "`g` - Search globally.",
|
|
11661
|
+
"type": "boolean"
|
|
11662
|
+
},
|
|
11663
|
+
"ignore_case": {
|
|
11664
|
+
"default": false,
|
|
11665
|
+
"description": "`i` - Case-insensitive.",
|
|
11666
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
11667
|
+
"type": "boolean"
|
|
11668
|
+
},
|
|
11669
|
+
"multiline": {
|
|
11670
|
+
"default": false,
|
|
11671
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11672
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
11673
|
+
"type": "boolean"
|
|
11674
|
+
},
|
|
11675
|
+
"unicode": {
|
|
11676
|
+
"default": false,
|
|
11677
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11678
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
11679
|
+
"type": "boolean"
|
|
11680
|
+
},
|
|
11681
|
+
"unicode_sets": {
|
|
11682
|
+
"default": false,
|
|
11683
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
11684
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
11685
|
+
"type": "boolean"
|
|
11686
|
+
}
|
|
11687
|
+
},
|
|
11688
|
+
"type": "object"
|
|
11689
|
+
},
|
|
11690
|
+
"pattern_message": {
|
|
11691
|
+
"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.",
|
|
11692
|
+
"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.",
|
|
11693
|
+
"type": "string"
|
|
11694
|
+
},
|
|
10927
11695
|
"prevent_resize_existing_files": {
|
|
10928
11696
|
"default": false,
|
|
10929
11697
|
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
10930
11698
|
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing\nimages.",
|
|
10931
11699
|
"type": "boolean"
|
|
10932
11700
|
},
|
|
11701
|
+
"required": {
|
|
11702
|
+
"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).",
|
|
11703
|
+
"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).",
|
|
11704
|
+
"type": "boolean"
|
|
11705
|
+
},
|
|
10933
11706
|
"resize_style": {
|
|
10934
11707
|
"default": "contain",
|
|
10935
11708
|
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
@@ -10974,21 +11747,6 @@
|
|
|
10974
11747
|
},
|
|
10975
11748
|
"type": "object"
|
|
10976
11749
|
},
|
|
10977
|
-
"WithEmptyTypeText": {
|
|
10978
|
-
"additionalProperties": false,
|
|
10979
|
-
"properties": {
|
|
10980
|
-
"empty_type": {
|
|
10981
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10982
|
-
"enum": [
|
|
10983
|
-
"null",
|
|
10984
|
-
"string"
|
|
10985
|
-
],
|
|
10986
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
10987
|
-
"type": "string"
|
|
10988
|
-
}
|
|
10989
|
-
},
|
|
10990
|
-
"type": "object"
|
|
10991
|
-
},
|
|
10992
11750
|
"WithPaths": {
|
|
10993
11751
|
"additionalProperties": false,
|
|
10994
11752
|
"properties": {
|