Skip to content

Commit 47d791a

Browse files
committed
Do not allow create, update of stream without events_requested
Resolves #99
1 parent 55878e6 commit 47d791a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openid-sharedsignals-framework-1_0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ events_requested
818818
> **Receiver-Supplied**, An array of URIs identifying the set of events that
819819
the Receiver requested. A Receiver SHOULD request only the events that it
820820
understands and it can act on. This is configurable by the Receiver. A
821-
Transmitter MUST ignore any array values that it does not understand.
821+
Transmitter MUST ignore any array values that it does not understand. This MUST not be an empty list.
822822

823823
events_delivered
824824

@@ -878,7 +878,7 @@ the Event Transmitter responds with a "201 Created" response containing a
878878
The HTTP POST request MAY contain the Receiver-Supplied values of the Stream
879879
Configuration ({{stream-config}}) object:
880880

881-
* `events_requested`
881+
* `events_requested` : This MUST not be an empty list
882882
* `delivery` : Note that in the case of the POLL method, the `endpoint_url` value is
883883
supplied by the Transmitter.
884884
* `format`
@@ -1154,7 +1154,7 @@ HTTP PATCH request to the Configuration Endpoint. The PATCH body contains a
11541154
[JSON][RFC7159] representation of the stream configuration properties to change. On
11551155
receiving a valid request the Event Transmitter responds with a "200 OK"
11561156
response containing a [JSON][RFC7159] representation of the entire updated stream
1157-
configuration in the body.
1157+
configuration in the body. An event receiver MUST not PATCH `events_requested` to an empty list.
11581158

11591159
The stream_id property MUST be present in the request. Other properties
11601160
MAY be present in the request. Any Receiver-Supplied property present in the
@@ -1244,7 +1244,7 @@ JSON {{RFC7159}} representation of the updated stream configuration in the body.
12441244
The stream_id and the full set of Receiver-Supplied properties MUST be present
12451245
in the PUT body, not only the ones that are specifically intended to be changed.
12461246
Missing Receiver-Supplied properties MUST be interpreted as requested to be
1247-
deleted. Event Receivers MAY read the configuration first, modify the JSON
1247+
deleted. Event receiver MUST not request `events_requested` to be an empty array. Event Receivers MAY read the configuration first, modify the JSON
12481248
{{RFC7159}} representation, then make a replacement request.
12491249

12501250
Transmitter-Supplied properties besides the stream_id MAY be present,

0 commit comments

Comments
 (0)