@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",
|
|
@@ -7072,96 +7080,9 @@
|
|
|
7072
7080
|
"type": "string"
|
|
7073
7081
|
},
|
|
7074
7082
|
"options": {
|
|
7075
|
-
"
|
|
7083
|
+
"$ref": "#/definitions/MultichoiceInputOptions",
|
|
7076
7084
|
"description": "Options that are specific to Multichoice Inputs.",
|
|
7077
|
-
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
7078
|
-
"properties": {
|
|
7079
|
-
"allow_empty": {
|
|
7080
|
-
"default": true,
|
|
7081
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
7082
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7083
|
-
"type": "boolean"
|
|
7084
|
-
},
|
|
7085
|
-
"empty_type": {
|
|
7086
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7087
|
-
"enum": [
|
|
7088
|
-
"null",
|
|
7089
|
-
"array"
|
|
7090
|
-
],
|
|
7091
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7092
|
-
"type": "string"
|
|
7093
|
-
},
|
|
7094
|
-
"max_items": {
|
|
7095
|
-
"description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
|
|
7096
|
-
"markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
|
|
7097
|
-
"type": "number"
|
|
7098
|
-
},
|
|
7099
|
-
"min_items": {
|
|
7100
|
-
"description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
|
|
7101
|
-
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7102
|
-
"type": "number"
|
|
7103
|
-
},
|
|
7104
|
-
"picker_preview": {
|
|
7105
|
-
"$ref": "#/definitions/Preview",
|
|
7106
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7107
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7108
|
-
},
|
|
7109
|
-
"picker_view": {
|
|
7110
|
-
"description": "Controls how selectable options are rendered.",
|
|
7111
|
-
"enum": [
|
|
7112
|
-
"card",
|
|
7113
|
-
"text",
|
|
7114
|
-
"gallery",
|
|
7115
|
-
"gallery-left"
|
|
7116
|
-
],
|
|
7117
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7118
|
-
"type": "string"
|
|
7119
|
-
},
|
|
7120
|
-
"preview": {
|
|
7121
|
-
"$ref": "#/definitions/Preview",
|
|
7122
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
7123
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7124
|
-
},
|
|
7125
|
-
"required": {
|
|
7126
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7127
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7128
|
-
"type": "boolean"
|
|
7129
|
-
},
|
|
7130
|
-
"unique_on": {
|
|
7131
|
-
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7132
|
-
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7133
|
-
"type": "string"
|
|
7134
|
-
},
|
|
7135
|
-
"value_key": {
|
|
7136
|
-
"description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
|
|
7137
|
-
"markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
|
|
7138
|
-
"type": "string"
|
|
7139
|
-
},
|
|
7140
|
-
"values": {
|
|
7141
|
-
"anyOf": [
|
|
7142
|
-
{
|
|
7143
|
-
"type": "string"
|
|
7144
|
-
},
|
|
7145
|
-
{
|
|
7146
|
-
"$ref": "#/definitions/SelectValues"
|
|
7147
|
-
}
|
|
7148
|
-
],
|
|
7149
|
-
"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).",
|
|
7150
|
-
"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)."
|
|
7151
|
-
},
|
|
7152
|
-
"view": {
|
|
7153
|
-
"description": "Controls how selected items are rendered.",
|
|
7154
|
-
"enum": [
|
|
7155
|
-
"card",
|
|
7156
|
-
"text",
|
|
7157
|
-
"gallery",
|
|
7158
|
-
"gallery-left"
|
|
7159
|
-
],
|
|
7160
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
7161
|
-
"type": "string"
|
|
7162
|
-
}
|
|
7163
|
-
},
|
|
7164
|
-
"type": "object"
|
|
7085
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
7165
7086
|
},
|
|
7166
7087
|
"type": {
|
|
7167
7088
|
"const": "multichoice",
|
|
@@ -7175,39 +7096,129 @@
|
|
|
7175
7096
|
],
|
|
7176
7097
|
"type": "object"
|
|
7177
7098
|
},
|
|
7178
|
-
"
|
|
7099
|
+
"MultichoiceInputOptions": {
|
|
7179
7100
|
"additionalProperties": false,
|
|
7180
7101
|
"properties": {
|
|
7181
|
-
"
|
|
7182
|
-
"
|
|
7183
|
-
"
|
|
7102
|
+
"allow_empty": {
|
|
7103
|
+
"default": true,
|
|
7104
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7105
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7184
7106
|
"type": "boolean"
|
|
7185
7107
|
},
|
|
7186
|
-
"
|
|
7187
|
-
"description": "
|
|
7188
|
-
"
|
|
7108
|
+
"empty_type": {
|
|
7109
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7110
|
+
"enum": [
|
|
7111
|
+
"null",
|
|
7112
|
+
"array"
|
|
7113
|
+
],
|
|
7114
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7189
7115
|
"type": "string"
|
|
7190
7116
|
},
|
|
7191
|
-
"
|
|
7192
|
-
"
|
|
7193
|
-
"
|
|
7194
|
-
"
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7117
|
+
"max_items": {
|
|
7118
|
+
"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.",
|
|
7119
|
+
"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.",
|
|
7120
|
+
"type": "number"
|
|
7121
|
+
},
|
|
7122
|
+
"min_items": {
|
|
7123
|
+
"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.",
|
|
7124
|
+
"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.",
|
|
7125
|
+
"type": "number"
|
|
7126
|
+
},
|
|
7127
|
+
"picker_preview": {
|
|
7128
|
+
"$ref": "#/definitions/Preview",
|
|
7129
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7130
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7131
|
+
},
|
|
7132
|
+
"picker_view": {
|
|
7133
|
+
"description": "Controls how selectable options are rendered.",
|
|
7134
|
+
"enum": [
|
|
7135
|
+
"card",
|
|
7136
|
+
"text",
|
|
7137
|
+
"gallery",
|
|
7138
|
+
"gallery-left"
|
|
7139
|
+
],
|
|
7140
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7141
|
+
"type": "string"
|
|
7142
|
+
},
|
|
7143
|
+
"preview": {
|
|
7144
|
+
"$ref": "#/definitions/Preview",
|
|
7145
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7146
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7147
|
+
},
|
|
7148
|
+
"required": {
|
|
7149
|
+
"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).",
|
|
7150
|
+
"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).",
|
|
7151
|
+
"type": "boolean"
|
|
7152
|
+
},
|
|
7153
|
+
"unique_on": {
|
|
7154
|
+
"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.",
|
|
7155
|
+
"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.",
|
|
7156
|
+
"type": "string"
|
|
7157
|
+
},
|
|
7158
|
+
"value_key": {
|
|
7159
|
+
"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.",
|
|
7160
|
+
"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.",
|
|
7161
|
+
"type": "string"
|
|
7162
|
+
},
|
|
7163
|
+
"values": {
|
|
7164
|
+
"anyOf": [
|
|
7165
|
+
{
|
|
7166
|
+
"type": "string"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
"$ref": "#/definitions/SelectValues"
|
|
7170
|
+
}
|
|
7171
|
+
],
|
|
7172
|
+
"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).",
|
|
7173
|
+
"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)."
|
|
7174
|
+
},
|
|
7175
|
+
"view": {
|
|
7176
|
+
"description": "Controls how selected items are rendered.",
|
|
7177
|
+
"enum": [
|
|
7178
|
+
"card",
|
|
7179
|
+
"text",
|
|
7180
|
+
"gallery",
|
|
7181
|
+
"gallery-left"
|
|
7182
|
+
],
|
|
7183
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7184
|
+
"type": "string"
|
|
7185
|
+
}
|
|
7186
|
+
},
|
|
7187
|
+
"type": "object"
|
|
7188
|
+
},
|
|
7189
|
+
"MultiselectInput": {
|
|
7190
|
+
"additionalProperties": false,
|
|
7191
|
+
"properties": {
|
|
7192
|
+
"cascade": {
|
|
7193
|
+
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
7194
|
+
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
7195
|
+
"type": "boolean"
|
|
7196
|
+
},
|
|
7197
|
+
"comment": {
|
|
7198
|
+
"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.",
|
|
7199
|
+
"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.",
|
|
7200
|
+
"type": "string"
|
|
7201
|
+
},
|
|
7202
|
+
"context": {
|
|
7203
|
+
"additionalProperties": false,
|
|
7204
|
+
"description": "Adds an expandable section of rich text below the input.",
|
|
7205
|
+
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
7206
|
+
"properties": {
|
|
7207
|
+
"content": {
|
|
7208
|
+
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7209
|
+
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7210
|
+
"type": "string"
|
|
7211
|
+
},
|
|
7212
|
+
"icon": {
|
|
7213
|
+
"$ref": "#/definitions/Icon",
|
|
7214
|
+
"description": "The icon shown when not open.",
|
|
7215
|
+
"markdownDescription": "The icon shown when not open."
|
|
7216
|
+
},
|
|
7217
|
+
"open": {
|
|
7218
|
+
"description": "Makes the content visible initially.",
|
|
7219
|
+
"markdownDescription": "Makes the content visible initially.",
|
|
7220
|
+
"type": "boolean"
|
|
7221
|
+
},
|
|
7211
7222
|
"title": {
|
|
7212
7223
|
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
7213
7224
|
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
@@ -7275,22 +7286,34 @@
|
|
|
7275
7286
|
"MultiselectInputOptions": {
|
|
7276
7287
|
"additionalProperties": false,
|
|
7277
7288
|
"properties": {
|
|
7289
|
+
"allow_create": {
|
|
7290
|
+
"default": false,
|
|
7291
|
+
"description": "Allows new text values to be created at edit time.",
|
|
7292
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7293
|
+
"type": "boolean"
|
|
7294
|
+
},
|
|
7295
|
+
"allow_empty": {
|
|
7296
|
+
"default": true,
|
|
7297
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7298
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7299
|
+
"type": "boolean"
|
|
7300
|
+
},
|
|
7278
7301
|
"disable_add": {
|
|
7279
7302
|
"default": false,
|
|
7280
|
-
"description": "Hides the add button, and context menu actions on each
|
|
7281
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
7303
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7304
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7282
7305
|
"type": "boolean"
|
|
7283
7306
|
},
|
|
7284
7307
|
"disable_remove": {
|
|
7285
7308
|
"default": false,
|
|
7286
|
-
"description": "Hides the context menu actions on each
|
|
7287
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
7309
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
7310
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
7288
7311
|
"type": "boolean"
|
|
7289
7312
|
},
|
|
7290
7313
|
"disable_reorder": {
|
|
7291
7314
|
"default": false,
|
|
7292
|
-
"description": "Hides the controls on each
|
|
7293
|
-
"markdownDescription": "Hides the controls on each
|
|
7315
|
+
"description": "Hides the controls on each item for moving them.",
|
|
7316
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
7294
7317
|
"type": "boolean"
|
|
7295
7318
|
},
|
|
7296
7319
|
"empty_type": {
|
|
@@ -7312,6 +7335,27 @@
|
|
|
7312
7335
|
"markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
|
|
7313
7336
|
"type": "number"
|
|
7314
7337
|
},
|
|
7338
|
+
"picker_preview": {
|
|
7339
|
+
"$ref": "#/definitions/Preview",
|
|
7340
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7341
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7342
|
+
},
|
|
7343
|
+
"picker_view": {
|
|
7344
|
+
"description": "Controls how selectable options are rendered.",
|
|
7345
|
+
"enum": [
|
|
7346
|
+
"card",
|
|
7347
|
+
"text",
|
|
7348
|
+
"gallery",
|
|
7349
|
+
"gallery-left"
|
|
7350
|
+
],
|
|
7351
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7352
|
+
"type": "string"
|
|
7353
|
+
},
|
|
7354
|
+
"preview": {
|
|
7355
|
+
"$ref": "#/definitions/Preview",
|
|
7356
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7357
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7358
|
+
},
|
|
7315
7359
|
"required": {
|
|
7316
7360
|
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
7317
7361
|
"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,6 +7365,34 @@
|
|
|
7321
7365
|
"description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7322
7366
|
"markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
|
|
7323
7367
|
"type": "string"
|
|
7368
|
+
},
|
|
7369
|
+
"value_key": {
|
|
7370
|
+
"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.",
|
|
7371
|
+
"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.",
|
|
7372
|
+
"type": "string"
|
|
7373
|
+
},
|
|
7374
|
+
"values": {
|
|
7375
|
+
"anyOf": [
|
|
7376
|
+
{
|
|
7377
|
+
"type": "string"
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7380
|
+
"$ref": "#/definitions/SelectValues"
|
|
7381
|
+
}
|
|
7382
|
+
],
|
|
7383
|
+
"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).",
|
|
7384
|
+
"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)."
|
|
7385
|
+
},
|
|
7386
|
+
"view": {
|
|
7387
|
+
"description": "Controls how selected items are rendered.",
|
|
7388
|
+
"enum": [
|
|
7389
|
+
"card",
|
|
7390
|
+
"text",
|
|
7391
|
+
"gallery",
|
|
7392
|
+
"gallery-left"
|
|
7393
|
+
],
|
|
7394
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7395
|
+
"type": "string"
|
|
7324
7396
|
}
|
|
7325
7397
|
},
|
|
7326
7398
|
"type": "object"
|
|
@@ -8727,162 +8799,165 @@
|
|
|
8727
8799
|
"type": "string"
|
|
8728
8800
|
},
|
|
8729
8801
|
"options": {
|
|
8730
|
-
"
|
|
8802
|
+
"$ref": "#/definitions/SelectInputOptions",
|
|
8731
8803
|
"description": "Options that are specific to Select Inputs.",
|
|
8732
|
-
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8804
|
+
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8805
|
+
},
|
|
8806
|
+
"type": {
|
|
8807
|
+
"const": "select",
|
|
8808
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
8809
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
8810
|
+
"type": "string"
|
|
8811
|
+
}
|
|
8812
|
+
},
|
|
8813
|
+
"required": [
|
|
8814
|
+
"type"
|
|
8815
|
+
],
|
|
8816
|
+
"type": "object"
|
|
8817
|
+
},
|
|
8818
|
+
"SelectInputOptions": {
|
|
8819
|
+
"additionalProperties": false,
|
|
8820
|
+
"properties": {
|
|
8821
|
+
"allow_create": {
|
|
8822
|
+
"default": false,
|
|
8823
|
+
"description": "Allows new text values to be created at edit time.",
|
|
8824
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
8825
|
+
"type": "boolean"
|
|
8826
|
+
},
|
|
8827
|
+
"allow_empty": {
|
|
8828
|
+
"default": true,
|
|
8829
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
8830
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
8831
|
+
"type": "boolean"
|
|
8832
|
+
},
|
|
8833
|
+
"empty_type": {
|
|
8834
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8835
|
+
"enum": [
|
|
8836
|
+
"null",
|
|
8837
|
+
"string"
|
|
8838
|
+
],
|
|
8839
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8840
|
+
"type": "string"
|
|
8841
|
+
},
|
|
8842
|
+
"max_length": {
|
|
8843
|
+
"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.",
|
|
8844
|
+
"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.",
|
|
8845
|
+
"type": "number"
|
|
8846
|
+
},
|
|
8847
|
+
"min_length": {
|
|
8848
|
+
"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.",
|
|
8849
|
+
"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.",
|
|
8850
|
+
"type": "number"
|
|
8851
|
+
},
|
|
8852
|
+
"pattern": {
|
|
8853
|
+
"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.",
|
|
8854
|
+
"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.",
|
|
8855
|
+
"type": "string"
|
|
8856
|
+
},
|
|
8857
|
+
"pattern_flags": {
|
|
8858
|
+
"additionalProperties": false,
|
|
8859
|
+
"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.",
|
|
8860
|
+
"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.",
|
|
8733
8861
|
"properties": {
|
|
8734
|
-
"
|
|
8862
|
+
"dot_all": {
|
|
8735
8863
|
"default": false,
|
|
8736
|
-
"description": "
|
|
8737
|
-
"markdownDescription": "
|
|
8864
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8865
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8738
8866
|
"type": "boolean"
|
|
8739
8867
|
},
|
|
8740
|
-
"
|
|
8741
|
-
"default":
|
|
8742
|
-
"description": "
|
|
8743
|
-
"markdownDescription": "
|
|
8868
|
+
"global": {
|
|
8869
|
+
"default": false,
|
|
8870
|
+
"description": "`g` - Search globally.",
|
|
8871
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8744
8872
|
"type": "boolean"
|
|
8745
8873
|
},
|
|
8746
|
-
"
|
|
8747
|
-
"
|
|
8748
|
-
"
|
|
8749
|
-
|
|
8750
|
-
"string"
|
|
8751
|
-
],
|
|
8752
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8753
|
-
"type": "string"
|
|
8754
|
-
},
|
|
8755
|
-
"max_length": {
|
|
8756
|
-
"description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8757
|
-
"markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8758
|
-
"type": "number"
|
|
8759
|
-
},
|
|
8760
|
-
"min_length": {
|
|
8761
|
-
"description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8762
|
-
"markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8763
|
-
"type": "number"
|
|
8764
|
-
},
|
|
8765
|
-
"pattern": {
|
|
8766
|
-
"description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8767
|
-
"markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
|
|
8768
|
-
"type": "string"
|
|
8769
|
-
},
|
|
8770
|
-
"pattern_flags": {
|
|
8771
|
-
"additionalProperties": false,
|
|
8772
|
-
"description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8773
|
-
"markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
|
|
8774
|
-
"properties": {
|
|
8775
|
-
"dot_all": {
|
|
8776
|
-
"default": false,
|
|
8777
|
-
"description": "`s` - `.` matches newline characters.",
|
|
8778
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8779
|
-
"type": "boolean"
|
|
8780
|
-
},
|
|
8781
|
-
"global": {
|
|
8782
|
-
"default": false,
|
|
8783
|
-
"description": "`g` - Search globally.",
|
|
8784
|
-
"markdownDescription": "`g` - Search globally.",
|
|
8785
|
-
"type": "boolean"
|
|
8786
|
-
},
|
|
8787
|
-
"ignore_case": {
|
|
8788
|
-
"default": false,
|
|
8789
|
-
"description": "`i` - Case-insensitive.",
|
|
8790
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
8791
|
-
"type": "boolean"
|
|
8792
|
-
},
|
|
8793
|
-
"multiline": {
|
|
8794
|
-
"default": false,
|
|
8795
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8796
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8797
|
-
"type": "boolean"
|
|
8798
|
-
},
|
|
8799
|
-
"unicode": {
|
|
8800
|
-
"default": false,
|
|
8801
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8802
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8803
|
-
"type": "boolean"
|
|
8804
|
-
},
|
|
8805
|
-
"unicode_sets": {
|
|
8806
|
-
"default": false,
|
|
8807
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
8808
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8809
|
-
"type": "boolean"
|
|
8810
|
-
}
|
|
8811
|
-
},
|
|
8812
|
-
"type": "object"
|
|
8813
|
-
},
|
|
8814
|
-
"pattern_message": {
|
|
8815
|
-
"description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8816
|
-
"markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
|
|
8817
|
-
"type": "string"
|
|
8818
|
-
},
|
|
8819
|
-
"picker_preview": {
|
|
8820
|
-
"$ref": "#/definitions/Preview",
|
|
8821
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8822
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8823
|
-
},
|
|
8824
|
-
"picker_view": {
|
|
8825
|
-
"description": "Controls how selectable options are rendered.",
|
|
8826
|
-
"enum": [
|
|
8827
|
-
"card",
|
|
8828
|
-
"text",
|
|
8829
|
-
"gallery",
|
|
8830
|
-
"gallery-left"
|
|
8831
|
-
],
|
|
8832
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8833
|
-
"type": "string"
|
|
8834
|
-
},
|
|
8835
|
-
"preview": {
|
|
8836
|
-
"$ref": "#/definitions/Preview",
|
|
8837
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
8838
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8839
|
-
},
|
|
8840
|
-
"required": {
|
|
8841
|
-
"description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8842
|
-
"markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
|
|
8874
|
+
"ignore_case": {
|
|
8875
|
+
"default": false,
|
|
8876
|
+
"description": "`i` - Case-insensitive.",
|
|
8877
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8843
8878
|
"type": "boolean"
|
|
8844
8879
|
},
|
|
8845
|
-
"
|
|
8846
|
-
"
|
|
8847
|
-
"
|
|
8848
|
-
"
|
|
8880
|
+
"multiline": {
|
|
8881
|
+
"default": false,
|
|
8882
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8883
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8884
|
+
"type": "boolean"
|
|
8849
8885
|
},
|
|
8850
|
-
"
|
|
8851
|
-
"
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
{
|
|
8856
|
-
"$ref": "#/definitions/SelectValues"
|
|
8857
|
-
}
|
|
8858
|
-
],
|
|
8859
|
-
"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).",
|
|
8860
|
-
"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)."
|
|
8886
|
+
"unicode": {
|
|
8887
|
+
"default": false,
|
|
8888
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8889
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8890
|
+
"type": "boolean"
|
|
8861
8891
|
},
|
|
8862
|
-
"
|
|
8863
|
-
"
|
|
8864
|
-
"
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
"gallery",
|
|
8868
|
-
"gallery-left"
|
|
8869
|
-
],
|
|
8870
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
8871
|
-
"type": "string"
|
|
8892
|
+
"unicode_sets": {
|
|
8893
|
+
"default": false,
|
|
8894
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8895
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8896
|
+
"type": "boolean"
|
|
8872
8897
|
}
|
|
8873
8898
|
},
|
|
8874
8899
|
"type": "object"
|
|
8875
8900
|
},
|
|
8876
|
-
"
|
|
8877
|
-
"
|
|
8878
|
-
"
|
|
8879
|
-
"
|
|
8901
|
+
"pattern_message": {
|
|
8902
|
+
"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.",
|
|
8903
|
+
"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.",
|
|
8904
|
+
"type": "string"
|
|
8905
|
+
},
|
|
8906
|
+
"picker_preview": {
|
|
8907
|
+
"$ref": "#/definitions/Preview",
|
|
8908
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8909
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8910
|
+
},
|
|
8911
|
+
"picker_view": {
|
|
8912
|
+
"description": "Controls how selectable options are rendered.",
|
|
8913
|
+
"enum": [
|
|
8914
|
+
"card",
|
|
8915
|
+
"text",
|
|
8916
|
+
"gallery",
|
|
8917
|
+
"gallery-left"
|
|
8918
|
+
],
|
|
8919
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8920
|
+
"type": "string"
|
|
8921
|
+
},
|
|
8922
|
+
"preview": {
|
|
8923
|
+
"$ref": "#/definitions/Preview",
|
|
8924
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
8925
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8926
|
+
},
|
|
8927
|
+
"required": {
|
|
8928
|
+
"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).",
|
|
8929
|
+
"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).",
|
|
8930
|
+
"type": "boolean"
|
|
8931
|
+
},
|
|
8932
|
+
"value_key": {
|
|
8933
|
+
"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.",
|
|
8934
|
+
"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.",
|
|
8935
|
+
"type": "string"
|
|
8936
|
+
},
|
|
8937
|
+
"values": {
|
|
8938
|
+
"anyOf": [
|
|
8939
|
+
{
|
|
8940
|
+
"type": "string"
|
|
8941
|
+
},
|
|
8942
|
+
{
|
|
8943
|
+
"$ref": "#/definitions/SelectValues"
|
|
8944
|
+
}
|
|
8945
|
+
],
|
|
8946
|
+
"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).",
|
|
8947
|
+
"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)."
|
|
8948
|
+
},
|
|
8949
|
+
"view": {
|
|
8950
|
+
"description": "Controls how selected items are rendered.",
|
|
8951
|
+
"enum": [
|
|
8952
|
+
"card",
|
|
8953
|
+
"text",
|
|
8954
|
+
"gallery",
|
|
8955
|
+
"gallery-left"
|
|
8956
|
+
],
|
|
8957
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
8880
8958
|
"type": "string"
|
|
8881
8959
|
}
|
|
8882
8960
|
},
|
|
8883
|
-
"required": [
|
|
8884
|
-
"type"
|
|
8885
|
-
],
|
|
8886
8961
|
"type": "object"
|
|
8887
8962
|
},
|
|
8888
8963
|
"SelectValues": {
|