@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": {
@@ -841,156 +841,159 @@
841
841
  "type": "string"
842
842
  },
843
843
  "options": {
844
- "additionalProperties": false,
844
+ "$ref": "#/definitions/ChoiceInputOptions",
845
845
  "description": "Options that are specific to Choice Inputs.",
846
- "markdownDescription": "Options that are specific to Choice Inputs.",
846
+ "markdownDescription": "Options that are specific to Choice Inputs."
847
+ },
848
+ "type": {
849
+ "const": "choice",
850
+ "description": "Sets an input type, which controls how this input appears and behaves.",
851
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
852
+ "type": "string"
853
+ }
854
+ },
855
+ "required": [
856
+ "type"
857
+ ],
858
+ "type": "object"
859
+ },
860
+ "ChoiceInputOptions": {
861
+ "additionalProperties": false,
862
+ "properties": {
863
+ "allow_empty": {
864
+ "default": true,
865
+ "description": "Provides an empty option alongside the options provided by values.",
866
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
867
+ "type": "boolean"
868
+ },
869
+ "empty_type": {
870
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
871
+ "enum": [
872
+ "null",
873
+ "string"
874
+ ],
875
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
876
+ "type": "string"
877
+ },
878
+ "max_length": {
879
+ "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
880
+ "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
881
+ "type": "number"
882
+ },
883
+ "min_length": {
884
+ "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
885
+ "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
886
+ "type": "number"
887
+ },
888
+ "pattern": {
889
+ "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
890
+ "markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
891
+ "type": "string"
892
+ },
893
+ "pattern_flags": {
894
+ "additionalProperties": false,
895
+ "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
896
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
847
897
  "properties": {
848
- "allow_empty": {
849
- "default": true,
850
- "description": "Provides an empty option alongside the options provided by values.",
851
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
898
+ "dot_all": {
899
+ "default": false,
900
+ "description": "`s` - `.` matches newline characters.",
901
+ "markdownDescription": "`s` - `.` matches newline characters.",
852
902
  "type": "boolean"
853
903
  },
854
- "empty_type": {
855
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
856
- "enum": [
857
- "null",
858
- "string"
859
- ],
860
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
861
- "type": "string"
862
- },
863
- "max_length": {
864
- "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
865
- "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
866
- "type": "number"
867
- },
868
- "min_length": {
869
- "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
870
- "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
871
- "type": "number"
872
- },
873
- "pattern": {
874
- "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
875
- "markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
876
- "type": "string"
877
- },
878
- "pattern_flags": {
879
- "additionalProperties": false,
880
- "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
881
- "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
882
- "properties": {
883
- "dot_all": {
884
- "default": false,
885
- "description": "`s` - `.` matches newline characters.",
886
- "markdownDescription": "`s` - `.` matches newline characters.",
887
- "type": "boolean"
888
- },
889
- "global": {
890
- "default": false,
891
- "description": "`g` - Search globally.",
892
- "markdownDescription": "`g` - Search globally.",
893
- "type": "boolean"
894
- },
895
- "ignore_case": {
896
- "default": false,
897
- "description": "`i` - Case-insensitive.",
898
- "markdownDescription": "`i` - Case-insensitive.",
899
- "type": "boolean"
900
- },
901
- "multiline": {
902
- "default": false,
903
- "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
904
- "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
905
- "type": "boolean"
906
- },
907
- "unicode": {
908
- "default": false,
909
- "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
910
- "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
911
- "type": "boolean"
912
- },
913
- "unicode_sets": {
914
- "default": false,
915
- "description": "`v` - Extended `unicode` mode.",
916
- "markdownDescription": "`v` - Extended `unicode` mode.",
917
- "type": "boolean"
918
- }
919
- },
920
- "type": "object"
921
- },
922
- "pattern_message": {
923
- "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
924
- "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
925
- "type": "string"
926
- },
927
- "picker_preview": {
928
- "$ref": "#/definitions/Preview",
929
- "description": "Changes the way items are previewed in the CMS while being chosen.",
930
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
931
- },
932
- "picker_view": {
933
- "description": "Controls how selectable options are rendered.",
934
- "enum": [
935
- "card",
936
- "text",
937
- "gallery",
938
- "gallery-left"
939
- ],
940
- "markdownDescription": "Controls how selectable options are rendered.",
941
- "type": "string"
942
- },
943
- "preview": {
944
- "$ref": "#/definitions/Preview",
945
- "description": "Changes the way items are previewed in the CMS.",
946
- "markdownDescription": "Changes the way items are previewed in the CMS."
904
+ "global": {
905
+ "default": false,
906
+ "description": "`g` - Search globally.",
907
+ "markdownDescription": "`g` - Search globally.",
908
+ "type": "boolean"
947
909
  },
948
- "required": {
949
- "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).",
950
- "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).",
910
+ "ignore_case": {
911
+ "default": false,
912
+ "description": "`i` - Case-insensitive.",
913
+ "markdownDescription": "`i` - Case-insensitive.",
951
914
  "type": "boolean"
952
915
  },
953
- "value_key": {
954
- "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.",
955
- "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.",
956
- "type": "string"
916
+ "multiline": {
917
+ "default": false,
918
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
919
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
920
+ "type": "boolean"
957
921
  },
958
- "values": {
959
- "anyOf": [
960
- {
961
- "type": "string"
962
- },
963
- {
964
- "$ref": "#/definitions/SelectValues"
965
- }
966
- ],
967
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
968
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
922
+ "unicode": {
923
+ "default": false,
924
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
925
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
926
+ "type": "boolean"
969
927
  },
970
- "view": {
971
- "description": "Controls how selected items are rendered.",
972
- "enum": [
973
- "card",
974
- "text",
975
- "gallery",
976
- "gallery-left"
977
- ],
978
- "markdownDescription": "Controls how selected items are rendered.",
979
- "type": "string"
928
+ "unicode_sets": {
929
+ "default": false,
930
+ "description": "`v` - Extended `unicode` mode.",
931
+ "markdownDescription": "`v` - Extended `unicode` mode.",
932
+ "type": "boolean"
980
933
  }
981
934
  },
982
935
  "type": "object"
983
936
  },
984
- "type": {
985
- "const": "choice",
986
- "description": "Sets an input type, which controls how this input appears and behaves.",
987
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
937
+ "pattern_message": {
938
+ "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
939
+ "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
940
+ "type": "string"
941
+ },
942
+ "picker_preview": {
943
+ "$ref": "#/definitions/Preview",
944
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
945
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
946
+ },
947
+ "picker_view": {
948
+ "description": "Controls how selectable options are rendered.",
949
+ "enum": [
950
+ "card",
951
+ "text",
952
+ "gallery",
953
+ "gallery-left"
954
+ ],
955
+ "markdownDescription": "Controls how selectable options are rendered.",
956
+ "type": "string"
957
+ },
958
+ "preview": {
959
+ "$ref": "#/definitions/Preview",
960
+ "description": "Changes the way items are previewed in the CMS.",
961
+ "markdownDescription": "Changes the way items are previewed in the CMS."
962
+ },
963
+ "required": {
964
+ "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
965
+ "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
966
+ "type": "boolean"
967
+ },
968
+ "value_key": {
969
+ "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
970
+ "markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
971
+ "type": "string"
972
+ },
973
+ "values": {
974
+ "anyOf": [
975
+ {
976
+ "type": "string"
977
+ },
978
+ {
979
+ "$ref": "#/definitions/SelectValues"
980
+ }
981
+ ],
982
+ "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
983
+ "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
984
+ },
985
+ "view": {
986
+ "description": "Controls how selected items are rendered.",
987
+ "enum": [
988
+ "card",
989
+ "text",
990
+ "gallery",
991
+ "gallery-left"
992
+ ],
993
+ "markdownDescription": "Controls how selected items are rendered.",
988
994
  "type": "string"
989
995
  }
990
996
  },
991
- "required": [
992
- "type"
993
- ],
994
997
  "type": "object"
995
998
  },
996
999
  "CodeInput": {
@@ -7072,96 +7075,9 @@
7072
7075
  "type": "string"
7073
7076
  },
7074
7077
  "options": {
7075
- "additionalProperties": false,
7078
+ "$ref": "#/definitions/MultichoiceInputOptions",
7076
7079
  "description": "Options that are specific to Multichoice Inputs.",
7077
- "markdownDescription": "Options that are specific to Multichoice Inputs.",
7078
- "properties": {
7079
- "allow_empty": {
7080
- "default": true,
7081
- "description": "Provides an empty option alongside the options provided by values.",
7082
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
7083
- "type": "boolean"
7084
- },
7085
- "empty_type": {
7086
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7087
- "enum": [
7088
- "null",
7089
- "array"
7090
- ],
7091
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7092
- "type": "string"
7093
- },
7094
- "max_items": {
7095
- "description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
7096
- "markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
7097
- "type": "number"
7098
- },
7099
- "min_items": {
7100
- "description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
7101
- "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
7102
- "type": "number"
7103
- },
7104
- "picker_preview": {
7105
- "$ref": "#/definitions/Preview",
7106
- "description": "Changes the way items are previewed in the CMS while being chosen.",
7107
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7108
- },
7109
- "picker_view": {
7110
- "description": "Controls how selectable options are rendered.",
7111
- "enum": [
7112
- "card",
7113
- "text",
7114
- "gallery",
7115
- "gallery-left"
7116
- ],
7117
- "markdownDescription": "Controls how selectable options are rendered.",
7118
- "type": "string"
7119
- },
7120
- "preview": {
7121
- "$ref": "#/definitions/Preview",
7122
- "description": "Changes the way items are previewed in the CMS.",
7123
- "markdownDescription": "Changes the way items are previewed in the CMS."
7124
- },
7125
- "required": {
7126
- "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7127
- "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7128
- "type": "boolean"
7129
- },
7130
- "unique_on": {
7131
- "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7132
- "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7133
- "type": "string"
7134
- },
7135
- "value_key": {
7136
- "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
7137
- "markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
7138
- "type": "string"
7139
- },
7140
- "values": {
7141
- "anyOf": [
7142
- {
7143
- "type": "string"
7144
- },
7145
- {
7146
- "$ref": "#/definitions/SelectValues"
7147
- }
7148
- ],
7149
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
7150
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
7151
- },
7152
- "view": {
7153
- "description": "Controls how selected items are rendered.",
7154
- "enum": [
7155
- "card",
7156
- "text",
7157
- "gallery",
7158
- "gallery-left"
7159
- ],
7160
- "markdownDescription": "Controls how selected items are rendered.",
7161
- "type": "string"
7162
- }
7163
- },
7164
- "type": "object"
7080
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
7165
7081
  },
7166
7082
  "type": {
7167
7083
  "const": "multichoice",
@@ -7175,6 +7091,96 @@
7175
7091
  ],
7176
7092
  "type": "object"
7177
7093
  },
7094
+ "MultichoiceInputOptions": {
7095
+ "additionalProperties": false,
7096
+ "properties": {
7097
+ "allow_empty": {
7098
+ "default": true,
7099
+ "description": "Provides an empty option alongside the options provided by values.",
7100
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7101
+ "type": "boolean"
7102
+ },
7103
+ "empty_type": {
7104
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7105
+ "enum": [
7106
+ "null",
7107
+ "array"
7108
+ ],
7109
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
7110
+ "type": "string"
7111
+ },
7112
+ "max_items": {
7113
+ "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.",
7114
+ "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.",
7115
+ "type": "number"
7116
+ },
7117
+ "min_items": {
7118
+ "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.",
7119
+ "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.",
7120
+ "type": "number"
7121
+ },
7122
+ "picker_preview": {
7123
+ "$ref": "#/definitions/Preview",
7124
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7125
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7126
+ },
7127
+ "picker_view": {
7128
+ "description": "Controls how selectable options are rendered.",
7129
+ "enum": [
7130
+ "card",
7131
+ "text",
7132
+ "gallery",
7133
+ "gallery-left"
7134
+ ],
7135
+ "markdownDescription": "Controls how selectable options are rendered.",
7136
+ "type": "string"
7137
+ },
7138
+ "preview": {
7139
+ "$ref": "#/definitions/Preview",
7140
+ "description": "Changes the way items are previewed in the CMS.",
7141
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7142
+ },
7143
+ "required": {
7144
+ "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).",
7145
+ "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).",
7146
+ "type": "boolean"
7147
+ },
7148
+ "unique_on": {
7149
+ "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.",
7150
+ "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.",
7151
+ "type": "string"
7152
+ },
7153
+ "value_key": {
7154
+ "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.",
7155
+ "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.",
7156
+ "type": "string"
7157
+ },
7158
+ "values": {
7159
+ "anyOf": [
7160
+ {
7161
+ "type": "string"
7162
+ },
7163
+ {
7164
+ "$ref": "#/definitions/SelectValues"
7165
+ }
7166
+ ],
7167
+ "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).",
7168
+ "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)."
7169
+ },
7170
+ "view": {
7171
+ "description": "Controls how selected items are rendered.",
7172
+ "enum": [
7173
+ "card",
7174
+ "text",
7175
+ "gallery",
7176
+ "gallery-left"
7177
+ ],
7178
+ "markdownDescription": "Controls how selected items are rendered.",
7179
+ "type": "string"
7180
+ }
7181
+ },
7182
+ "type": "object"
7183
+ },
7178
7184
  "MultiselectInput": {
7179
7185
  "additionalProperties": false,
7180
7186
  "properties": {
@@ -7275,22 +7281,34 @@
7275
7281
  "MultiselectInputOptions": {
7276
7282
  "additionalProperties": false,
7277
7283
  "properties": {
7284
+ "allow_create": {
7285
+ "default": false,
7286
+ "description": "Allows new text values to be created at edit time.",
7287
+ "markdownDescription": "Allows new text values to be created at edit time.",
7288
+ "type": "boolean"
7289
+ },
7290
+ "allow_empty": {
7291
+ "default": true,
7292
+ "description": "Provides an empty option alongside the options provided by values.",
7293
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7294
+ "type": "boolean"
7295
+ },
7278
7296
  "disable_add": {
7279
7297
  "default": false,
7280
- "description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
7281
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
7298
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7299
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7282
7300
  "type": "boolean"
7283
7301
  },
7284
7302
  "disable_remove": {
7285
7303
  "default": false,
7286
- "description": "Hides the context menu actions on each array item for removing them.",
7287
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
7304
+ "description": "Hides the context menu actions on each item for removing them.",
7305
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7288
7306
  "type": "boolean"
7289
7307
  },
7290
7308
  "disable_reorder": {
7291
7309
  "default": false,
7292
- "description": "Hides the controls on each array item for moving them.",
7293
- "markdownDescription": "Hides the controls on each array item for moving them.",
7310
+ "description": "Hides the controls on each item for moving them.",
7311
+ "markdownDescription": "Hides the controls on each item for moving them.",
7294
7312
  "type": "boolean"
7295
7313
  },
7296
7314
  "empty_type": {
@@ -7312,6 +7330,27 @@
7312
7330
  "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
7313
7331
  "type": "number"
7314
7332
  },
7333
+ "picker_preview": {
7334
+ "$ref": "#/definitions/Preview",
7335
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7336
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7337
+ },
7338
+ "picker_view": {
7339
+ "description": "Controls how selectable options are rendered.",
7340
+ "enum": [
7341
+ "card",
7342
+ "text",
7343
+ "gallery",
7344
+ "gallery-left"
7345
+ ],
7346
+ "markdownDescription": "Controls how selectable options are rendered.",
7347
+ "type": "string"
7348
+ },
7349
+ "preview": {
7350
+ "$ref": "#/definitions/Preview",
7351
+ "description": "Changes the way items are previewed in the CMS.",
7352
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7353
+ },
7315
7354
  "required": {
7316
7355
  "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7317
7356
  "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
@@ -7321,6 +7360,34 @@
7321
7360
  "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7322
7361
  "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7323
7362
  "type": "string"
7363
+ },
7364
+ "value_key": {
7365
+ "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.",
7366
+ "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.",
7367
+ "type": "string"
7368
+ },
7369
+ "values": {
7370
+ "anyOf": [
7371
+ {
7372
+ "type": "string"
7373
+ },
7374
+ {
7375
+ "$ref": "#/definitions/SelectValues"
7376
+ }
7377
+ ],
7378
+ "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).",
7379
+ "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)."
7380
+ },
7381
+ "view": {
7382
+ "description": "Controls how selected items are rendered.",
7383
+ "enum": [
7384
+ "card",
7385
+ "text",
7386
+ "gallery",
7387
+ "gallery-left"
7388
+ ],
7389
+ "markdownDescription": "Controls how selected items are rendered.",
7390
+ "type": "string"
7324
7391
  }
7325
7392
  },
7326
7393
  "type": "object"
@@ -8727,162 +8794,165 @@
8727
8794
  "type": "string"
8728
8795
  },
8729
8796
  "options": {
8730
- "additionalProperties": false,
8797
+ "$ref": "#/definitions/SelectInputOptions",
8731
8798
  "description": "Options that are specific to Select Inputs.",
8732
- "markdownDescription": "Options that are specific to Select Inputs.",
8799
+ "markdownDescription": "Options that are specific to Select Inputs."
8800
+ },
8801
+ "type": {
8802
+ "const": "select",
8803
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8804
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8805
+ "type": "string"
8806
+ }
8807
+ },
8808
+ "required": [
8809
+ "type"
8810
+ ],
8811
+ "type": "object"
8812
+ },
8813
+ "SelectInputOptions": {
8814
+ "additionalProperties": false,
8815
+ "properties": {
8816
+ "allow_create": {
8817
+ "default": false,
8818
+ "description": "Allows new text values to be created at edit time.",
8819
+ "markdownDescription": "Allows new text values to be created at edit time.",
8820
+ "type": "boolean"
8821
+ },
8822
+ "allow_empty": {
8823
+ "default": true,
8824
+ "description": "Provides an empty option alongside the options provided by values.",
8825
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8826
+ "type": "boolean"
8827
+ },
8828
+ "empty_type": {
8829
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8830
+ "enum": [
8831
+ "null",
8832
+ "string"
8833
+ ],
8834
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8835
+ "type": "string"
8836
+ },
8837
+ "max_length": {
8838
+ "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.",
8839
+ "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.",
8840
+ "type": "number"
8841
+ },
8842
+ "min_length": {
8843
+ "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.",
8844
+ "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.",
8845
+ "type": "number"
8846
+ },
8847
+ "pattern": {
8848
+ "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.",
8849
+ "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.",
8850
+ "type": "string"
8851
+ },
8852
+ "pattern_flags": {
8853
+ "additionalProperties": false,
8854
+ "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.",
8855
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8733
8856
  "properties": {
8734
- "allow_create": {
8857
+ "dot_all": {
8735
8858
  "default": false,
8736
- "description": "Allows new text values to be created at edit time.",
8737
- "markdownDescription": "Allows new text values to be created at edit time.",
8859
+ "description": "`s` - `.` matches newline characters.",
8860
+ "markdownDescription": "`s` - `.` matches newline characters.",
8738
8861
  "type": "boolean"
8739
8862
  },
8740
- "allow_empty": {
8741
- "default": true,
8742
- "description": "Provides an empty option alongside the options provided by values.",
8743
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8863
+ "global": {
8864
+ "default": false,
8865
+ "description": "`g` - Search globally.",
8866
+ "markdownDescription": "`g` - Search globally.",
8744
8867
  "type": "boolean"
8745
8868
  },
8746
- "empty_type": {
8747
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8748
- "enum": [
8749
- "null",
8750
- "string"
8751
- ],
8752
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8753
- "type": "string"
8754
- },
8755
- "max_length": {
8756
- "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8757
- "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8758
- "type": "number"
8759
- },
8760
- "min_length": {
8761
- "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8762
- "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8763
- "type": "number"
8764
- },
8765
- "pattern": {
8766
- "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8767
- "markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8768
- "type": "string"
8769
- },
8770
- "pattern_flags": {
8771
- "additionalProperties": false,
8772
- "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8773
- "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8774
- "properties": {
8775
- "dot_all": {
8776
- "default": false,
8777
- "description": "`s` - `.` matches newline characters.",
8778
- "markdownDescription": "`s` - `.` matches newline characters.",
8779
- "type": "boolean"
8780
- },
8781
- "global": {
8782
- "default": false,
8783
- "description": "`g` - Search globally.",
8784
- "markdownDescription": "`g` - Search globally.",
8785
- "type": "boolean"
8786
- },
8787
- "ignore_case": {
8788
- "default": false,
8789
- "description": "`i` - Case-insensitive.",
8790
- "markdownDescription": "`i` - Case-insensitive.",
8791
- "type": "boolean"
8792
- },
8793
- "multiline": {
8794
- "default": false,
8795
- "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8796
- "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8797
- "type": "boolean"
8798
- },
8799
- "unicode": {
8800
- "default": false,
8801
- "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8802
- "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8803
- "type": "boolean"
8804
- },
8805
- "unicode_sets": {
8806
- "default": false,
8807
- "description": "`v` - Extended `unicode` mode.",
8808
- "markdownDescription": "`v` - Extended `unicode` mode.",
8809
- "type": "boolean"
8810
- }
8811
- },
8812
- "type": "object"
8813
- },
8814
- "pattern_message": {
8815
- "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
8816
- "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
8817
- "type": "string"
8818
- },
8819
- "picker_preview": {
8820
- "$ref": "#/definitions/Preview",
8821
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8822
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8823
- },
8824
- "picker_view": {
8825
- "description": "Controls how selectable options are rendered.",
8826
- "enum": [
8827
- "card",
8828
- "text",
8829
- "gallery",
8830
- "gallery-left"
8831
- ],
8832
- "markdownDescription": "Controls how selectable options are rendered.",
8833
- "type": "string"
8834
- },
8835
- "preview": {
8836
- "$ref": "#/definitions/Preview",
8837
- "description": "Changes the way items are previewed in the CMS.",
8838
- "markdownDescription": "Changes the way items are previewed in the CMS."
8839
- },
8840
- "required": {
8841
- "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8842
- "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8869
+ "ignore_case": {
8870
+ "default": false,
8871
+ "description": "`i` - Case-insensitive.",
8872
+ "markdownDescription": "`i` - Case-insensitive.",
8843
8873
  "type": "boolean"
8844
8874
  },
8845
- "value_key": {
8846
- "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.",
8847
- "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.",
8848
- "type": "string"
8875
+ "multiline": {
8876
+ "default": false,
8877
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8878
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8879
+ "type": "boolean"
8849
8880
  },
8850
- "values": {
8851
- "anyOf": [
8852
- {
8853
- "type": "string"
8854
- },
8855
- {
8856
- "$ref": "#/definitions/SelectValues"
8857
- }
8858
- ],
8859
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
8860
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
8881
+ "unicode": {
8882
+ "default": false,
8883
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8884
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8885
+ "type": "boolean"
8861
8886
  },
8862
- "view": {
8863
- "description": "Controls how selected items are rendered.",
8864
- "enum": [
8865
- "card",
8866
- "text",
8867
- "gallery",
8868
- "gallery-left"
8869
- ],
8870
- "markdownDescription": "Controls how selected items are rendered.",
8871
- "type": "string"
8887
+ "unicode_sets": {
8888
+ "default": false,
8889
+ "description": "`v` - Extended `unicode` mode.",
8890
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8891
+ "type": "boolean"
8872
8892
  }
8873
8893
  },
8874
8894
  "type": "object"
8875
8895
  },
8876
- "type": {
8877
- "const": "select",
8878
- "description": "Sets an input type, which controls how this input appears and behaves.",
8879
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8896
+ "pattern_message": {
8897
+ "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.",
8898
+ "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.",
8899
+ "type": "string"
8900
+ },
8901
+ "picker_preview": {
8902
+ "$ref": "#/definitions/Preview",
8903
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8904
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8905
+ },
8906
+ "picker_view": {
8907
+ "description": "Controls how selectable options are rendered.",
8908
+ "enum": [
8909
+ "card",
8910
+ "text",
8911
+ "gallery",
8912
+ "gallery-left"
8913
+ ],
8914
+ "markdownDescription": "Controls how selectable options are rendered.",
8915
+ "type": "string"
8916
+ },
8917
+ "preview": {
8918
+ "$ref": "#/definitions/Preview",
8919
+ "description": "Changes the way items are previewed in the CMS.",
8920
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8921
+ },
8922
+ "required": {
8923
+ "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).",
8924
+ "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).",
8925
+ "type": "boolean"
8926
+ },
8927
+ "value_key": {
8928
+ "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.",
8929
+ "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.",
8930
+ "type": "string"
8931
+ },
8932
+ "values": {
8933
+ "anyOf": [
8934
+ {
8935
+ "type": "string"
8936
+ },
8937
+ {
8938
+ "$ref": "#/definitions/SelectValues"
8939
+ }
8940
+ ],
8941
+ "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).",
8942
+ "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)."
8943
+ },
8944
+ "view": {
8945
+ "description": "Controls how selected items are rendered.",
8946
+ "enum": [
8947
+ "card",
8948
+ "text",
8949
+ "gallery",
8950
+ "gallery-left"
8951
+ ],
8952
+ "markdownDescription": "Controls how selected items are rendered.",
8880
8953
  "type": "string"
8881
8954
  }
8882
8955
  },
8883
- "required": [
8884
- "type"
8885
- ],
8886
8956
  "type": "object"
8887
8957
  },
8888
8958
  "SelectValues": {