Add example JSON for all notification parameters
Background
The notification spec lists all of the notification parameters, but only in their original form before they are processed by the infrastructure. They are then processed into JSON and requested by the extension. For testing, it's easiest to intercept the notification request and replace the JSON with the parameters to be tested (instead of either running infrastructure or adding a notification via code). However it is not always immediately obvious how the parameter is output in the JSON.
What to change
Add an example piece of JSON to the notification spec with the representation of all parameters (their name, if they are arrays, where they are in the hierarchy etc).
{
"notifications": [
{
"id": "critical_basic",
"severity": "critical",
"start": "xxx",
"end": "xxx"
"inactive": "xxx"
"targets": [
???
]
"links": [
"contribute"
],
"urlFilters": [
"FOO.COM^$document",
"BAR.COM^$document"
],
"title": {
"en-US": "Test CRITICAL Notification",
"de": "DE Test CRITICAL Notification"
},
"message": {
"en-US": "This is a CRITICAL notification.",
"de": "DE This is a CRITICAL notification."
}
}
],
"version": "201810011538"
}
Edited by Ross Green