Document how the "not_foo" keys interact with the "foo" keys

This commit is contained in:
Mark Haines 2015-09-28 13:28:58 +01:00
parent 41bc09ea22
commit 940e22940d
2 changed files with 4 additions and 3 deletions

View file

@ -17,7 +17,7 @@
"not_types": { "not_types": {
"type": "array", "type": "array",
"description": "description":
"A list of event types to exclude. If this list is absent then no event types are excluded.", "A list of event types to exclude. If this list is absent then no event types are excluded. A matching type will be excluded even if it is listed in the 'types' filter",
"items": { "items": {
"type": "string" "type": "string"
} }
@ -33,7 +33,7 @@
"not_senders": { "not_senders": {
"type": "array", "type": "array",
"description": "description":
"A list of sender IDs to exclude. If this list is absent then no senders are excluded.", "A list of sender IDs to exclude. If this list is absent then no senders are excluded. A matching sender will be excluded even if it is listed in the 'senders' filter",
"items": { "items": {
"type": "string" "type": "string"
} }

View file

@ -1,5 +1,6 @@
{ {
"type": "object", "type": "object",
"allOf": [{"$ref": "definitions/event_filter.json"}],
"properties": { "properties": {
"rooms": { "rooms": {
"type": "array", "type": "array",
@ -12,7 +13,7 @@
"not_rooms": { "not_rooms": {
"type": "array", "type": "array",
"description": "description":
"A list of room IDs to exclude. If this list is absent then no rooms are excluded.", "A list of room IDs to exclude. If this list is absent then no rooms are excluded. A matching room will be excluded even if it is listed in the 'rooms' filter",
"items": { "items": {
"type": "string" "type": "string"
} }