@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": {
@@ -6876,96 +6879,9 @@
6876
6879
  "type": "string"
6877
6880
  },
6878
6881
  "options": {
6879
- "additionalProperties": false,
6882
+ "$ref": "#/definitions/MultichoiceInputOptions",
6880
6883
  "description": "Options that are specific to Multichoice Inputs.",
6881
- "markdownDescription": "Options that are specific to Multichoice Inputs.",
6882
- "properties": {
6883
- "allow_empty": {
6884
- "default": true,
6885
- "description": "Provides an empty option alongside the options provided by values.",
6886
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
6887
- "type": "boolean"
6888
- },
6889
- "empty_type": {
6890
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6891
- "enum": [
6892
- "null",
6893
- "array"
6894
- ],
6895
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6896
- "type": "string"
6897
- },
6898
- "max_items": {
6899
- "description": "This key defines the maximum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from adding more items to this Input. If the Input already contains more items, CloudCannon will require you to remove items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a lesser number.\n\nThis key has no default.",
6900
- "markdownDescription": "This key defines the maximum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from adding more items to this Input. If the Input\nalready contains more items, CloudCannon will require you to remove items until the Input\ncontains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a lesser number.\n\nThis key has no default.",
6901
- "type": "number"
6902
- },
6903
- "min_items": {
6904
- "description": "This key defines the minimum number of items CloudCannon will allow in an Input. When configured, CloudCannon will prevent you from removing items from this Input below this value. If the Input already contains fewer items, CloudCannon will require you to add items until the Input contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot be a greater number.\n\nThis key has no default.",
6905
- "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
6906
- "type": "number"
6907
- },
6908
- "picker_preview": {
6909
- "$ref": "#/definitions/Preview",
6910
- "description": "Changes the way items are previewed in the CMS while being chosen.",
6911
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6912
- },
6913
- "picker_view": {
6914
- "description": "Controls how selectable options are rendered.",
6915
- "enum": [
6916
- "card",
6917
- "text",
6918
- "gallery",
6919
- "gallery-left"
6920
- ],
6921
- "markdownDescription": "Controls how selectable options are rendered.",
6922
- "type": "string"
6923
- },
6924
- "preview": {
6925
- "$ref": "#/definitions/Preview",
6926
- "description": "Changes the way items are previewed in the CMS.",
6927
- "markdownDescription": "Changes the way items are previewed in the CMS."
6928
- },
6929
- "required": {
6930
- "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
6931
- "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
6932
- "type": "boolean"
6933
- },
6934
- "unique_on": {
6935
- "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
6936
- "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
6937
- "type": "string"
6938
- },
6939
- "value_key": {
6940
- "description": "Defines the key used for mapping between saved values and objects in values. This changes how the input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\", \"title\", then \"name\". Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.",
6941
- "markdownDescription": "Defines the key used for mapping between saved values and objects in values. This changes how\nthe input saves selected values to match. Defaults to checking for \"id\", \"uuid\", \"path\",\n\"title\", then \"name\". Has no effect unless values is an array of objects, the key is used\ninstead for objects, and the value itself is used for primitive types.",
6942
- "type": "string"
6943
- },
6944
- "values": {
6945
- "anyOf": [
6946
- {
6947
- "type": "string"
6948
- },
6949
- {
6950
- "$ref": "#/definitions/SelectValues"
6951
- }
6952
- ],
6953
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
6954
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
6955
- },
6956
- "view": {
6957
- "description": "Controls how selected items are rendered.",
6958
- "enum": [
6959
- "card",
6960
- "text",
6961
- "gallery",
6962
- "gallery-left"
6963
- ],
6964
- "markdownDescription": "Controls how selected items are rendered.",
6965
- "type": "string"
6966
- }
6967
- },
6968
- "type": "object"
6884
+ "markdownDescription": "Options that are specific to Multichoice Inputs."
6969
6885
  },
6970
6886
  "type": {
6971
6887
  "const": "multichoice",
@@ -6979,6 +6895,96 @@
6979
6895
  ],
6980
6896
  "type": "object"
6981
6897
  },
