From f4383202b955040357665d1445859c9b24c790ae Mon Sep 17 00:00:00 2001 From: Haresh Nasit Date: Thu, 6 Jun 2024 10:26:48 -0700 Subject: [PATCH] Update the json schema for tags field for deploy and sync commands --- samcli/cli/types.py | 2 +- schema/samcli.json | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/samcli/cli/types.py b/samcli/cli/types.py index 10561a829c..dc37420047 100644 --- a/samcli/cli/types.py +++ b/samcli/cli/types.py @@ -195,7 +195,7 @@ def __init__(self, multiple_values_per_key=False): _pattern = r"{tag}={tag}".format(tag=_generate_match_regex(match_pattern=TAG_REGEX, delim=" ")) - name = "list" + name = "string,list" def convert(self, value, param, ctx): result = {} diff --git a/schema/samcli.json b/schema/samcli.json index 3a275e42dc..3dd71b4421 100644 --- a/schema/samcli.json +++ b/schema/samcli.json @@ -1202,7 +1202,10 @@ }, "tags": { "title": "tags", - "type": "array", + "type": [ + "array", + "string" + ], "description": "List of tags to associate with the stack.", "items": { "type": "string" @@ -1731,7 +1734,10 @@ }, "tags": { "title": "tags", - "type": "array", + "type": [ + "array", + "string" + ], "description": "List of tags to associate with the stack.", "items": { "type": "string"