OneSignal / onesignal-go-api

The official OneSignal API client for Go
MIT License
11 stars 7 forks source link

[Bug]: Notification filters should use []FilterExpressions type #24

Open hgiasac opened 1 year ago

hgiasac commented 1 year ago

What's on your mind?

Currently, we are impossible to input filters with OR condition into the Notification model.

"filters": [
  {"field": "tag", "key": "level", "relation": "=", "value": "10"}, 
  {"operator": "OR"}, {"field": "tag", "key": "level", "relation": "=", "value": "20"}
]

The type of the Filters field should be []FilterExpressions.

Code of Conduct