6898
+ "MultichoiceInputOptions": {
6899
+ "additionalProperties": false,
6900
+ "properties": {
6901
+ "allow_empty": {
6902
+ "default": true,
6903
+ "description": "Provides an empty option alongside the options provided by values.",
6904
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
6905
+ "type": "boolean"
6906
+ },
6907
+ "empty_type": {
6908
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6909
+ "enum": [
6910
+ "null",
6911
+ "array"
6912
+ ],
6913
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
6914
+ "type": "string"
6915
+ },
6916
+ "max_items": {
6917
+ "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.",
6918
+ "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.",
6919
+ "type": "number"
6920
+ },
6921
+ "min_items": {
6922
+ "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.",
6923
+ "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.",
6924
+ "type": "number"
6925
+ },
6926
+ "picker_preview": {
6927
+ "$ref": "#/definitions/Preview",
6928
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
6929
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
6930
+ },
6931
+ "picker_view": {
6932
+ "description": "Controls how selectable options are rendered.",
6933
+ "enum": [
6934
+ "card",
6935
+ "text",
6936
+ "gallery",
6937
+ "gallery-left"
6938
+ ],
6939
+ "markdownDescription": "Controls how selectable options are rendered.",
6940
+ "type": "string"
6941
+ },
6942
+ "preview": {
6943
+ "$ref": "#/definitions/Preview",
6944
+ "description": "Changes the way items are previewed in the CMS.",
6945
+ "markdownDescription": "Changes the way items are previewed in the CMS."
6946
+ },
6947
+ "required": {
6948
+ "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).",
6949
+ "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).",
6950
+ "type": "boolean"
6951
+ },
6952
+ "unique_on": {
6953
+ "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.",
6954
+ "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.",
6955
+ "type": "string"
6956
+ },
6957
+ "value_key": {
6958
+ "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.",
6959
+ "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.",
6960
+ "type": "string"
6961
+ },
6962
+ "values": {
6963
+ "anyOf": [
6964
+ {
6965
+ "type": "string"
6966
+ },
6967
+ {
6968
+ "$ref": "#/definitions/SelectValues"
6969
+ }
6970
+ ],
6971
+ "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).",
6972
+ "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)."
6973
+ },
6974
+ "view": {
6975
+ "description": "Controls how selected items are rendered.",
6976
+ "enum": [
6977
+ "card",
6978
+ "text",
6979
+ "gallery",
6980
+ "gallery-left"
6981
+ ],
6982
+ "markdownDescription": "Controls how selected items are rendered.",
6983
+ "type": "string"
6984
+ }
6985
+ },
6986
+ "type": "object"
6987
+ },
6982
6988
  "MultiselectInput": {
6983
6989
  "additionalProperties": false,
6984
6990
  "properties": {
@@ -7079,22 +7085,34 @@
7079
7085
  "MultiselectInputOptions": {
7080
7086
  "additionalProperties": false,
7081
7087
  "properties": {
7088
+ "allow_create": {
7089
+ "default": false,
7090
+ "description": "Allows new text values to be created at edit time.",
7091
+ "markdownDescription": "Allows new text values to be created at edit time.",
7092
+ "type": "boolean"
7093
+ },
7094
+ "allow_empty": {
7095
+ "default": true,
7096
+ "description": "Provides an empty option alongside the options provided by values.",
7097
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
7098
+ "type": "boolean"
7099
+ },
7082
7100
  "disable_add": {
7083
7101
  "default": false,
7084
- "description": "Hides the add button, and context menu actions on each array item for adding new items to this Input.",
7085
- "markdownDescription": "Hides the add button, and context menu actions on each array item for adding new items to this\nInput.",
7102
+ "description": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7103
+ "markdownDescription": "Hides the add button, and context menu actions on each item for adding new items to this Input.",
7086
7104
  "type": "boolean"
7087
7105
  },
7088
7106
  "disable_remove": {
7089
7107
  "default": false,
7090
- "description": "Hides the context menu actions on each array item for removing them.",
7091
- "markdownDescription": "Hides the context menu actions on each array item for removing them.",
7108
+ "description": "Hides the context menu actions on each item for removing them.",
7109
+ "markdownDescription": "Hides the context menu actions on each item for removing them.",
7092
7110
  "type": "boolean"
7093
7111
  },
7094
7112
  "disable_reorder": {
7095
7113
  "default": false,
7096
- "description": "Hides the controls on each array item for moving them.",
7097
- "markdownDescription": "Hides the controls on each array item for moving them.",
7114
+ "description": "Hides the controls on each item for moving them.",
7115
+ "markdownDescription": "Hides the controls on each item for moving them.",
7098
7116
  "type": "boolean"
7099
7117
  },
7100
7118
  "empty_type": {
@@ -7116,6 +7134,27 @@
7116
7134
  "markdownDescription": "This key defines the minimum number of items CloudCannon will allow in an Input. When\nconfigured, CloudCannon will prevent you from removing items from this Input below this value.\nIf the Input already contains fewer items, CloudCannon will require you to add items until the\nInput contains a valid number to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.min_items` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.",
7117
7135
  "type": "number"
7118
7136
  },
7137
+ "picker_preview": {
7138
+ "$ref": "#/definitions/Preview",
7139
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
7140
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
7141
+ },
7142
+ "picker_view": {
7143
+ "description": "Controls how selectable options are rendered.",
7144
+ "enum": [
7145
+ "card",
7146
+ "text",
7147
+ "gallery",
7148
+ "gallery-left"
7149
+ ],
7150
+ "markdownDescription": "Controls how selectable options are rendered.",
7151
+ "type": "string"
7152
+ },
7153
+ "preview": {
7154
+ "$ref": "#/definitions/Preview",
7155
+ "description": "Changes the way items are previewed in the CMS.",
7156
+ "markdownDescription": "Changes the way items are previewed in the CMS."
7157
+ },
7119
7158
  "required": {
7120
7159
  "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
7121
7160
  "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
@@ -7125,6 +7164,34 @@
7125
7164
  "description": "This key defines the JSON Path selector that CloudCannon should use to determine if the value of an Input is unique. When configured, CloudCannon will require the value of the Input to be unique compared to the value defined on the JSON Path. If the Input already contains a non-unique value, CloudCannon will require you to change it to a valid value to save your changes, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7126
7165
  "markdownDescription": "This key defines the JSON Path selector that CloudCannon should use to determine if the value\nof an Input is unique. When configured, CloudCannon will require the value of the Input to be\nunique compared to the value defined on the JSON Path. If the Input already contains a\nnon-unique value, CloudCannon will require you to change it to a valid value to save your\nchanges, or discard your unsaved changes.\n\nValue must be a valid JSON Path.\n\nThis key has no default.",
7127
7166
  "type": "string"
7167
+ },
7168
+ "value_key": {
7169
+ "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.",
7170
+ "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.",
7171
+ "type": "string"
7172
+ },
7173
+ "values": {
7174
+ "anyOf": [
7175
+ {
7176
+ "type": "string"
7177
+ },
7178
+ {
7179
+ "$ref": "#/definitions/SelectValues"
7180
+ }
7181
+ ],
7182
+ "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).",
7183
+ "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)."
7184
+ },
7185
+ "view": {
7186
+ "description": "Controls how selected items are rendered.",
7187
+ "enum": [
7188
+ "card",
7189
+ "text",
7190
+ "gallery",
7191
+ "gallery-left"
7192
+ ],
7193
+ "markdownDescription": "Controls how selected items are rendered.",
7194
+ "type": "string"
7128
7195
  }
7129
7196
  },
7130
7197
  "type": "object"
@@ -8749,162 +8816,165 @@
8749
8816
  "type": "string"
8750
8817
  },
8751
8818
  "options": {
8752
- "additionalProperties": false,
8819
+ "$ref": "#/definitions/SelectInputOptions",
8753
8820
  "description": "Options that are specific to Select Inputs.",
8754
- "markdownDescription": "Options that are specific to Select Inputs.",
8821
+ "markdownDescription": "Options that are specific to Select Inputs."
8822
+ },
8823
+ "type": {
8824
+ "const": "select",
8825
+ "description": "Sets an input type, which controls how this input appears and behaves.",
8826
+ "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8827
+ "type": "string"
8828
+ }
8829
+ },
8830
+ "required": [
8831
+ "type"
8832
+ ],
8833
+ "type": "object"
8834
+ },
8835
+ "SelectInputOptions": {
8836
+ "additionalProperties": false,
8837
+ "properties": {
8838
+ "allow_create": {
8839
+ "default": false,
8840
+ "description": "Allows new text values to be created at edit time.",
8841
+ "markdownDescription": "Allows new text values to be created at edit time.",
8842
+ "type": "boolean"
8843
+ },
8844
+ "allow_empty": {
8845
+ "default": true,
8846
+ "description": "Provides an empty option alongside the options provided by values.",
8847
+ "markdownDescription": "Provides an empty option alongside the options provided by values.",
8848
+ "type": "boolean"
8849
+ },
8850
+ "empty_type": {
8851
+ "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8852
+ "enum": [
8853
+ "null",
8854
+ "string"
8855
+ ],
8856
+ "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8857
+ "type": "string"
8858
+ },
8859
+ "max_length": {
8860
+ "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.",
8861
+ "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.",
8862
+ "type": "number"
8863
+ },
8864
+ "min_length": {
8865
+ "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.",
8866
+ "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.",
8867
+ "type": "number"
8868
+ },
8869
+ "pattern": {
8870
+ "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.",
8871
+ "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.",
8872
+ "type": "string"
8873
+ },
8874
+ "pattern_flags": {
8875
+ "additionalProperties": false,
8876
+ "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.",
8877
+ "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8755
8878
  "properties": {
8756
- "allow_create": {
8879
+ "dot_all": {
8757
8880
  "default": false,
8758
- "description": "Allows new text values to be created at edit time.",
8759
- "markdownDescription": "Allows new text values to be created at edit time.",
8881
+ "description": "`s` - `.` matches newline characters.",
8882
+ "markdownDescription": "`s` - `.` matches newline characters.",
8760
8883
  "type": "boolean"
8761
8884
  },
8762
- "allow_empty": {
8763
- "default": true,
8764
- "description": "Provides an empty option alongside the options provided by values.",
8765
- "markdownDescription": "Provides an empty option alongside the options provided by values.",
8885
+ "global": {
8886
+ "default": false,
8887
+ "description": "`g` - Search globally.",
8888
+ "markdownDescription": "`g` - Search globally.",
8766
8889
  "type": "boolean"
8767
8890
  },
8768
- "empty_type": {
8769
- "description": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8770
- "enum": [
8771
- "null",
8772
- "string"
8773
- ],
8774
- "markdownDescription": "Set how an ‘empty’ value will be saved. Does not apply to existing empty values.",
8775
- "type": "string"
8776
- },
8777
- "max_length": {
8778
- "description": "This key defines the maximum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too long. If the Input already contains a longer value, CloudCannon will require you to remove characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input to be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8779
- "markdownDescription": "This key defines the maximum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too long. If the Input\nalready contains a longer value, CloudCannon will require you to remove characters until the\nInput contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any non-negative integer. If this key is set to 0, CloudCannon requires the Input\nto be empty. If `options.min_length` is also configured, this key cannot be a smaller number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8780
- "type": "number"
8781
- },
8782
- "min_length": {
8783
- "description": "This key defines the minimum string length, in characters, that CloudCannon will allow in an Input. When configured, CloudCannon will warn you when an Input value is too short. If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot be a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8784
- "markdownDescription": "This key defines the minimum string length, in characters, that CloudCannon will allow in an\nInput. When configured, CloudCannon will warn you when an Input value is too short. If the\nInput already contains a shorter value, CloudCannon will require you to add characters until\nthe Input contains a valid string to save your changes, or discard your unsaved changes.\n\nValue can be any positive integer. If `options.max_length` is also configured, this key cannot\nbe a greater number.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8785
- "type": "number"
8786
- },
8787
- "pattern": {
8788
- "description": "This key defines a regular expression that the Input value must match. When configured, CloudCannon will require you to enter a value that matches the REGEX pattern. If the Input already contains an invalid value, CloudCannon will require you to enter a valid string to save your changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8789
- "markdownDescription": "This key defines a regular expression that the Input value must match. When configured,\nCloudCannon will require you to enter a value that matches the REGEX pattern. If the Input\nalready contains an invalid value, CloudCannon will require you to enter a valid string to save\nyour changes, or discard your unsaved changes.\n\nValue must be a valid REGEX string.\n\nThis key has no default.\n\nTo use this key in a Select Input, `options.allow_create` must be set to true.",
8790
- "type": "string"
8791
- },
8792
- "pattern_flags": {
8793
- "additionalProperties": false,
8794
- "description": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in `options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8795
- "markdownDescription": "This key defines the flags (e.g. case-insensitive searching) for the regular expression set in\n`options.pattern`. This key requires you to define `options.pattern`.\n\nThe flags available match those a subset for [JavaScript regular\nexpressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags).\n\nThis key has no default.",
8796
- "properties": {
8797
- "dot_all": {
8798
- "default": false,
8799
- "description": "`s` - `.` matches newline characters.",
8800
- "markdownDescription": "`s` - `.` matches newline characters.",
8801
- "type": "boolean"
8802
- },
8803
- "global": {
8804
- "default": false,
8805
- "description": "`g` - Search globally.",
8806
- "markdownDescription": "`g` - Search globally.",
8807
- "type": "boolean"
8808
- },
8809
- "ignore_case": {
8810
- "default": false,
8811
- "description": "`i` - Case-insensitive.",
8812
- "markdownDescription": "`i` - Case-insensitive.",
8813
- "type": "boolean"
8814
- },
8815
- "multiline": {
8816
- "default": false,
8817
- "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8818
- "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8819
- "type": "boolean"
8820
- },
8821
- "unicode": {
8822
- "default": false,
8823
- "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8824
- "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8825
- "type": "boolean"
8826
- },
8827
- "unicode_sets": {
8828
- "default": false,
8829
- "description": "`v` - Extended `unicode` mode.",
8830
- "markdownDescription": "`v` - Extended `unicode` mode.",
8831
- "type": "boolean"
8832
- }
8833
- },
8834
- "type": "object"
8835
- },
8836
- "pattern_message": {
8837
- "description": "This key defines the message that explains which regular expression an Input will accept. This key requires you to define `options.pattern`.\n\nThis key has no default.",
8838
- "markdownDescription": "This key defines the message that explains which regular expression an Input will accept. This\nkey requires you to define `options.pattern`.\n\nThis key has no default.",
8839
- "type": "string"
8840
- },
8841
- "picker_preview": {
8842
- "$ref": "#/definitions/Preview",
8843
- "description": "Changes the way items are previewed in the CMS while being chosen.",
8844
- "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8845
- },
8846
- "picker_view": {
8847
- "description": "Controls how selectable options are rendered.",
8848
- "enum": [
8849
- "card",
8850
- "text",
8851
- "gallery",
8852
- "gallery-left"
8853
- ],
8854
- "markdownDescription": "Controls how selectable options are rendered.",
8855
- "type": "string"
8856
- },
8857
- "preview": {
8858
- "$ref": "#/definitions/Preview",
8859
- "description": "Changes the way items are previewed in the CMS.",
8860
- "markdownDescription": "Changes the way items are previewed in the CMS."
8861
- },
8862
- "required": {
8863
- "description": "This key toggles whether CloudCannon requires this Input to have a value. If set to true, CloudCannon will require you to enter a value to save your changes, or discard your unsaved changes.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8864
- "markdownDescription": "This key toggles whether CloudCannon requires this Input to have a value. If set to true,\nCloudCannon will require you to enter a value to save your changes, or discard your unsaved\nchanges.\n\nBy default, this key is false (i.e, CloudCannon does not require this Input to have a value).",
8891
+ "ignore_case": {
8892
+ "default": false,
8893
+ "description": "`i` - Case-insensitive.",
8894
+ "markdownDescription": "`i` - Case-insensitive.",
8865
8895
  "type": "boolean"
8866
8896
  },
8867
- "value_key": {
8868
- "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.",
8869
- "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.",
8870
- "type": "string"
8897
+ "multiline": {
8898
+ "default": false,
8899
+ "description": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8900
+ "markdownDescription": "`m` - `^` and `$` match the start and end of each line rather than the entire string.",
8901
+ "type": "boolean"
8871
8902
  },
8872
- "values": {
8873
- "anyOf": [
8874
- {
8875
- "type": "string"
8876
- },
8877
- {
8878
- "$ref": "#/definitions/SelectValues"
8879
- }
8880
- ],
8881
- "description": "Defines the values available to choose from. Optional, defaults to fetching values from the naming convention (e.g. colors or my_colors for data set colors).",
8882
- "markdownDescription": "Defines the values available to choose from. Optional, defaults to fetching values from the\nnaming convention (e.g. colors or my_colors for data set colors)."
8903
+ "unicode": {
8904
+ "default": false,
8905
+ "description": "`u` - Pattern is treated as a sequence of Unicode code points.",
8906
+ "markdownDescription": "`u` - Pattern is treated as a sequence of Unicode code points.",
8907
+ "type": "boolean"
8883
8908
  },
8884
- "view": {
8885
- "description": "Controls how selected items are rendered.",
8886
- "enum": [
8887
- "card",
8888
- "text",
8889
- "gallery",
8890
- "gallery-left"
8891
- ],
8892
- "markdownDescription": "Controls how selected items are rendered.",
8893
- "type": "string"
8909
+ "unicode_sets": {
8910
+ "default": false,
8911
+ "description": "`v` - Extended `unicode` mode.",
8912
+ "markdownDescription": "`v` - Extended `unicode` mode.",
8913
+ "type": "boolean"
8894
8914
  }
8895
8915
  },
8896
8916
  "type": "object"
8897
8917
  },
8898
- "type": {
8899
- "const": "select",
8900
- "description": "Sets an input type, which controls how this input appears and behaves.",
8901
- "markdownDescription": "Sets an input type, which controls how this input appears and behaves.",
8918
+ "pattern_message": {
8919
+ "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.",
8920
+ "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.",
8921
+ "type": "string"
8922
+ },
8923
+ "picker_preview": {
8924
+ "$ref": "#/definitions/Preview",
8925
+ "description": "Changes the way items are previewed in the CMS while being chosen.",
8926
+ "markdownDescription": "Changes the way items are previewed in the CMS while being chosen."
8927
+ },
8928
+ "picker_view": {
8929
+ "description": "Controls how selectable options are rendered.",
8930
+ "enum": [
8931
+ "card",
8932
+ "text",
8933
+ "gallery",
8934
+ "gallery-left"
8935
+ ],
8936
+ "markdownDescription": "Controls how selectable options are rendered.",
8937
+ "type": "string"
8938
+ },
8939
+ "preview": {
8940
+ "$ref": "#/definitions/Preview",
8941
+ "description": "Changes the way items are previewed in the CMS.",
8942
+ "markdownDescription": "Changes the way items are previewed in the CMS."
8943
+ },
8944
+ "required": {
8945
+ "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).",
8946
+ "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).",
8947
+ "type": "boolean"
8948
+ },
8949
+ "value_key": {
8950
+ "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.",
8951
+ "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.",
8952
+ "type": "string"
8953
+ },
8954
+ "values": {
8955
+ "anyOf": [
8956
+ {
8957
+ "type": "string"
8958
+ },
8959
+ {
8960
+ "$ref": "#/definitions/SelectValues"
8961
+ }
8962
+ ],
8963
+ "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).",
8964
+ "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)."
8965
+ },
8966
+ "view": {
8967
+ "description": "Controls how selected items are rendered.",
8968
+ "enum": [
8969
+ "card",
8970
+ "text",
8971
+ "gallery",
8972
+ "gallery-left"
8973
+ ],
8974
+ "markdownDescription": "Controls how selected items are rendered.",
8902
8975
  "type": "string"
8903
8976
  }
8904
8977
  },
8905
- "required": [
8906
- "type"
8907
- ],
8908
8978
  "type": "object"
8909
8979
  },
8910
8980
  "SelectValues": {