Skip to content

Commit b8fbc3f

Browse files
authored
Merge branch 'master' into feat/nb341
2 parents 3636181 + aa81a24 commit b8fbc3f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
- Updated spec as per v3.4.1
66

7+
## 3.0.5
8+
9+
- Bug fix: Tags fields need additional translation when modifying
10+
11+
## 3.0.4
12+
13+
- Bug fix: PATCH requests don't need all the fields to be required
14+
715
## 3.0.3
816

917
- Updated spec as per v3.1.7

actions/lib/action.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def make_request(self, endpoint_uri, http_action, **kwargs):
3838

3939
# transform `tags` if present
4040
if kwargs.get("tags"):
41-
kwargs["tags"] = ",".join(kwargs["tags"])
41+
if http_action in ['post', 'put', 'patch']:
42+
kwargs["tags"] = [{"slug": x} for x in kwargs["tags"]]
43+
else:
44+
kwargs["tags"] = ",".join(kwargs["tags"])
4245
self.logger.debug("tags transformed to {}".format(kwargs["tags"]))
4346

4447
# strip values which have a None value if we are making a write request

0 commit comments

Comments
 (0)