@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": {
|
|
@@ -779,156 +779,159 @@
|
|
|
779
779
|
"type": "string"
|
|
780
780
|
},
|
|
781
781
|
"options": {
|
|
782
|
-
"
|
|
782
|
+
"$ref": "#/definitions/ChoiceInputOptions",
|
|
783
783
|
"description": "Options that are specific to Choice Inputs.",
|
|
784
|
-
"markdownDescription": "Options that are specific to Choice Inputs."
|
|
784
|
+
"markdownDescription": "Options that are specific to Choice Inputs."
|
|
785
|
+
},
|
|
786
|
+
"type": {
|
|
787
|
+
"const": "choice",
|
|
788
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
789
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
790
|
+
"type": "string"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"required": [
|
|
794
|
+
"type"
|
|
795
|
+
],
|
|
796
|
+
"type": "object"
|
|
797
|
+
},
|
|
798
|
+
"ChoiceInputOptions": {
|
|
799
|
+
"additionalProperties": false,
|
|
800
|
+
"properties": {
|
|
801
|
+
"allow_empty": {
|
|
802
|
+
"default": true,
|
|
803
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
804
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
805
|
+
"type": "boolean"
|
|
806
|
+
},
|
|
807
|
+
"empty_type": {
|
|
808
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
809
|
+
"enum": [
|
|
810
|
+
"null",
|
|
811
|
+
"string"
|
|
812
|
+
],
|
|
813
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
816
|
+
"max_length": {
|
|
817
|
+
"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.",
|
|
818
|
+
"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.",
|
|
819
|
+
"type": "number"
|
|
820
|
+
},
|
|
821
|
+
"min_length": {
|
|
822
|
+
"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.",
|
|
823
|
+
"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.",
|
|
824
|
+
"type": "number"
|
|
825
|
+
},
|
|
826
|
+
"pattern": {
|
|
827
|
+
"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.",
|
|
828
|
+
"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.",
|
|
829
|
+
"type": "string"
|
|
830
|
+
},
|
|
831
|
+
"pattern_flags": {
|
|
832
|
+
"additionalProperties": false,
|
|
833
|
+
"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.",
|
|
834
|
+
"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.",
|
|
785
835
|
"properties": {
|
|
786
|
-
"
|
|
787
|
-
"default":
|
|
788
|
-
"description": "
|
|
789
|
-
"markdownDescription": "
|
|
836
|
+
"dot_all": {
|
|
837
|
+
"default": false,
|
|
838
|
+
"description": "`s` - `.` matches newline characters.",
|
|
839
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
790
840
|
"type": "boolean"
|
|
791
841
|
},
|
|
792
|
-
"
|
|
793
|
-
"
|
|
794
|
-
"
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
],
|
|
798
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
799
|
-
"type": "string"
|
|
800
|
-
},
|
|
801
|
-
"max_length": {
|
|
802
|
-
"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.",
|
|
803
|
-
"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.",
|
|
804
|
-
"type": "number"
|
|
805
|
-
},
|
|
806
|
-
"min_length": {
|
|
807
|
-
"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.",
|
|
808
|
-
"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.",
|
|
809
|
-
"type": "number"
|
|
810
|
-
},
|
|
811
|
-
"pattern": {
|
|
812
|
-
"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.",
|
|
813
|
-
"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.",
|
|
814
|
-
"type": "string"
|
|
815
|
-
},
|
|
816
|
-
"pattern_flags": {
|
|
817
|
-
"additionalProperties": false,
|
|
818
|
-
"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.",
|
|
819
|
-
"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.",
|
|
820
|
-
"properties": {
|
|
821
|
-
"dot_all": {
|
|
822
|
-
"default": false,
|
|
823
|
-
"description": "`s` - `.` matches newline characters.",
|
|
824
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
825
|
-
"type": "boolean"
|
|
826
|
-
},
|
|
827
|
-
"global": {
|
|
828
|
-
"default": false,
|
|
829
|
-
"description": "`g` - Search globally.",
|
|
830
|
-
"markdownDescription": "`g` - Search globally.",
|
|
831
|
-
"type": "boolean"
|
|
832
|
-
},
|
|
833
|
-
"ignore_case": {
|
|
834
|
-
"default": false,
|
|
835
|
-
"description": "`i` - Case-insensitive.",
|
|
836
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
837
|
-
"type": "boolean"
|
|
838
|
-
},
|
|
839
|
-
"multiline": {
|
|
840
|
-
"default": false,
|
|
841
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
842
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
843
|
-
"type": "boolean"
|
|
844
|
-
},
|
|
845
|
-
"unicode": {
|
|
846
|
-
"default": false,
|
|
847
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
848
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
849
|
-
"type": "boolean"
|
|
850
|
-
},
|
|
851
|
-
"unicode_sets": {
|
|
852
|
-
"default": false,
|
|
853
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
854
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
855
|
-
"type": "boolean"
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
"type": "object"
|
|
859
|
-
},
|
|
860
|
-
"pattern_message": {
|
|
861
|
-
"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.",
|
|
862
|
-
"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.",
|
|
863
|
-
"type": "string"
|
|
864
|
-
},
|
|
865
|
-
"picker_preview": {
|
|
866
|
-
"$ref": "#/definitions/Preview",
|
|
867
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
868
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
869
|
-
},
|
|
870
|
-
"picker_view": {
|
|
871
|
-
"description": "Controls how selectable options are rendered.",
|
|
872
|
-
"enum": [
|
|
873
|
-
"card",
|
|
874
|
-
"text",
|
|
875
|
-
"gallery",
|
|
876
|
-
"gallery-left"
|
|
877
|
-
],
|
|
878
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
879
|
-
"type": "string"
|
|
880
|
-
},
|
|
881
|
-
"preview": {
|
|
882
|
-
"$ref": "#/definitions/Preview",
|
|
883
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
884
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
842
|
+
"global": {
|
|
843
|
+
"default": false,
|
|
844
|
+
"description": "`g` - Search globally.",
|
|
845
|
+
"markdownDescription": "`g` - Search globally.",
|
|
846
|
+
"type": "boolean"
|
|
885
847
|
},
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
"
|
|
848
|
+
"ignore_case": {
|
|
849
|
+
"default": false,
|
|
850
|
+
"description": "`i` - Case-insensitive.",
|
|
851
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
889
852
|
"type": "boolean"
|
|
890
853
|
},
|
|
891
|
-
"
|
|
892
|
-
"
|
|
893
|
-
"
|
|
894
|
-
"
|
|
854
|
+
"multiline": {
|
|
855
|
+
"default": false,
|
|
856
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
857
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
858
|
+
"type": "boolean"
|
|
895
859
|
},
|
|
896
|
-
"
|
|
897
|
-
"
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
{
|
|
902
|
-
"$ref": "#/definitions/SelectValues"
|
|
903
|
-
}
|
|
904
|
-
],
|
|
905
|
-
"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).",
|
|
906
|
-
"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)."
|
|
860
|
+
"unicode": {
|
|
861
|
+
"default": false,
|
|
862
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
863
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
864
|
+
"type": "boolean"
|
|
907
865
|
},
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
"gallery",
|
|
914
|
-
"gallery-left"
|
|
915
|
-
],
|
|
916
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
917
|
-
"type": "string"
|
|
866
|
+
"unicode_sets": {
|
|
867
|
+
"default": false,
|
|
868
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
869
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
870
|
+
"type": "boolean"
|
|
918
871
|
}
|
|
919
872
|
},
|
|
920
873
|
"type": "object"
|
|
921
874
|
},
|
|
922
|
-
"
|
|
923
|
-
"
|
|
924
|
-
"
|
|
925
|
-
"
|
|
875
|
+
"pattern_message": {
|
|
876
|
+
"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.",
|
|
877
|
+
"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.",
|
|
878
|
+
"type": "string"
|
|
879
|
+
},
|
|
880
|
+
"picker_preview": {
|
|
881
|
+
"$ref": "#/definitions/Preview",
|
|
882
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
883
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
884
|
+
},
|
|
885
|
+
"picker_view": {
|
|
886
|
+
"description": "Controls how selectable options are rendered.",
|
|
887
|
+
"enum": [
|
|
888
|
+
"card",
|
|
889
|
+
"text",
|
|
890
|
+
"gallery",
|
|
891
|
+
"gallery-left"
|
|
892
|
+
],
|
|
893
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
894
|
+
"type": "string"
|
|
895
|
+
},
|
|
896
|
+
"preview": {
|
|
897
|
+
"$ref": "#/definitions/Preview",
|
|
898
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
899
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
900
|
+
},
|
|
901
|
+
"required": {
|
|
902
|
+
"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).",
|
|
903
|
+
"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).",
|
|
904
|
+
"type": "boolean"
|
|
905
|
+
},
|
|
906
|
+
"value_key": {
|
|
907
|
+
"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.",
|
|
908
|
+
"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.",
|
|
909
|
+
"type": "string"
|
|
910
|
+
},
|
|
911
|
+
"values": {
|
|
912
|
+
"anyOf": [
|
|
913
|
+
{
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"$ref": "#/definitions/SelectValues"
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"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).",
|
|
921
|
+
"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
|
+
},
|
|
923
|
+
"view": {
|
|
924
|
+
"description": "Controls how selected items are rendered.",
|
|
925
|
+
"enum": [
|
|
926
|
+
"card",
|
|
927
|
+
"text",
|
|
928
|
+
"gallery",
|
|
929
|
+
"gallery-left"
|
|
930
|
+
],
|
|
931
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
926
932
|
"type": "string"
|
|
927
933
|
}
|
|
928
934
|
},
|
|
929
|
-
"required": [
|
|
930
|
-
"type"
|
|
931
|
-
],
|
|
932
935
|
"type": "object"
|
|
933
936
|
},
|
|
934
937
|
"CodeInput": {
|
|
@@ -1776,6 +1779,11 @@
|
|
|
1776
1779
|
"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.",
|
|
1777
1780
|
"type": "string"
|
|
1778
1781
|
},
|
|
1782
|
+
"required": {
|
|
1783
|
+
"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).",
|
|
1784
|
+
"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).",
|
|
1785
|
+
"type": "boolean"
|
|
1786
|
+
},
|
|
1779
1787
|
"start_from": {
|
|
1780
1788
|
"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.",
|
|
1781
1789
|
"format": "date-time",
|
|
@@ -6974,96 +6982,9 @@
|
|
|
6974
6982
|
"type": "string"
|
|
6975
6983
|
},
|
|
6976
6984
|
"options": {
|
|
6977
|
-
"
|
|
6985
|
+
"$ref": "#/definitions/MultichoiceInputOptions",
|
|
6978
6986
|
"description": "Options that are specific to Multichoice Inputs.",
|
|
6979
|
-
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
6980
|
-
"properties": {
|
|
6981
|
-
"allow_empty": {
|
|
6982
|
-
"default": true,
|
|
6983
|
-
"description": "Provides an empty option alongside the options provided by values.",
|
|
6984
|
-
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
6985
|
-
"type": "boolean"
|
|
6986
|
-
},
|
|
6987
|
-
"empty_type": {
|
|
6988
|
-
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6989
|
-
"enum": [
|
|
6990
|
-
"null",
|
|
6991
|
-
"array"
|
|
6992
|
-
],
|
|
6993
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
6994
|
-
"type": "string"
|
|
6995
|
-
},
|
|
6996
|
-
"max_items": {
|
|
6997
|
-
"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.",
|
|
6998
|
-
"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.",
|
|
6999
|
-
"type": "number"
|
|
7000
|
-
},
|
|
7001
|
-
"min_items": {
|
|
7002
|
-
"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.",
|
|
7003
|
-
"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.",
|
|
7004
|
-
"type": "number"
|
|
7005
|
-
},
|
|
7006
|
-
"picker_preview": {
|
|
7007
|
-
"$ref": "#/definitions/Preview",
|
|
7008
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7009
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7010
|
-
},
|
|
7011
|
-
"picker_view": {
|
|
7012
|
-
"description": "Controls how selectable options are rendered.",
|
|
7013
|
-
"enum": [
|
|
7014
|
-
"card",
|
|
7015
|
-
"text",
|
|
7016
|
-
"gallery",
|
|
7017
|
-
"gallery-left"
|
|
7018
|
-
],
|
|
7019
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7020
|
-
"type": "string"
|
|
7021
|
-
},
|
|
7022
|
-
"preview": {
|
|
7023
|
-
"$ref": "#/definitions/Preview",
|
|
7024
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
7025
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7026
|
-
},
|
|
7027
|
-
"required": {
|
|
7028
|
-
"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).",
|
|
7029
|
-
"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).",
|
|
7030
|
-
"type": "boolean"
|
|
7031
|
-
},
|
|
7032
|
-
"unique_on": {
|
|
7033
|
-
"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.",
|
|
7034
|
-
"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.",
|
|
7035
|
-
"type": "string"
|
|
7036
|
-
},
|
|
7037
|
-
"value_key": {
|
|
7038
|
-
"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.",
|
|
7039
|
-
"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.",
|
|
7040
|
-
"type": "string"
|
|
7041
|
-
},
|
|
7042
|
-
"values": {
|
|
7043
|
-
"anyOf": [
|
|
7044
|
-
{
|
|
7045
|
-
"type": "string"
|
|
7046
|
-
},
|
|
7047
|
-
{
|
|
7048
|
-
"$ref": "#/definitions/SelectValues"
|
|
7049
|
-
}
|
|
7050
|
-
],
|
|
7051
|
-
"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).",
|
|
7052
|
-
"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)."
|
|
7053
|
-
},
|
|
7054
|
-
"view": {
|
|
7055
|
-
"description": "Controls how selected items are rendered.",
|
|
7056
|
-
"enum": [
|
|
7057
|
-
"card",
|
|
7058
|
-
"text",
|
|
7059
|
-
"gallery",
|
|
7060
|
-
"gallery-left"
|
|
7061
|
-
],
|
|
7062
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
7063
|
-
"type": "string"
|
|
7064
|
-
}
|
|
7065
|
-
},
|
|
7066
|
-
"type": "object"
|
|
6987
|
+
"markdownDescription": "Options that are specific to Multichoice Inputs."
|
|
7067
6988
|
},
|
|
7068
6989
|
"type": {
|
|
7069
6990
|
"const": "multichoice",
|
|
@@ -7077,39 +6998,129 @@
|
|
|
7077
6998
|
],
|
|
7078
6999
|
"type": "object"
|
|
7079
7000
|
},
|
|
7080
|
-
"
|
|
7001
|
+
"MultichoiceInputOptions": {
|
|
7081
7002
|
"additionalProperties": false,
|
|
7082
7003
|
"properties": {
|
|
7083
|
-
"
|
|
7084
|
-
"
|
|
7085
|
-
"
|
|
7004
|
+
"allow_empty": {
|
|
7005
|
+
"default": true,
|
|
7006
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7007
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7086
7008
|
"type": "boolean"
|
|
7087
7009
|
},
|
|
7088
|
-
"
|
|
7089
|
-
"description": "
|
|
7090
|
-
"
|
|
7010
|
+
"empty_type": {
|
|
7011
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7012
|
+
"enum": [
|
|
7013
|
+
"null",
|
|
7014
|
+
"array"
|
|
7015
|
+
],
|
|
7016
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
7091
7017
|
"type": "string"
|
|
7092
7018
|
},
|
|
7093
|
-
"
|
|
7094
|
-
"
|
|
7095
|
-
"
|
|
7096
|
-
"
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7019
|
+
"max_items": {
|
|
7020
|
+
"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.",
|
|
7021
|
+
"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.",
|
|
7022
|
+
"type": "number"
|
|
7023
|
+
},
|
|
7024
|
+
"min_items": {
|
|
7025
|
+
"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.",
|
|
7026
|
+
"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.",
|
|
7027
|
+
"type": "number"
|
|
7028
|
+
},
|
|
7029
|
+
"picker_preview": {
|
|
7030
|
+
"$ref": "#/definitions/Preview",
|
|
7031
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7032
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7033
|
+
},
|
|
7034
|
+
"picker_view": {
|
|
7035
|
+
"description": "Controls how selectable options are rendered.",
|
|
7036
|
+
"enum": [
|
|
7037
|
+
"card",
|
|
7038
|
+
"text",
|
|
7039
|
+
"gallery",
|
|
7040
|
+
"gallery-left"
|
|
7041
|
+
],
|
|
7042
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7043
|
+
"type": "string"
|
|
7044
|
+
},
|
|
7045
|
+
"preview": {
|
|
7046
|
+
"$ref": "#/definitions/Preview",
|
|
7047
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7048
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7049
|
+
},
|
|
7050
|
+
"required": {
|
|
7051
|
+
"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).",
|
|
7052
|
+
"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).",
|
|
7053
|
+
"type": "boolean"
|
|
7054
|
+
},
|
|
7055
|
+
"unique_on": {
|
|
7056
|
+
"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.",
|
|
7057
|
+
"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.",
|
|
7058
|
+
"type": "string"
|
|
7059
|
+
},
|
|
7060
|
+
"value_key": {
|
|
7061
|
+
"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.",
|
|
7062
|
+
"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.",
|
|
7063
|
+
"type": "string"
|
|
7064
|
+
},
|
|
7065
|
+
"values": {
|
|
7066
|
+
"anyOf": [
|
|
7067
|
+
{
|
|
7068
|
+
"type": "string"
|
|
7069
|
+
},
|
|
7070
|
+
{
|
|
7071
|
+
"$ref": "#/definitions/SelectValues"
|
|
7072
|
+
}
|
|
7073
|
+
],
|
|
7074
|
+
"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).",
|
|
7075
|
+
"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)."
|
|
7076
|
+
},
|
|
7077
|
+
"view": {
|
|
7078
|
+
"description": "Controls how selected items are rendered.",
|
|
7079
|
+
"enum": [
|
|
7080
|
+
"card",
|
|
7081
|
+
"text",
|
|
7082
|
+
"gallery",
|
|
7083
|
+
"gallery-left"
|
|
7084
|
+
],
|
|
7085
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7086
|
+
"type": "string"
|
|
7087
|
+
}
|
|
7088
|
+
},
|
|
7089
|
+
"type": "object"
|
|
7090
|
+
},
|
|
7091
|
+
"MultiselectInput": {
|
|
7092
|
+
"additionalProperties": false,
|
|
7093
|
+
"properties": {
|
|
7094
|
+
"cascade": {
|
|
7095
|
+
"description": "Specifies whether or not this input configuration should be merged with any matching, less specific configuration.",
|
|
7096
|
+
"markdownDescription": "Specifies whether or not this input configuration should be merged with any matching, less\nspecific configuration.",
|
|
7097
|
+
"type": "boolean"
|
|
7098
|
+
},
|
|
7099
|
+
"comment": {
|
|
7100
|
+
"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.",
|
|
7101
|
+
"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.",
|
|
7102
|
+
"type": "string"
|
|
7103
|
+
},
|
|
7104
|
+
"context": {
|
|
7105
|
+
"additionalProperties": false,
|
|
7106
|
+
"description": "Adds an expandable section of rich text below the input.",
|
|
7107
|
+
"markdownDescription": "Adds an expandable section of rich text below the input.",
|
|
7108
|
+
"properties": {
|
|
7109
|
+
"content": {
|
|
7110
|
+
"description": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7111
|
+
"markdownDescription": "The rich text content shown when opened. Supports a limited set of Markdown.",
|
|
7112
|
+
"type": "string"
|
|
7113
|
+
},
|
|
7114
|
+
"icon": {
|
|
7115
|
+
"$ref": "#/definitions/Icon",
|
|
7116
|
+
"description": "The icon shown when not open.",
|
|
7117
|
+
"markdownDescription": "The icon shown when not open."
|
|
7118
|
+
},
|
|
7119
|
+
"open": {
|
|
7120
|
+
"description": "Makes the content visible initially.",
|
|
7121
|
+
"markdownDescription": "Makes the content visible initially.",
|
|
7122
|
+
"type": "boolean"
|
|
7123
|
+
},
|
|
7113
7124
|
"title": {
|
|
7114
7125
|
"description": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
7115
7126
|
"markdownDescription": "The text shown when not open. Defaults to \"Context\" if unset.",
|
|
@@ -7177,22 +7188,34 @@
|
|
|
7177
7188
|
"MultiselectInputOptions": {
|
|
7178
7189
|
"additionalProperties": false,
|
|
7179
7190
|
"properties": {
|
|
7191
|
+
"allow_create": {
|
|
7192
|
+
"default": false,
|
|
7193
|
+
"description": "Allows new text values to be created at edit time.",
|
|
7194
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
7195
|
+
"type": "boolean"
|
|
7196
|
+
},
|
|
7197
|
+
"allow_empty": {
|
|
7198
|
+
"default": true,
|
|
7199
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
7200
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
7201
|
+
"type": "boolean"
|
|
7202
|
+
},
|
|
7180
7203
|
"disable_add": {
|
|
7181
7204
|
"default": false,
|
|
7182
|
-
"description": "Hides the add button, and context menu actions on each
|
|
7183
|
-
"markdownDescription": "Hides the add button, and context menu actions on each
|
|
7205
|
+
"description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7206
|
+
"markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
|
|
7184
7207
|
"type": "boolean"
|
|
7185
7208
|
},
|
|
7186
7209
|
"disable_remove": {
|
|
7187
7210
|
"default": false,
|
|
7188
|
-
"description": "Hides the context menu actions on each
|
|
7189
|
-
"markdownDescription": "Hides the context menu actions on each
|
|
7211
|
+
"description": "Hides the context menu actions on each item for removing them.",
|
|
7212
|
+
"markdownDescription": "Hides the context menu actions on each item for removing them.",
|
|
7190
7213
|
"type": "boolean"
|
|
7191
7214
|
},
|
|
7192
7215
|
"disable_reorder": {
|
|
7193
7216
|
"default": false,
|
|
7194
|
-
"description": "Hides the controls on each
|
|
7195
|
-
"markdownDescription": "Hides the controls on each
|
|
7217
|
+
"description": "Hides the controls on each item for moving them.",
|
|
7218
|
+
"markdownDescription": "Hides the controls on each item for moving them.",
|
|
7196
7219
|
"type": "boolean"
|
|
7197
7220
|
},
|
|
7198
7221
|
"empty_type": {
|
|
@@ -7214,6 +7237,27 @@
|
|
|
7214
7237
|
"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.",
|
|
7215
7238
|
"type": "number"
|
|
7216
7239
|
},
|
|
7240
|
+
"picker_preview": {
|
|
7241
|
+
"$ref": "#/definitions/Preview",
|
|
7242
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
7243
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
7244
|
+
},
|
|
7245
|
+
"picker_view": {
|
|
7246
|
+
"description": "Controls how selectable options are rendered.",
|
|
7247
|
+
"enum": [
|
|
7248
|
+
"card",
|
|
7249
|
+
"text",
|
|
7250
|
+
"gallery",
|
|
7251
|
+
"gallery-left"
|
|
7252
|
+
],
|
|
7253
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
7254
|
+
"type": "string"
|
|
7255
|
+
},
|
|
7256
|
+
"preview": {
|
|
7257
|
+
"$ref": "#/definitions/Preview",
|
|
7258
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
7259
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
7260
|
+
},
|
|
7217
7261
|
"required": {
|
|
7218
7262
|
"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).",
|
|
7219
7263
|
"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).",
|
|
@@ -7223,6 +7267,34 @@
|
|
|
7223
7267
|
"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.",
|
|
7224
7268
|
"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.",
|
|
7225
7269
|
"type": "string"
|
|
7270
|
+
},
|
|
7271
|
+
"value_key": {
|
|
7272
|
+
"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.",
|
|
7273
|
+
"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.",
|
|
7274
|
+
"type": "string"
|
|
7275
|
+
},
|
|
7276
|
+
"values": {
|
|
7277
|
+
"anyOf": [
|
|
7278
|
+
{
|
|
7279
|
+
"type": "string"
|
|
7280
|
+
},
|
|
7281
|
+
{
|
|
7282
|
+
"$ref": "#/definitions/SelectValues"
|
|
7283
|
+
}
|
|
7284
|
+
],
|
|
7285
|
+
"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).",
|
|
7286
|
+
"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)."
|
|
7287
|
+
},
|
|
7288
|
+
"view": {
|
|
7289
|
+
"description": "Controls how selected items are rendered.",
|
|
7290
|
+
"enum": [
|
|
7291
|
+
"card",
|
|
7292
|
+
"text",
|
|
7293
|
+
"gallery",
|
|
7294
|
+
"gallery-left"
|
|
7295
|
+
],
|
|
7296
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
7297
|
+
"type": "string"
|
|
7226
7298
|
}
|
|
7227
7299
|
},
|
|
7228
7300
|
"type": "object"
|
|
@@ -8629,162 +8701,165 @@
|
|
|
8629
8701
|
"type": "string"
|
|
8630
8702
|
},
|
|
8631
8703
|
"options": {
|
|
8632
|
-
"
|
|
8704
|
+
"$ref": "#/definitions/SelectInputOptions",
|
|
8633
8705
|
"description": "Options that are specific to Select Inputs.",
|
|
8634
|
-
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8706
|
+
"markdownDescription": "Options that are specific to Select Inputs."
|
|
8707
|
+
},
|
|
8708
|
+
"type": {
|
|
8709
|
+
"const": "select",
|
|
8710
|
+
"description": "Sets an input type, which controls how this input appears and behaves.",
|
|
8711
|
+
"markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
|
|
8712
|
+
"type": "string"
|
|
8713
|
+
}
|
|
8714
|
+
},
|
|
8715
|
+
"required": [
|
|
8716
|
+
"type"
|
|
8717
|
+
],
|
|
8718
|
+
"type": "object"
|
|
8719
|
+
},
|
|
8720
|
+
"SelectInputOptions": {
|
|
8721
|
+
"additionalProperties": false,
|
|
8722
|
+
"properties": {
|
|
8723
|
+
"allow_create": {
|
|
8724
|
+
"default": false,
|
|
8725
|
+
"description": "Allows new text values to be created at edit time.",
|
|
8726
|
+
"markdownDescription": "Allows new text values to be created at edit time.",
|
|
8727
|
+
"type": "boolean"
|
|
8728
|
+
},
|
|
8729
|
+
"allow_empty": {
|
|
8730
|
+
"default": true,
|
|
8731
|
+
"description": "Provides an empty option alongside the options provided by values.",
|
|
8732
|
+
"markdownDescription": "Provides an empty option alongside the options provided by values.",
|
|
8733
|
+
"type": "boolean"
|
|
8734
|
+
},
|
|
8735
|
+
"empty_type": {
|
|
8736
|
+
"description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8737
|
+
"enum": [
|
|
8738
|
+
"null",
|
|
8739
|
+
"string"
|
|
8740
|
+
],
|
|
8741
|
+
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8742
|
+
"type": "string"
|
|
8743
|
+
},
|
|
8744
|
+
"max_length": {
|
|
8745
|
+
"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.",
|
|
8746
|
+
"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.",
|
|
8747
|
+
"type": "number"
|
|
8748
|
+
},
|
|
8749
|
+
"min_length": {
|
|
8750
|
+
"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.",
|
|
8751
|
+
"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.",
|
|
8752
|
+
"type": "number"
|
|
8753
|
+
},
|
|
8754
|
+
"pattern": {
|
|
8755
|
+
"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.",
|
|
8756
|
+
"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.",
|
|
8757
|
+
"type": "string"
|
|
8758
|
+
},
|
|
8759
|
+
"pattern_flags": {
|
|
8760
|
+
"additionalProperties": false,
|
|
8761
|
+
"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.",
|
|
8762
|
+
"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.",
|
|
8635
8763
|
"properties": {
|
|
8636
|
-
"
|
|
8764
|
+
"dot_all": {
|
|
8637
8765
|
"default": false,
|
|
8638
|
-
"description": "
|
|
8639
|
-
"markdownDescription": "
|
|
8766
|
+
"description": "`s` - `.` matches newline characters.",
|
|
8767
|
+
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8640
8768
|
"type": "boolean"
|
|
8641
8769
|
},
|
|
8642
|
-
"
|
|
8643
|
-
"default":
|
|
8644
|
-
"description": "
|
|
8645
|
-
"markdownDescription": "
|
|
8770
|
+
"global": {
|
|
8771
|
+
"default": false,
|
|
8772
|
+
"description": "`g` - Search globally.",
|
|
8773
|
+
"markdownDescription": "`g` - Search globally.",
|
|
8646
8774
|
"type": "boolean"
|
|
8647
8775
|
},
|
|
8648
|
-
"
|
|
8649
|
-
"
|
|
8650
|
-
"
|
|
8651
|
-
|
|
8652
|
-
"string"
|
|
8653
|
-
],
|
|
8654
|
-
"markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
|
|
8655
|
-
"type": "string"
|
|
8656
|
-
},
|
|
8657
|
-
"max_length": {
|
|
8658
|
-
"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.",
|
|
8659
|
-
"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.",
|
|
8660
|
-
"type": "number"
|
|
8661
|
-
},
|
|
8662
|
-
"min_length": {
|
|
8663
|
-
"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.",
|
|
8664
|
-
"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.",
|
|
8665
|
-
"type": "number"
|
|
8666
|
-
},
|
|
8667
|
-
"pattern": {
|
|
8668
|
-
"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.",
|
|
8669
|
-
"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.",
|
|
8670
|
-
"type": "string"
|
|
8671
|
-
},
|
|
8672
|
-
"pattern_flags": {
|
|
8673
|
-
"additionalProperties": false,
|
|
8674
|
-
"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.",
|
|
8675
|
-
"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.",
|
|
8676
|
-
"properties": {
|
|
8677
|
-
"dot_all": {
|
|
8678
|
-
"default": false,
|
|
8679
|
-
"description": "`s` - `.` matches newline characters.",
|
|
8680
|
-
"markdownDescription": "`s` - `.` matches newline characters.",
|
|
8681
|
-
"type": "boolean"
|
|
8682
|
-
},
|
|
8683
|
-
"global": {
|
|
8684
|
-
"default": false,
|
|
8685
|
-
"description": "`g` - Search globally.",
|
|
8686
|
-
"markdownDescription": "`g` - Search globally.",
|
|
8687
|
-
"type": "boolean"
|
|
8688
|
-
},
|
|
8689
|
-
"ignore_case": {
|
|
8690
|
-
"default": false,
|
|
8691
|
-
"description": "`i` - Case-insensitive.",
|
|
8692
|
-
"markdownDescription": "`i` - Case-insensitive.",
|
|
8693
|
-
"type": "boolean"
|
|
8694
|
-
},
|
|
8695
|
-
"multiline": {
|
|
8696
|
-
"default": false,
|
|
8697
|
-
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8698
|
-
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8699
|
-
"type": "boolean"
|
|
8700
|
-
},
|
|
8701
|
-
"unicode": {
|
|
8702
|
-
"default": false,
|
|
8703
|
-
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8704
|
-
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8705
|
-
"type": "boolean"
|
|
8706
|
-
},
|
|
8707
|
-
"unicode_sets": {
|
|
8708
|
-
"default": false,
|
|
8709
|
-
"description": "`v` - Extended `unicode` mode.",
|
|
8710
|
-
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8711
|
-
"type": "boolean"
|
|
8712
|
-
}
|
|
8713
|
-
},
|
|
8714
|
-
"type": "object"
|
|
8715
|
-
},
|
|
8716
|
-
"pattern_message": {
|
|
8717
|
-
"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.",
|
|
8718
|
-
"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.",
|
|
8719
|
-
"type": "string"
|
|
8720
|
-
},
|
|
8721
|
-
"picker_preview": {
|
|
8722
|
-
"$ref": "#/definitions/Preview",
|
|
8723
|
-
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8724
|
-
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8725
|
-
},
|
|
8726
|
-
"picker_view": {
|
|
8727
|
-
"description": "Controls how selectable options are rendered.",
|
|
8728
|
-
"enum": [
|
|
8729
|
-
"card",
|
|
8730
|
-
"text",
|
|
8731
|
-
"gallery",
|
|
8732
|
-
"gallery-left"
|
|
8733
|
-
],
|
|
8734
|
-
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8735
|
-
"type": "string"
|
|
8736
|
-
},
|
|
8737
|
-
"preview": {
|
|
8738
|
-
"$ref": "#/definitions/Preview",
|
|
8739
|
-
"description": "Changes the way items are previewed in the CMS.",
|
|
8740
|
-
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8741
|
-
},
|
|
8742
|
-
"required": {
|
|
8743
|
-
"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).",
|
|
8744
|
-
"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).",
|
|
8776
|
+
"ignore_case": {
|
|
8777
|
+
"default": false,
|
|
8778
|
+
"description": "`i` - Case-insensitive.",
|
|
8779
|
+
"markdownDescription": "`i` - Case-insensitive.",
|
|
8745
8780
|
"type": "boolean"
|
|
8746
8781
|
},
|
|
8747
|
-
"
|
|
8748
|
-
"
|
|
8749
|
-
"
|
|
8750
|
-
"
|
|
8782
|
+
"multiline": {
|
|
8783
|
+
"default": false,
|
|
8784
|
+
"description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8785
|
+
"markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
|
|
8786
|
+
"type": "boolean"
|
|
8751
8787
|
},
|
|
8752
|
-
"
|
|
8753
|
-
"
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
{
|
|
8758
|
-
"$ref": "#/definitions/SelectValues"
|
|
8759
|
-
}
|
|
8760
|
-
],
|
|
8761
|
-
"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).",
|
|
8762
|
-
"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)."
|
|
8788
|
+
"unicode": {
|
|
8789
|
+
"default": false,
|
|
8790
|
+
"description": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8791
|
+
"markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
|
|
8792
|
+
"type": "boolean"
|
|
8763
8793
|
},
|
|
8764
|
-
"
|
|
8765
|
-
"
|
|
8766
|
-
"
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
"gallery",
|
|
8770
|
-
"gallery-left"
|
|
8771
|
-
],
|
|
8772
|
-
"markdownDescription": "Controls how selected items are rendered.",
|
|
8773
|
-
"type": "string"
|
|
8794
|
+
"unicode_sets": {
|
|
8795
|
+
"default": false,
|
|
8796
|
+
"description": "`v` - Extended `unicode` mode.",
|
|
8797
|
+
"markdownDescription": "`v` - Extended `unicode` mode.",
|
|
8798
|
+
"type": "boolean"
|
|
8774
8799
|
}
|
|
8775
8800
|
},
|
|
8776
8801
|
"type": "object"
|
|
8777
8802
|
},
|
|
8778
|
-
"
|
|
8779
|
-
"
|
|
8780
|
-
"
|
|
8781
|
-
"
|
|
8803
|
+
"pattern_message": {
|
|
8804
|
+
"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.",
|
|
8805
|
+
"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.",
|
|
8806
|
+
"type": "string"
|
|
8807
|
+
},
|
|
8808
|
+
"picker_preview": {
|
|
8809
|
+
"$ref": "#/definitions/Preview",
|
|
8810
|
+
"description": "Changes the way items are previewed in the CMS while being chosen.",
|
|
8811
|
+
"markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
|
|
8812
|
+
},
|
|
8813
|
+
"picker_view": {
|
|
8814
|
+
"description": "Controls how selectable options are rendered.",
|
|
8815
|
+
"enum": [
|
|
8816
|
+
"card",
|
|
8817
|
+
"text",
|
|
8818
|
+
"gallery",
|
|
8819
|
+
"gallery-left"
|
|
8820
|
+
],
|
|
8821
|
+
"markdownDescription": "Controls how selectable options are rendered.",
|
|
8822
|
+
"type": "string"
|
|
8823
|
+
},
|
|
8824
|
+
"preview": {
|
|
8825
|
+
"$ref": "#/definitions/Preview",
|
|
8826
|
+
"description": "Changes the way items are previewed in the CMS.",
|
|
8827
|
+
"markdownDescription": "Changes the way items are previewed in the CMS."
|
|
8828
|
+
},
|
|
8829
|
+
"required": {
|
|
8830
|
+
"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).",
|
|
8831
|
+
"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).",
|
|
8832
|
+
"type": "boolean"
|
|
8833
|
+
},
|
|
8834
|
+
"value_key": {
|
|
8835
|
+
"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.",
|
|
8836
|
+
"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.",
|
|
8837
|
+
"type": "string"
|
|
8838
|
+
},
|
|
8839
|
+
"values": {
|
|
8840
|
+
"anyOf": [
|
|
8841
|
+
{
|
|
8842
|
+
"type": "string"
|
|
8843
|
+
},
|
|
8844
|
+
{
|
|
8845
|
+
"$ref": "#/definitions/SelectValues"
|
|
8846
|
+
}
|
|
8847
|
+
],
|
|
8848
|
+
"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).",
|
|
8849
|
+
"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)."
|
|
8850
|
+
},
|
|
8851
|
+
"view": {
|
|
8852
|
+
"description": "Controls how selected items are rendered.",
|
|
8853
|
+
"enum": [
|
|
8854
|
+
"card",
|
|
8855
|
+
"text",
|
|
8856
|
+
"gallery",
|
|
8857
|
+
"gallery-left"
|
|
8858
|
+
],
|
|
8859
|
+
"markdownDescription": "Controls how selected items are rendered.",
|
|
8782
8860
|
"type": "string"
|
|
8783
8861
|
}
|
|
8784
8862
|
},
|
|
8785
|
-
"required": [
|
|
8786
|
-
"type"
|
|
8787
|
-
],
|
|
8788
8863
|
"type": "object"
|
|
8789
8864
|
},
|
|
8790
8865
|
"SelectValues": {
|