You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/templates/README.template.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,28 +230,29 @@ example:
230
230
231
231
To improve compatibility with other services Secured Signal API provides aliases for the `message` attribute by default:
232
232
233
-
| Alias | Priority |
234
-
| ----------- | -------- |
235
-
| msg | 100 |
236
-
| content | 99 |
237
-
| description | 98 |
238
-
| text | 20 |
239
-
| body | 15 |
240
-
| summary | 10 |
241
-
| details | 9 |
242
-
| payload | 2 |
243
-
| data | 1 |
244
-
245
-
Secured Signal API will use the highest priority Message Alias to extract the correct message from the Request Body.
246
-
247
-
Message Aliases can be added by setting `MESSAGE_ALIASES`:
233
+
| Alias | Score |
234
+
| ----------- | ----- |
235
+
| msg | 100 |
236
+
| content | 99 |
237
+
| description | 98 |
238
+
| text | 20 |
239
+
| body | 15 |
240
+
| summary | 10 |
241
+
| details | 9 |
242
+
| payload | 2 |
243
+
| data | 1 |
244
+
245
+
Secured Signal API will pick the best scoring Message Alias (if available) to extract the correct message from the Request Body.
246
+
247
+
Message Aliases can be added by setting `MESSAGE_ALIASES` to a valid json array containing dictionaries of `alias`, the json key to be used for lookup (use `.` dots for using values from a nested dictionary and `[i]` to get values from an array):
0 commit comments