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

Fix json.dumps bug + add fields to schemas #22

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

*.egg-info/
*/__pycache__/
venv/
2 changes: 1 addition & 1 deletion tap_klaviyo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def discover(api_key):


def do_discover(api_key):
print(json.dumps(discover(api_key), sys.stdout, indent=2))
print(json.dumps(discover(api_key), indent=2))

def main():

Expand Down
18 changes: 17 additions & 1 deletion tap_klaviyo/schemas/bounce.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,29 @@
},
"event_properties": {
"type": "object",
"properties": {}
"properties": {
"Campaign Name": {
"type": "string"
},
"Subject": {
"type": "string"
},
"$event_id": {
"type": "string"
}
}
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"$timezone": {
"type": "string"
},
"$country": {
"type": "string"
}
}
}
Expand Down
18 changes: 17 additions & 1 deletion tap_klaviyo/schemas/click.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,29 @@
},
"event_properties": {
"type": "object",
"properties": {}
"properties": {
"Campaign Name": {
"type": "string"
},
"Subject": {
"type": "string"
},
"$event_id": {
"type": "string"
}
}
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"$timezone": {
"type": "string"
},
"$country": {
"type": "string"
}
}
}
Expand Down
18 changes: 17 additions & 1 deletion tap_klaviyo/schemas/open.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,29 @@
},
"event_properties": {
"type": "object",
"properties": {}
"properties": {
"Campaign Name": {
"type": "string"
},
"Subject": {
"type": "string"
},
"$event_id": {
"type": "string"
}
}
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"$timezone": {
"type": "string"
},
"$country": {
"type": "string"
}
}
}
Expand Down
18 changes: 17 additions & 1 deletion tap_klaviyo/schemas/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,29 @@
},
"event_properties": {
"type": "object",
"properties": {}
"properties": {
"Campaign Name": {
"type": "string"
},
"Subject": {
"type": "string"
},
"$event_id": {
"type": "string"
}
}
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"$timezone": {
"type": "string"
},
"$country": {
"type": "string"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tap_klaviyo/schemas/subscribe_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
}
}
}
}
}