@cloudcannon/configuration-types 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 array item for adding new items to this Input.",
150
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
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 array item for removing them.",
156
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
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 array item for moving them.",
162
- "markdownDescription": "Hides the controls on each array item for moving them.",
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
- "additionalProperties": false,
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
- "allow_empty": {
787
- "default": true,
788
- "description": "Provides an empty option alongside the options provided by values.",
789
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
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
- "empty_type": {
793
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
794
- "enum": [
795
- "null",
796
- "string"
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
- "required": {
887
- "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).",
888
- "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).",
848
+ "ignore_case": {
849
+ "default": false,
850
+ "description": "`i` - Case-insensitive.",
851
+ "markdownDescription": "`i` - Case-insensitive.",
889
852
  "type": "boolean"
890
853
  },
891
- "value_key": {
892
- "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.",
893
- "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.",
894
- "type": "string"
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
- "values": {
897
- "anyOf": [
898
- {
899
- "type": "string"
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
- "view": {
909
- "description": "Controls how selected items are rendered.",
910
- "enum": [
911
- "card",
912
- "text",
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
- "type": {
923
- "const": "choice",
924
- "description": "Sets an input type, which controls how this input appears and behaves.",
925
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
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": {
@@ -6974,96 +6977,9 @@
6974
6977
  "type": "string"
6975
6978
  },
6976
6979
  "options": {
6977
- "additionalProperties": false,
6980
+ "$ref": "#/definitions/MultichoiceInputOptions",
6978
6981
  "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"
6982
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
7067
6983
  },
7068
6984
  "type": {
7069
6985
  "const": "multichoice",
@@ -7077,6 +6993,96 @@
7077
6993
  ],
7078
6994
  "type": "object"
7079
6995
  },
6996
+ "MultichoiceInputOptions": {
6997
+ "additionalProperties": false,
6998
+ "properties": {
6999
+ "allow_empty": {
7000
+ "default": true,
7001
+ "description": "Provides an empty option alongside the options provided by values.",
7002
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7003
+ "type": "boolean"
7004
+ },
7005
+ "empty_type": {
7006
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7007
+ "enum": [
7008
+ "null",
7009
+ "array"
7010
+ ],
7011
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7012
+ "type": "string"
7013
+ },
7014
+ "max_items": {
7015
+ "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.",
7016
+ "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.",
7017
+ "type": "number"
7018
+ },
7019
+ "min_items": {
7020
+ "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.",
7021
+ "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.",
7022
+ "type": "number"
7023
+ },
7024
+ "picker_preview": {
7025
+ "$ref": "#/definitions/Preview",
7026
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7027
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7028
+ },
7029
+ "picker_view": {
7030
+ "description": "Controls how selectable options are rendered.",
7031
+ "enum": [
7032
+ "card",
7033
+ "text",
7034
+ "gallery",
7035
+ "gallery-left"
7036
+ ],
7037
+ "markdownDescription": "Controls how selectable options are rendered.",
7038
+ "type": "string"
7039
+ },
7040
+ "preview": {
7041
+ "$ref": "#/definitions/Preview",
7042
+ "description": "Changes the way items are previewed in the CMS.",
7043
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7044
+ },
7045
+ "required": {
7046
+ "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).",
7047
+ "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).",
7048
+ "type": "boolean"
7049
+ },
7050
+ "unique_on": {
7051
+ "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.",
7052
+ "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.",
7053
+ "type": "string"
7054
+ },
7055
+ "value_key": {
7056
+ "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.",
7057
+ "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.",
7058
+ "type": "string"
7059
+ },
7060
+ "values": {
7061
+ "anyOf": [
7062
+ {
7063
+ "type": "string"
7064
+ },
7065
+ {
7066
+ "$ref": "#/definitions/SelectValues"
7067
+ }
7068
+ ],
7069
+ "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).",
7070
+ "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)."
7071
+ },
7072
+ "view": {
7073
+ "description": "Controls how selected items are rendered.",
7074
+ "enum": [
7075
+ "card",
7076
+ "text",
7077
+ "gallery",
7078
+ "gallery-left"
7079
+ ],
7080
+ "markdownDescription": "Controls how selected items are rendered.",
7081
+ "type": "string"
7082
+ }
7083
+ },
7084
+ "type": "object"
7085
+ },
7080
7086
  "MultiselectInput": {
7081
7087
  "additionalProperties": false,
7082
7088
  "properties": {
@@ -7177,22 +7183,34 @@
7177
7183
  "MultiselectInputOptions": {
7178
7184
  "additionalProperties": false,
7179
7185
  "properties": {
7186
+ "allow_create": {
7187
+ "default": false,
7188
+ "description": "Allows new text values to be created at edit time.",
7189
+ "markdownDescription": "Allows new text values to be created at edit time.",
7190
+ "type": "boolean"
7191
+ },
7192
+ "allow_empty": {
7193
+ "default": true,
7194
+ "description": "Provides an empty option alongside the options provided by values.",
7195
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7196
+ "type": "boolean"
7197
+ },
7180
7198
  "disable_add": {
7181
7199
  "default": false,
7182
- "description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
7183
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
7200
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7201
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7184
7202
  "type": "boolean"
7185
7203
  },
7186
7204
  "disable_remove": {
7187
7205
  "default": false,
7188
- "description": "Hides the context menu actions on each array item for removing them.",
7189
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
7206
+ "description": "Hides the context menu actions on each item for removing them.",
7207
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7190
7208
  "type": "boolean"
7191
7209
  },
7192
7210
  "disable_reorder": {
7193
7211
  "default": false,
7194
- "description": "Hides the controls on each array item for moving them.",
7195
- "markdownDescription": "Hides the controls on each array item for moving them.",
7212
+ "description": "Hides the controls on each item for moving them.",
7213
+ "markdownDescription": "Hides the controls on each item for moving them.",
7196
7214
  "type": "boolean"
7197
7215
  },
7198
7216
  "empty_type": {
@@ -7214,6 +7232,27 @@
7214
7232
  "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
7233
  "type": "number"
7216
7234
  },
7235
+ "picker_preview": {
7236
+ "$ref": "#/definitions/Preview",
7237
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7238
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7239
+ },
7240
+ "picker_view": {
7241
+ "description": "Controls how selectable options are rendered.",
7242
+ "enum": [
7243
+ "card",
7244
+ "text",
7245
+ "gallery",
7246
+ "gallery-left"
7247
+ ],
7248
+ "markdownDescription": "Controls how selectable options are rendered.",
7249
+ "type": "string"
7250
+ },
7251
+ "preview": {
7252
+ "$ref": "#/definitions/Preview",
7253
+ "description": "Changes the way items are previewed in the CMS.",
7254
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7255
+ },
7217
7256
  "required": {
7218
7257
  "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
7258
  "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 +7262,34 @@
7223
7262
  "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
7263
  "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
7264
  "type": "string"
7265
+ },
7266
+ "value_key": {
7267
+ "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.",
7268
+ "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.",
7269
+ "type": "string"
7270
+ },
7271
+ "values": {
7272
+ "anyOf": [
7273
+ {
7274
+ "type": "string"
7275
+ },
7276
+ {
7277
+ "$ref": "#/definitions/SelectValues"
7278
+ }
7279
+ ],
7280
+ "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).",
7281
+ "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)."
7282
+ },
7283
+ "view": {
7284
+ "description": "Controls how selected items are rendered.",
7285
+ "enum": [
7286
+ "card",
7287
+ "text",
7288
+ "gallery",
7289
+ "gallery-left"
7290
+ ],
7291
+ "markdownDescription": "Controls how selected items are rendered.",
7292
+ "type": "string"
7226
7293
  }
7227
7294
  },
7228
7295
  "type": "object"
@@ -8629,162 +8696,165 @@
8629
8696
  "type": "string"
8630
8697
  },
8631
8698
  "options": {
8632
- "additionalProperties": false,
8699
+ "$ref": "#/definitions/SelectInputOptions",
8633
8700
  "description": "Options that are specific to Select Inputs.",
8634
- "markdownDescription": "Options that are specific to Select Inputs.",
8701
+ "markdownDescription": "Options that are specific to Select Inputs."
8702
+ },
8703
+ "type": {
8704
+ "const": "select",
8705
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8706
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8707
+ "type": "string"
8708
+ }
8709
+ },
8710
+ "required": [
8711
+ "type"
8712
+ ],
8713
+ "type": "object"
8714
+ },
8715
+ "SelectInputOptions": {
8716
+ "additionalProperties": false,
8717
+ "properties": {
8718
+ "allow_create": {
8719
+ "default": false,
8720
+ "description": "Allows new text values to be created at edit time.",
8721
+ "markdownDescription": "Allows new text values to be created at edit time.",
8722
+ "type": "boolean"
8723
+ },
8724
+ "allow_empty": {
8725
+ "default": true,
8726
+ "description": "Provides an empty option alongside the options provided by values.",
8727
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8728
+ "type": "boolean"
8729
+ },
8730
+ "empty_type": {
8731
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8732
+ "enum": [
8733
+ "null",
8734
+ "string"
8735
+ ],
8736
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8737
+ "type": "string"
8738
+ },
8739
+ "max_length": {
8740
+ "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.",
8741
+ "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.",
8742
+ "type": "number"
8743
+ },
8744
+ "min_length": {
8745
+ "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.",
8746
+ "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.",
8747
+ "type": "number"
8748
+ },
8749
+ "pattern": {
8750
+ "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.",
8751
+ "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.",
8752
+ "type": "string"
8753
+ },
8754
+ "pattern_flags": {
8755
+ "additionalProperties": false,
8756
+ "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.",
8757
+ "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
8758
  "properties": {
8636
- "allow_create": {
8759
+ "dot_all": {
8637
8760
  "default": false,
8638
- "description": "Allows new text values to be created at edit time.",
8639
- "markdownDescription": "Allows new text values to be created at edit time.",
8761
+ "description": "`s` - `.` matches newline characters.",
8762
+ "markdownDescription": "`s` - `.` matches newline characters.",
8640
8763
  "type": "boolean"
8641
8764
  },
8642
- "allow_empty": {
8643
- "default": true,
8644
- "description": "Provides an empty option alongside the options provided by values.",
8645
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8765
+ "global": {
8766
+ "default": false,
8767
+ "description": "`g` - Search globally.",
8768
+ "markdownDescription": "`g` - Search globally.",
8646
8769
  "type": "boolean"
8647
8770
  },
8648
- "empty_type": {
8649
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8650
- "enum": [
8651
- "null",
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).",
8771
+ "ignore_case": {
8772
+ "default": false,
8773
+ "description": "`i` - Case-insensitive.",
8774
+ "markdownDescription": "`i` - Case-insensitive.",
8745
8775
  "type": "boolean"
8746
8776
  },
8747
- "value_key": {
8748
- "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.",
8749
- "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.",
8750
- "type": "string"
8777
+ "multiline": {
8778
+ "default": false,
8779
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8780
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8781
+ "type": "boolean"
8751
8782
  },
8752
- "values": {
8753
- "anyOf": [
8754
- {
8755
- "type": "string"
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)."
8783
+ "unicode": {
8784
+ "default": false,
8785
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8786
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8787
+ "type": "boolean"
8763
8788
  },
8764
- "view": {
8765
- "description": "Controls how selected items are rendered.",
8766
- "enum": [
8767
- "card",
8768
- "text",
8769
- "gallery",
8770
- "gallery-left"
8771
- ],
8772
- "markdownDescription": "Controls how selected items are rendered.",
8773
- "type": "string"
8789
+ "unicode_sets": {
8790
+ "default": false,
8791
+ "description": "`v` - Extended `unicode` mode.",
8792
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8793
+ "type": "boolean"
8774
8794
  }
8775
8795
  },
8776
8796
  "type": "object"
8777
8797
  },
8778
- "type": {
8779
- "const": "select",
8780
- "description": "Sets an input type, which controls how this input appears and behaves.",
8781
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8798
+ "pattern_message": {
8799
+ "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.",
8800
+ "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.",
8801
+ "type": "string"
8802
+ },
8803
+ "picker_preview": {
8804
+ "$ref": "#/definitions/Preview",
8805
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8806
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8807
+ },
8808
+ "picker_view": {
8809
+ "description": "Controls how selectable options are rendered.",
8810
+ "enum": [
8811
+ "card",
8812
+ "text",
8813
+ "gallery",
8814
+ "gallery-left"
8815
+ ],
8816
+ "markdownDescription": "Controls how selectable options are rendered.",
8817
+ "type": "string"
8818
+ },
8819
+ "preview": {
8820
+ "$ref": "#/definitions/Preview",
8821
+ "description": "Changes the way items are previewed in the CMS.",
8822
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8823
+ },
8824
+ "required": {
8825
+ "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).",
8826
+ "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).",
8827
+ "type": "boolean"
8828
+ },
8829
+ "value_key": {
8830
+ "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.",
8831
+ "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.",
8832
+ "type": "string"
8833
+ },
8834
+ "values": {
8835
+ "anyOf": [
8836
+ {
8837
+ "type": "string"
8838
+ },
8839
+ {
8840
+ "$ref": "#/definitions/SelectValues"
8841
+ }
8842
+ ],
8843
+ "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).",
8844
+ "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)."
8845
+ },
8846
+ "view": {
8847
+ "description": "Controls how selected items are rendered.",
8848
+ "enum": [
8849
+ "card",
8850
+ "text",
8851
+ "gallery",
8852
+ "gallery-left"
8853
+ ],
8854
+ "markdownDescription": "Controls how selected items are rendered.",
8782
8855
  "type": "string"
8783
8856
  }
8784
8857
  },
8785
- "required": [
8786
- "type"
8787
- ],
8788
8858
  "type": "object"
8789
8859
  },
8790
8860
  "SelectValues": {