@cloudcannon/configuration-types 0.0.32 → 0.0.34
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 +475 -400
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +475 -400
- package/dist/cloudcannon-config.legacy-hugo.schema.json +475 -400
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +475 -400
- package/dist/cloudcannon-config.legacy-reader.schema.json +475 -400
- package/package.json +1 -1
- package/src/inputs.d.ts +43 -50
|
@@ -146,20 +146,20 @@
|
|
|
146
146
|
"properties": {
|
|
147
147
|
"disable_add": {
|
|
148
148
|
"default": false,
|
|
149
|
-
"description": "Hides the add button, and context menu actions on each
|
|
150
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
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
151
|
"type": "boolean"
|
|
152
152
|
},
|
|
153
153
|
"disable_remove": {
|
|
154
154
|
"default": false,
|
|
155
|
-
"description": "Hides the context menu actions on each
|
|
156
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
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
157
|
"type": "boolean"
|
|
158
158
|
},
|
|
159
159
|
"disable_reorder": {
|
|
160
160
|
"default": false,
|
|
161
|
-
"description": "Hides the controls on each
|
|
162
|
-
"markdownDescription": "Hides the controls on each
|
|
161
|
+
"description": "Hides the controls on each item for moving them.",
|
|
162
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
163
163
|
"type": "boolean"
|
|
164
164
|
},
|
|
165
165
|
"empty_type": {
|
|
@@ -841,156 +841,159 @@
|
|
|
841
841
|
"type": "string"
|
|
842
842
|
},
|
|
843
843
|
"options": {
|
|
844
|
-
"
|
|
844
|
+
"$ref": "#/definitions/ChoiceInputOptions",
|
|
845
845
|
"description": "Options that are specific to Choice Inputs.",
|
|
846
|
-
"markdownDescription": "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": {
|
|
894
|
+
"additionalProperties": false,
|
|
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.",
|
|
847
897
|
"properties": {
|
|
848
|
-
"
|
|
849
|
-
"default":
|
|
850
|
-
"description": "
|
|
851
|
-
"markdownDescription": "
|
|
898
|
+
"dot_all": {
|
|
899
|
+
"default": false,
|
|
900
|
+
"description": "`s` - `.` matches newline characters.",
|
|
901
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
852
902
|
"type": "boolean"
|
|
853
903
|
},
|
|
854
|
-
"
|
|
855
|
-
"
|
|
856
|
-
"
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
],
|
|
860
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
861
|
-
"type": "string"
|
|
862
|
-
},
|
|
863
|
-
"max_length": {
|
|
864
|
-
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
865
|
-
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
866
|
-
"type": "number"
|
|
867
|
-
},
|
|
868
|
-
"min_length": {
|
|
869
|
-
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
870
|
-
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
871
|
-
"type": "number"
|
|
872
|
-
},
|
|
873
|
-
"pattern": {
|
|
874
|
-
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
875
|
-
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
876
|
-
"type": "string"
|
|
877
|
-
},
|
|
878
|
-
"pattern_flags": {
|
|
879
|
-
"additionalProperties": false,
|
|
880
|
-
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
881
|
-
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
882
|
-
"properties": {
|
|
883
|
-
"dot_all": {
|
|
884
|
-
"default": false,
|
|
885
|
-
"description": "`s` - `.` matches newline characters.",
|
|
886
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
887
|
-
"type": "boolean"
|
|
888
|
-
},
|
|
889
|
-
"global": {
|
|
890
|
-
"default": false,
|
|
891
|
-
"description": "`g` - Search globally.",
|
|
892
|
-
"markdownDescription": "`g` - Search globally.",
|
|
893
|
-
"type": "boolean"
|
|
894
|
-
},
|
|
895
|
-
"ignore_case": {
|
|
896
|
-
"default": false,
|
|
897
|
-
"description": "`i` - Case-insensitive.",
|
|
898
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
899
|
-
"type": "boolean"
|
|
900
|
-
},
|
|
901
|
-
"multiline": {
|
|
902
|
-
"default": false,
|
|
903
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
904
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
905
|
-
"type": "boolean"
|
|
906
|
-
},
|
|
907
|
-
"unicode": {
|
|
908
|
-
"default": false,
|
|
909
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
910
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
911
|
-
"type": "boolean"
|
|
912
|
-
},
|
|
913
|
-
"unicode_sets": {
|
|
914
|
-
"default": false,
|
|
915
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
916
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
917
|
-
"type": "boolean"
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
"type": "object"
|
|
921
|
-
},
|
|
922
|
-
"pattern_message": {
|
|
923
|
-
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
924
|
-
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
925
|
-
"type": "string"
|
|
926
|
-
},
|
|
927
|
-
"picker_preview": {
|
|
928
|
-
"$ref": "#/definitions/Preview",
|
|
929
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
930
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
931
|
-
},
|
|
932
|
-
"picker_view": {
|
|
933
|
-
"description": "Controls how selectable options are rendered.",
|
|
934
|
-
"enum": [
|
|
935
|
-
"card",
|
|
936
|
-
"text",
|
|
937
|
-
"gallery",
|
|
938
|
-
"gallery-left"
|
|
939
|
-
],
|
|
940
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
941
|
-
"type": "string"
|
|
942
|
-
},
|
|
943
|
-
"preview": {
|
|
944
|
-
"$ref": "#/definitions/Preview",
|
|
945
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
946
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
904
|
+
"global": {
|
|
905
|
+
"default": false,
|
|
906
|
+
"description": "`g` - Search globally.",
|
|
907
|
+
"markdownDescription": "`g` - Search globally.",
|
|
908
|
+
"type": "boolean"
|
|
947
909
|
},
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
"
|
|
910
|
+
"ignore_case": {
|
|
911
|
+
"default": false,
|
|
912
|
+
"description": "`i` - Case-insensitive.",
|
|
913
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
951
914
|
"type": "boolean"
|
|
952
915
|
},
|
|
953
|
-
"
|
|
954
|
-
"
|
|
955
|
-
"
|
|
956
|
-
"
|
|
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"
|
|
957
921
|
},
|
|
958
|
-
"
|
|
959
|
-
"
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
{
|
|
964
|
-
"$ref": "#/definitions/SelectValues"
|
|
965
|
-
}
|
|
966
|
-
],
|
|
967
|
-
"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).",
|
|
968
|
-
"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"
|
|
969
927
|
},
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
"gallery",
|
|
976
|
-
"gallery-left"
|
|
977
|
-
],
|
|
978
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
979
|
-
"type": "string"
|
|
928
|
+
"unicode_sets": {
|
|
929
|
+
"default": false,
|
|
930
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
931
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
932
|
+
"type": "boolean"
|
|
980
933
|
}
|
|
981
934
|
},
|
|
982
935
|
"type": "object"
|
|
983
936
|
},
|
|
984
|
-
"
|
|
985
|
-
"
|
|
986
|
-
"
|
|
987
|
-
"
|
|
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.",
|
|
988
994
|
"type": "string"
|
|
989
995
|
}
|
|
990
996
|
},
|
|
991
|
-
"required": [
|
|
992
|
-
"type"
|
|
993
|
-
],
|
|
994
997
|
"type": "object"
|
|
995
998
|
},
|
|
996
999
|
"CodeInput": {
|
|
@@ -1643,6 +1646,11 @@
|
|
|
1643
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.",
|
|
1644
1647
|
"type": "string"
|
|
1645
1648
|
},
|
|
1649
|
+
"required": {
|
|
1650
|
+
"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).",
|
|
1651
|
+
"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).",
|
|
1652
|
+
"type": "boolean"
|
|
1653
|
+
},
|
|
1646
1654
|
"start_from": {
|
|
1647
1655
|
"description": "This key defines the earliest date and time, inclusive, that CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from selecting an earlier date and time. If the Input already contains an earlier date and time, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be in ISO8601 format. If `options.end_before` is also configured, this key cannot be a later date and time.\n\nThis key has no default.",
|
|
1648
1656
|
"format": "date-time",
|
|
@@ -6876,96 +6884,9 @@
|
|
|
6876
6884
|
"type": "string"
|
|
6877
6885
|
},
|
|
6878
6886
|
"options": {
|
|
6879
|
-
"
|
|
6887
|
+
"$ref": "#/definitions/MultichoiceInputOptions",
|
|
6880
6888
|
"description": "Options that are specific to Multichoice Inputs.",
|
|
6881
|
-
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
6882
|
-
"properties": {
|
|
6883
|
-
"allow_empty": {
|
|
6884
|
-
"default": true,
|
|
6885
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6886
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6887
|
-
"type": "boolean"
|
|
6888
|
-
},
|
|
6889
|
-
"empty_type": {
|
|
6890
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6891
|
-
"enum": [
|
|
6892
|
-
"null",
|
|
6893
|
-
"array"
|
|
6894
|
-
],
|
|
6895
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6896
|
-
"type": "string"
|
|
6897
|
-
},
|
|
6898
|
-
"max_items": {
|
|
6899
|
-
"description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
6900
|
-
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
6901
|
-
"type": "number"
|
|
6902
|
-
},
|
|
6903
|
-
"min_items": {
|
|
6904
|
-
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
6905
|
-
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
6906
|
-
"type": "number"
|
|
6907
|
-
},
|
|
6908
|
-
"picker_preview": {
|
|
6909
|
-
"$ref": "#/definitions/Preview",
|
|
6910
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6911
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6912
|
-
},
|
|
6913
|
-
"picker_view": {
|
|
6914
|
-
"description": "Controls how selectable options are rendered.",
|
|
6915
|
-
"enum": [
|
|
6916
|
-
"card",
|
|
6917
|
-
"text",
|
|
6918
|
-
"gallery",
|
|
6919
|
-
"gallery-left"
|
|
6920
|
-
],
|
|
6921
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6922
|
-
"type": "string"
|
|
6923
|
-
},
|
|
6924
|
-
"preview": {
|
|
6925
|
-
"$ref": "#/definitions/Preview",
|
|
6926
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
6927
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6928
|
-
},
|
|
6929
|
-
"required": {
|
|
6930
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
6931
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
6932
|
-
"type": "boolean"
|
|
6933
|
-
},
|
|
6934
|
-
"unique_on": {
|
|
6935
|
-
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
6936
|
-
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
6937
|
-
"type": "string"
|
|
6938
|
-
},
|
|
6939
|
-
"value_key": {
|
|
6940
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
6941
|
-
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
6942
|
-
"type": "string"
|
|
6943
|
-
},
|
|
6944
|
-
"values": {
|
|
6945
|
-
"anyOf": [
|
|
6946
|
-
{
|
|
6947
|
-
"type": "string"
|
|
6948
|
-
},
|
|
6949
|
-
{
|
|
6950
|
-
"$ref": "#/definitions/SelectValues"
|
|
6951
|
-
}
|
|
6952
|
-
],
|
|
6953
|
-
"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).",
|
|
6954
|
-
"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)."
|
|
6955
|
-
},
|
|
6956
|
-
"view": {
|
|
6957
|
-
"description": "Controls how selected items are rendered.",
|
|
6958
|
-
"enum": [
|
|
6959
|
-
"card",
|
|
6960
|
-
"text",
|
|
6961
|
-
"gallery",
|
|
6962
|
-
"gallery-left"
|
|
6963
|
-
],
|
|
6964
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
6965
|
-
"type": "string"
|
|
6966
|
-
}
|
|
6967
|
-
},
|
|
6968
|
-
"type": "object"
|
|
6889
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
6969
6890
|
},
|
|
6970
6891
|
"type": {
|
|
6971
6892
|
"const": "multichoice",
|
|
@@ -6979,39 +6900,129 @@
|
|
|
6979
6900
|
],
|
|
6980
6901
|
"type": "object"
|
|
6981
6902
|
},
|
|
6982
|
-
"
|
|
6903
|
+
"MultichoiceInputOptions": {
|
|
6983
6904
|
"additionalProperties": false,
|
|
6984
6905
|
"properties": {
|
|
6985
|
-
"
|
|
6986
|
-
"
|
|
6987
|
-
"
|
|
6906
|
+
"allow_empty": {
|
|
6907
|
+
"default": true,
|
|
6908
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
6909
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6988
6910
|
"type": "boolean"
|
|
6989
6911
|
},
|
|
6990
|
-
"
|
|
6991
|
-
"description": "
|
|
6992
|
-
"
|
|
6912
|
+
"empty_type": {
|
|
6913
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6914
|
+
"enum": [
|
|
6915
|
+
"null",
|
|
6916
|
+
"array"
|
|
6917
|
+
],
|
|
6918
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6993
6919
|
"type": "string"
|
|
6994
6920
|
},
|
|
6995
|
-
"
|
|
6996
|
-
"
|
|
6997
|
-
"
|
|
6998
|
-
"
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
6921
|
+
"max_items": {
|
|
6922
|
+
"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.",
|
|
6923
|
+
"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.",
|
|
6924
|
+
"type": "number"
|
|
6925
|
+
},
|
|
6926
|
+
"min_items": {
|
|
6927
|
+
"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.",
|
|
6928
|
+
"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.",
|
|
6929
|
+
"type": "number"
|
|
6930
|
+
},
|
|
6931
|
+
"picker_preview": {
|
|
6932
|
+
"$ref": "#/definitions/Preview",
|
|
6933
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
6934
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
6935
|
+
},
|
|
6936
|
+
"picker_view": {
|
|
6937
|
+
"description": "Controls how selectable options are rendered.",
|
|
6938
|
+
"enum": [
|
|
6939
|
+
"card",
|
|
6940
|
+
"text",
|
|
6941
|
+
"gallery",
|
|
6942
|
+
"gallery-left"
|
|
6943
|
+
],
|
|
6944
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
6945
|
+
"type": "string"
|
|
6946
|
+
},
|
|
6947
|
+
"preview": {
|
|
6948
|
+
"$ref": "#/definitions/Preview",
|
|
6949
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
6950
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
6951
|
+
},
|
|
6952
|
+
"required": {
|
|
6953
|
+
"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).",
|
|
6954
|
+
"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).",
|
|
6955
|
+
"type": "boolean"
|
|
6956
|
+
},
|
|
6957
|
+
"unique_on": {
|
|
6958
|
+
"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.",
|
|
6959
|
+
"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.",
|
|
6960
|
+
"type": "string"
|
|
6961
|
+
},
|
|
6962
|
+
"value_key": {
|
|
6963
|
+
"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.",
|
|
6964
|
+
"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.",
|
|
6965
|
+
"type": "string"
|
|
6966
|
+
},
|
|
6967
|
+
"values": {
|
|
6968
|
+
"anyOf": [
|
|
6969
|
+
{
|
|
6970
|
+
"type": "string"
|
|
6971
|
+
},
|
|
6972
|
+
{
|
|
6973
|
+
"$ref": "#/definitions/SelectValues"
|
|
6974
|
+
}
|
|
6975
|
+
],
|
|
6976
|
+
"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).",
|
|
6977
|
+
"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)."
|
|
6978
|
+
},
|
|
6979
|
+
"view": {
|
|
6980
|
+
"description": "Controls how selected items are rendered.",
|
|
6981
|
+
"enum": [
|
|
6982
|
+
"card",
|
|
6983
|
+
"text",
|
|
6984
|
+
"gallery",
|
|
6985
|
+
"gallery-left"
|
|
6986
|
+
],
|
|
6987
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
6988
|
+
"type": "string"
|
|
6989
|
+
}
|
|
6990
|
+
},
|
|
6991
|
+
"type": "object"
|
|
6992
|
+
},
|
|
6993
|
+
"MultiselectInput": {
|
|
6994
|
+
"additionalProperties": false,
|
|
6995
|
+
"properties": {
|
|
6996
|
+
"cascade": {
|
|
6997
|
+
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
6998
|
+
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
6999
|
+
"type": "boolean"
|
|
7000
|
+
},
|
|
7001
|
+
"comment": {
|
|
7002
|
+
"description": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
7003
|
+
"markdownDescription": "Changes the subtext below the _Label_. Has no default. Supports a limited set of Markdown:\nlinks, bold, italic, subscript, superscript, and inline code elements are allowed.",
|
|
7004
|
+
"type": "string"
|
|
7005
|
+
},
|
|
7006
|
+
"context": {
|
|
7007
|
+
"additionalProperties": false,
|
|
7008
|
+
"description": "Adds an expandable section of rich text below the input.",
|
|
7009
|
+
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
7010
|
+
"properties": {
|
|
7011
|
+
"content": {
|
|
7012
|
+
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7013
|
+
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7014
|
+
"type": "string"
|
|
7015
|
+
},
|
|
7016
|
+
"icon": {
|
|
7017
|
+
"$ref": "#/definitions/Icon",
|
|
7018
|
+
"description": "The icon shown when not open.",
|
|
7019
|
+
"markdownDescription": "The icon shown when not open."
|
|
7020
|
+
},
|
|
7021
|
+
"open": {
|
|
7022
|
+
"description": "Makes the content visible initially.",
|
|
7023
|
+
"markdownDescription": "Makes the content visible initially.",
|
|
7024
|
+
"type": "boolean"
|
|
7025
|
+
},
|
|
7015
7026
|
"title": {
|
|
7016
7027
|
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
7017
7028
|
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
@@ -7079,22 +7090,34 @@
|
|
|
7079
7090
|
"MultiselectInputOptions": {
|
|
7080
7091
|
"additionalProperties": false,
|
|
7081
7092
|
"properties": {
|
|
7093
|
+
"allow_create": {
|
|
7094
|
+
"default": false,
|
|
7095
|
+
"description": "Allows new text values to be created at edit time.",
|
|
7096
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7097
|
+
"type": "boolean"
|
|
7098
|
+
},
|
|
7099
|
+
"allow_empty": {
|
|
7100
|
+
"default": true,
|
|
7101
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7102
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7103
|
+
"type": "boolean"
|
|
7104
|
+
},
|
|
7082
7105
|
"disable_add": {
|
|
7083
7106
|
"default": false,
|
|
7084
|
-
"description": "Hides the add button, and context menu actions on each
|
|
7085
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
7107
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7108
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7086
7109
|
"type": "boolean"
|
|
7087
7110
|
},
|
|
7088
7111
|
"disable_remove": {
|
|
7089
7112
|
"default": false,
|
|
7090
|
-
"description": "Hides the context menu actions on each
|
|
7091
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
7113
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
7114
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
7092
7115
|
"type": "boolean"
|
|
7093
7116
|
},
|
|
7094
7117
|
"disable_reorder": {
|
|
7095
7118
|
"default": false,
|
|
7096
|
-
"description": "Hides the controls on each
|
|
7097
|
-
"markdownDescription": "Hides the controls on each
|
|
7119
|
+
"description": "Hides the controls on each item for moving them.",
|
|
7120
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
7098
7121
|
"type": "boolean"
|
|
7099
7122
|
},
|
|
7100
7123
|
"empty_type": {
|
|
@@ -7116,6 +7139,27 @@
|
|
|
7116
7139
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7117
7140
|
"type": "number"
|
|
7118
7141
|
},
|
|
7142
|
+
"picker_preview": {
|
|
7143
|
+
"$ref": "#/definitions/Preview",
|
|
7144
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7145
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7146
|
+
},
|
|
7147
|
+
"picker_view": {
|
|
7148
|
+
"description": "Controls how selectable options are rendered.",
|
|
7149
|
+
"enum": [
|
|
7150
|
+
"card",
|
|
7151
|
+
"text",
|
|
7152
|
+
"gallery",
|
|
7153
|
+
"gallery-left"
|
|
7154
|
+
],
|
|
7155
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7156
|
+
"type": "string"
|
|
7157
|
+
},
|
|
7158
|
+
"preview": {
|
|
7159
|
+
"$ref": "#/definitions/Preview",
|
|
7160
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7161
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7162
|
+
},
|
|
7119
7163
|
"required": {
|
|
7120
7164
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7121
7165
|
"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).",
|
|
@@ -7125,6 +7169,34 @@
|
|
|
7125
7169
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7126
7170
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7127
7171
|
"type": "string"
|
|
7172
|
+
},
|
|
7173
|
+
"value_key": {
|
|
7174
|
+
"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.",
|
|
7175
|
+
"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.",
|
|
7176
|
+
"type": "string"
|
|
7177
|
+
},
|
|
7178
|
+
"values": {
|
|
7179
|
+
"anyOf": [
|
|
7180
|
+
{
|
|
7181
|
+
"type": "string"
|
|
7182
|
+
},
|
|
7183
|
+
{
|
|
7184
|
+
"$ref": "#/definitions/SelectValues"
|
|
7185
|
+
}
|
|
7186
|
+
],
|
|
7187
|
+
"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).",
|
|
7188
|
+
"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)."
|
|
7189
|
+
},
|
|
7190
|
+
"view": {
|
|
7191
|
+
"description": "Controls how selected items are rendered.",
|
|
7192
|
+
"enum": [
|
|
7193
|
+
"card",
|
|
7194
|
+
"text",
|
|
7195
|
+
"gallery",
|
|
7196
|
+
"gallery-left"
|
|
7197
|
+
],
|
|
7198
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7199
|
+
"type": "string"
|
|
7128
7200
|
}
|
|
7129
7201
|
},
|
|
7130
7202
|
"type": "object"
|
|
@@ -8749,162 +8821,165 @@
|
|
|
8749
8821
|
"type": "string"
|
|
8750
8822
|
},
|
|
8751
8823
|
"options": {
|
|
8752
|
-
"
|
|
8824
|
+
"$ref": "#/definitions/SelectInputOptions",
|
|
8753
8825
|
"description": "Options that are specific to Select Inputs.",
|
|
8754
|
-
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8826
|
+
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8827
|
+
},
|
|
8828
|
+
"type": {
|
|
8829
|
+
"const": "select",
|
|
8830
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
8831
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
8832
|
+
"type": "string"
|
|
8833
|
+
}
|
|
8834
|
+
},
|
|
8835
|
+
"required": [
|
|
8836
|
+
"type"
|
|
8837
|
+
],
|
|
8838
|
+
"type": "object"
|
|
8839
|
+
},
|
|
8840
|
+
"SelectInputOptions": {
|
|
8841
|
+
"additionalProperties": false,
|
|
8842
|
+
"properties": {
|
|
8843
|
+
"allow_create": {
|
|
8844
|
+
"default": false,
|
|
8845
|
+
"description": "Allows new text values to be created at edit time.",
|
|
8846
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
8847
|
+
"type": "boolean"
|
|
8848
|
+
},
|
|
8849
|
+
"allow_empty": {
|
|
8850
|
+
"default": true,
|
|
8851
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
8852
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
8853
|
+
"type": "boolean"
|
|
8854
|
+
},
|
|
8855
|
+
"empty_type": {
|
|
8856
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8857
|
+
"enum": [
|
|
8858
|
+
"null",
|
|
8859
|
+
"string"
|
|
8860
|
+
],
|
|
8861
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8862
|
+
"type": "string"
|
|
8863
|
+
},
|
|
8864
|
+
"max_length": {
|
|
8865
|
+
"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.",
|
|
8866
|
+
"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.",
|
|
8867
|
+
"type": "number"
|
|
8868
|
+
},
|
|
8869
|
+
"min_length": {
|
|
8870
|
+
"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.",
|
|
8871
|
+
"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.",
|
|
8872
|
+
"type": "number"
|
|
8873
|
+
},
|
|
8874
|
+
"pattern": {
|
|
8875
|
+
"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.",
|
|
8876
|
+
"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.",
|
|
8877
|
+
"type": "string"
|
|
8878
|
+
},
|
|
8879
|
+
"pattern_flags": {
|
|
8880
|
+
"additionalProperties": false,
|
|
8881
|
+
"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.",
|
|
8882
|
+
"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.",
|
|
8755
8883
|
"properties": {
|
|
8756
|
-
"
|
|
8884
|
+
"dot_all": {
|
|
8757
8885
|
"default": false,
|
|
8758
|
-
"description": "
|
|
8759
|
-
"markdownDescription": "
|
|
8886
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8887
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8760
8888
|
"type": "boolean"
|
|
8761
8889
|
},
|
|
8762
|
-
"
|
|
8763
|
-
"default":
|
|
8764
|
-
"description": "
|
|
8765
|
-
"markdownDescription": "
|
|
8890
|
+
"global": {
|
|
8891
|
+
"default": false,
|
|
8892
|
+
"description": "`g` - Search globally.",
|
|
8893
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8766
8894
|
"type": "boolean"
|
|
8767
8895
|
},
|
|
8768
|
-
"
|
|
8769
|
-
"
|
|
8770
|
-
"
|
|
8771
|
-
|
|
8772
|
-
"string"
|
|
8773
|
-
],
|
|
8774
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8775
|
-
"type": "string"
|
|
8776
|
-
},
|
|
8777
|
-
"max_length": {
|
|
8778
|
-
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8779
|
-
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8780
|
-
"type": "number"
|
|
8781
|
-
},
|
|
8782
|
-
"min_length": {
|
|
8783
|
-
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8784
|
-
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8785
|
-
"type": "number"
|
|
8786
|
-
},
|
|
8787
|
-
"pattern": {
|
|
8788
|
-
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8789
|
-
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8790
|
-
"type": "string"
|
|
8791
|
-
},
|
|
8792
|
-
"pattern_flags": {
|
|
8793
|
-
"additionalProperties": false,
|
|
8794
|
-
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8795
|
-
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8796
|
-
"properties": {
|
|
8797
|
-
"dot_all": {
|
|
8798
|
-
"default": false,
|
|
8799
|
-
"description": "`s` - `.` matches newline characters.",
|
|
8800
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8801
|
-
"type": "boolean"
|
|
8802
|
-
},
|
|
8803
|
-
"global": {
|
|
8804
|
-
"default": false,
|
|
8805
|
-
"description": "`g` - Search globally.",
|
|
8806
|
-
"markdownDescription": "`g` - Search globally.",
|
|
8807
|
-
"type": "boolean"
|
|
8808
|
-
},
|
|
8809
|
-
"ignore_case": {
|
|
8810
|
-
"default": false,
|
|
8811
|
-
"description": "`i` - Case-insensitive.",
|
|
8812
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
8813
|
-
"type": "boolean"
|
|
8814
|
-
},
|
|
8815
|
-
"multiline": {
|
|
8816
|
-
"default": false,
|
|
8817
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8818
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8819
|
-
"type": "boolean"
|
|
8820
|
-
},
|
|
8821
|
-
"unicode": {
|
|
8822
|
-
"default": false,
|
|
8823
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8824
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8825
|
-
"type": "boolean"
|
|
8826
|
-
},
|
|
8827
|
-
"unicode_sets": {
|
|
8828
|
-
"default": false,
|
|
8829
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
8830
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8831
|
-
"type": "boolean"
|
|
8832
|
-
}
|
|
8833
|
-
},
|
|
8834
|
-
"type": "object"
|
|
8835
|
-
},
|
|
8836
|
-
"pattern_message": {
|
|
8837
|
-
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8838
|
-
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8839
|
-
"type": "string"
|
|
8840
|
-
},
|
|
8841
|
-
"picker_preview": {
|
|
8842
|
-
"$ref": "#/definitions/Preview",
|
|
8843
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8844
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8845
|
-
},
|
|
8846
|
-
"picker_view": {
|
|
8847
|
-
"description": "Controls how selectable options are rendered.",
|
|
8848
|
-
"enum": [
|
|
8849
|
-
"card",
|
|
8850
|
-
"text",
|
|
8851
|
-
"gallery",
|
|
8852
|
-
"gallery-left"
|
|
8853
|
-
],
|
|
8854
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8855
|
-
"type": "string"
|
|
8856
|
-
},
|
|
8857
|
-
"preview": {
|
|
8858
|
-
"$ref": "#/definitions/Preview",
|
|
8859
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
8860
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8861
|
-
},
|
|
8862
|
-
"required": {
|
|
8863
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8864
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8896
|
+
"ignore_case": {
|
|
8897
|
+
"default": false,
|
|
8898
|
+
"description": "`i` - Case-insensitive.",
|
|
8899
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8865
8900
|
"type": "boolean"
|
|
8866
8901
|
},
|
|
8867
|
-
"
|
|
8868
|
-
"
|
|
8869
|
-
"
|
|
8870
|
-
"
|
|
8902
|
+
"multiline": {
|
|
8903
|
+
"default": false,
|
|
8904
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8905
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8906
|
+
"type": "boolean"
|
|
8871
8907
|
},
|
|
8872
|
-
"
|
|
8873
|
-
"
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
{
|
|
8878
|
-
"$ref": "#/definitions/SelectValues"
|
|
8879
|
-
}
|
|
8880
|
-
],
|
|
8881
|
-
"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).",
|
|
8882
|
-
"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)."
|
|
8908
|
+
"unicode": {
|
|
8909
|
+
"default": false,
|
|
8910
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8911
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8912
|
+
"type": "boolean"
|
|
8883
8913
|
},
|
|
8884
|
-
"
|
|
8885
|
-
"
|
|
8886
|
-
"
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
"gallery",
|
|
8890
|
-
"gallery-left"
|
|
8891
|
-
],
|
|
8892
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
8893
|
-
"type": "string"
|
|
8914
|
+
"unicode_sets": {
|
|
8915
|
+
"default": false,
|
|
8916
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8917
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8918
|
+
"type": "boolean"
|
|
8894
8919
|
}
|
|
8895
8920
|
},
|
|
8896
8921
|
"type": "object"
|
|
8897
8922
|
},
|
|
8898
|
-
"
|
|
8899
|
-
"
|
|
8900
|
-
"
|
|
8901
|
-
"
|
|
8923
|
+
"pattern_message": {
|
|
8924
|
+
"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.",
|
|
8925
|
+
"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.",
|
|
8926
|
+
"type": "string"
|
|
8927
|
+
},
|
|
8928
|
+
"picker_preview": {
|
|
8929
|
+
"$ref": "#/definitions/Preview",
|
|
8930
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8931
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8932
|
+
},
|
|
8933
|
+
"picker_view": {
|
|
8934
|
+
"description": "Controls how selectable options are rendered.",
|
|
8935
|
+
"enum": [
|
|
8936
|
+
"card",
|
|
8937
|
+
"text",
|
|
8938
|
+
"gallery",
|
|
8939
|
+
"gallery-left"
|
|
8940
|
+
],
|
|
8941
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8942
|
+
"type": "string"
|
|
8943
|
+
},
|
|
8944
|
+
"preview": {
|
|
8945
|
+
"$ref": "#/definitions/Preview",
|
|
8946
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
8947
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8948
|
+
},
|
|
8949
|
+
"required": {
|
|
8950
|
+
"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).",
|
|
8951
|
+
"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).",
|
|
8952
|
+
"type": "boolean"
|
|
8953
|
+
},
|
|
8954
|
+
"value_key": {
|
|
8955
|
+
"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.",
|
|
8956
|
+
"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.",
|
|
8957
|
+
"type": "string"
|
|
8958
|
+
},
|
|
8959
|
+
"values": {
|
|
8960
|
+
"anyOf": [
|
|
8961
|
+
{
|
|
8962
|
+
"type": "string"
|
|
8963
|
+
},
|
|
8964
|
+
{
|
|
8965
|
+
"$ref": "#/definitions/SelectValues"
|
|
8966
|
+
}
|
|
8967
|
+
],
|
|
8968
|
+
"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).",
|
|
8969
|
+
"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)."
|
|
8970
|
+
},
|
|
8971
|
+
"view": {
|
|
8972
|
+
"description": "Controls how selected items are rendered.",
|
|
8973
|
+
"enum": [
|
|
8974
|
+
"card",
|
|
8975
|
+
"text",
|
|
8976
|
+
"gallery",
|
|
8977
|
+
"gallery-left"
|
|
8978
|
+
],
|
|
8979
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
8902
8980
|
"type": "string"
|
|
8903
8981
|
}
|
|
8904
8982
|
},
|
|
8905
|
-
"required": [
|
|
8906
|
-
"type"
|
|
8907
|
-
],
|
|
8908
8983
|
"type": "object"
|
|
8909
8984
|
},
|
|
8910
8985
|
"SelectValues": {
|