Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagResponse color allowed_values should contain 'none' #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
TagResponse color allowed_values should contain 'none' instead of emp…
…ty string
  • Loading branch information
thijsh committed Oct 3, 2023
commit 08745104f6fa764932202576a012d4d2f109b7f4
2 changes: 1 addition & 1 deletion asana/models/tag_response.py
Original file line number Diff line number Diff line change
@@ -171,7 +171,7 @@ def color(self, color):
:param color: The color of this TagResponse. # noqa: E501
:type: str
"""
allowed_values = ["dark-pink", "dark-green", "dark-blue", "dark-red", "dark-teal", "dark-brown", "dark-orange", "dark-purple", "dark-warm-gray", "light-pink", "light-green", "light-blue", "light-red", "light-teal", "light-brown", "light-orange", "light-purple", "light-warm-gray", ""] # noqa: E501
allowed_values = ["dark-pink", "dark-green", "dark-blue", "dark-red", "dark-teal", "dark-brown", "dark-orange", "dark-purple", "dark-warm-gray", "light-pink", "light-green", "light-blue", "light-red", "light-teal", "light-brown", "light-orange", "light-purple", "light-warm-gray", "none", ""] # noqa: E501
if color not in allowed_values:
raise ValueError(
"Invalid value for `color` ({0}), must be one of {1}" # noqa: E501