Skip to content

Commit

Permalink
Merge pull request #46 from praekeltfoundation/message-status-recipie…
Browse files Browse the repository at this point in the history
…nt-id

Remove requirement for recipient_id for statuses
  • Loading branch information
rudigiesler authored Mar 20, 2023
2 parents 030e07e + 689f752 commit 4c0f3d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vxwhatsapp/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@
"properties": {
"id": {"type": "string"},
"recipient_id": {"type": "string"},
"message": {
"type": "object",
"properties": {"recipient_id": {"type": "string"}},
},
"status": {
"type": "string",
"enum": ["read", "delivered", "sent", "failed", "deleted"],
Expand All @@ -202,7 +206,7 @@
},
},
},
"required": ["id", "recipient_id", "status", "timestamp"],
"required": ["id", "status", "timestamp"],
},
"error": {
"type": "object",
Expand Down

0 comments on commit 4c0f3d9

Please sign in to comment.