marco-c / mercurius

Generic Web Push server
https://mozcurius.herokuapp.com/
Apache License 2.0
53 stars 12 forks source link

Check payload validity in 'notify' #99

Open marco-c opened 8 years ago

marco-c commented 8 years ago

The payload will be mandatory after #96.

We could also check its validity, by parsing the JSON and checking that the required fields exist.

marco-c commented 8 years ago

This would be really useful to give meaningful error messages to developers writing clients for Mercurius.