Skip to content

Commit cb81209

Browse files
authored
Merge pull request #4 from stitchdata/dont-validate-action
Don't validate message type
2 parents b4983ac + 3445fbf commit cb81209

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

circle.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
machine:
2+
python:
3+
version: 3.4.4
4+

stitchclient/client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,13 @@ def __init__(self,
4040
self.callback_function = callback_function
4141

4242
def push(self, message, callback_arg=None):
43-
"""
44-
message must be a dict with at least these keys:
45-
action, table_name, key_names, sequence, data
46-
and optionally these keys:
47-
table_version
43+
"""message should be a dict recognized by the Stitch Import API.
44+
45+
See https://www.stitchdata.com/docs/integrations/import-api.
4846
"""
4947

5048
if message['action'] == 'upsert':
5149
message.setdefault('key_names', self.key_names)
52-
else:
53-
raise ValueError('Message action property must be "upsert"')
5450

5551
message['client_id'] = self.client_id
5652
message.setdefault('table_name', self.table_name)

0 commit comments

Comments
 (0)