diff --git a/README.md b/README.md index 9c81ffbd..1473fcd9 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ be on your way to contributing! ## Changelog +* 2.47.13 - `HelpInputOutputValidator` - Fix validator to change single quotes to double quotes when an input field uses list values so that it does not break * 2.47.12 - `VersionBumpValidator` - update validation for connection versions| Updated `GitPython` to version 3.1.41. * 2.47.11 - Update PyYaml version to fix unrelated tooling installation bug. * 2.47.10 - `HelpInputOutputValidator` - Improved error messaging around invalid action/trigger/task headings diff --git a/icon_validator/rules/plugin_validators/help_input_output_validator.py b/icon_validator/rules/plugin_validators/help_input_output_validator.py index d8d8435d..23faecad 100755 --- a/icon_validator/rules/plugin_validators/help_input_output_validator.py +++ b/icon_validator/rules/plugin_validators/help_input_output_validator.py @@ -256,6 +256,13 @@ def get_spec_input(input_content: dict) -> list: else: if isinstance(example, list): example = f"{example}".replace("'", '"') + + if isinstance(default_, list): + default_ = f"{default_}".replace("'", '"') + + if isinstance(enum, list): + enum = f"{enum}".replace("'", '"') + action_input.append( f"|{name_}|{type_}|{default_}|{required}|{description}|{enum}|{example}|" ) diff --git a/setup.py b/setup.py index 2491bbb0..78ae13b4 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="insightconnect_integrations_validators", - version="2.47.12", + version="2.47.13", description="Validator tooling for InsightConnect integrations", long_description=long_description, long_description_content_type="text/markdown", diff --git a/unit_test/plugin_examples/good_datetime_example/help.md b/unit_test/plugin_examples/good_datetime_example/help.md index ba4e0a57..3d225327 100644 --- a/unit_test/plugin_examples/good_datetime_example/help.md +++ b/unit_test/plugin_examples/good_datetime_example/help.md @@ -44,7 +44,7 @@ Example input: #### Create Ticket -This action is used to create a FreshDesk ticket. At least one of those parameters must be provided - 'requesterId', 'email', 'phone', 'twitterId', 'uniqueExternalId'. +This action is used to create a FreshDesk ticket. At least one of those parameters must be provided - "requesterId", "email", "phone", "twitterId", "uniqueExternalId". ##### Input @@ -197,7 +197,7 @@ This action is used to get ticket details. |Name|Type|Default|Required|Description|Enum|Example| |----|----|-------|--------|-----------|----|-------| -|include|string|None|False|Include additional ticket informations|['conversations', 'requester', 'company', 'stats', 'None']|company| +|include|string|None|False|Include additional ticket informations|["conversations", "requester", "company", "stats", "None"]|company| |ticketId|integer|None|True|ID of the Ticket|None|178| Example input: @@ -287,9 +287,9 @@ This action is used to get tickets list. In `filterBy` input you can use only on |Name|Type|Default|Required|Description|Enum|Example| |----|----|-------|--------|-----------|----|-------| |filterBy|ticketsFilter|None|False|Filter tickets by a specific fields|None|{"requesterId": 54332121123}| -|include|string|None|False|Include additional ticket informations|['requester', 'company', 'stats', 'None']|company| -|orderBy|string|None|False|Order tickets by specific field|['created_at', 'due_by', 'updated_at', 'status']|status| -|orderType|string|None|False|Type of the order|['asc', 'desc']|asc| +|include|string|None|False|Include additional ticket informations|["requester", "company", "stats", "None"]|company| +|orderBy|string|None|False|Order tickets by specific field|["created_at", "due_by", "updated_at", "status"]|status| +|orderType|string|None|False|Type of the order|["asc", "desc"]|asc| |page|integer|None|False|Page number|None|3| |perPage|integer|None|False|Results per page. Less or equal to 100|None|12| |predefinedFilter|string|None|False|The various filters available are new_and_my_open, watching, spam, deleted|None|new_and_my_open| diff --git a/unit_test/plugin_examples/good_plugin/help.md b/unit_test/plugin_examples/good_plugin/help.md index a7d684f2..de3872da 100755 --- a/unit_test/plugin_examples/good_plugin/help.md +++ b/unit_test/plugin_examples/good_plugin/help.md @@ -35,7 +35,7 @@ This action is used to decode Base64 to data. |Name|Type|Default|Required|Description||Enum|Example| |----|----|-------|--------|-----------|-----|-------| |base64|bytes|None|True|Data to decode|None|base64| -|errors|string|nothing|False|How errors should be handled when decoding Base64|['replace', 'ignore', 'nothing']|replace| +|errors|string|nothing|False|How errors should be handled when decoding Base64|["replace", "ignore", "nothing"]|replace| Example input: diff --git a/unit_test/plugin_examples/good_plugin_with_task/help.md b/unit_test/plugin_examples/good_plugin_with_task/help.md index 85e63161..db7edb56 100755 --- a/unit_test/plugin_examples/good_plugin_with_task/help.md +++ b/unit_test/plugin_examples/good_plugin_with_task/help.md @@ -66,7 +66,7 @@ This action is used to decode Base64 to data. |Name|Type|Default|Required|Description|Enum|Example| |----|----|-------|--------|-----------|----|-------| |base64|bytes|None|True|Data to decode|None|==Md| -|errors|string|nothing|False|How errors should be handled when decoding Base64|['replace', 'ignore', 'nothing']|replace| +|errors|string|nothing|False|How errors should be handled when decoding Base64|["replace", "ignore", "nothing"]|replace| Example input: @@ -112,7 +112,7 @@ Supported schedule types for this task include: |Name|Type|Default|Required|Description|Enum|Example| |----|----|-------|--------|-----------|----|-------| |base64|bytes|None|True|Data to decode|None|1234| -|errors|string|nothing|False|How errors should be handled when decoding Base64|['replace', 'ignore', 'nothing']|replace| +|errors|string|nothing|False|How errors should be handled when decoding Base64|["replace", "ignore", "nothing"]|replace| Example input: