Skip to content

Commit 0f764ae

Browse files
authored
Add error case for API consumer specifying new values without opting in
1 parent 9c109ed commit 0f764ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graph/patterns/evolvable-enums.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ If an API consumer specifies ```unknownFutureValue``` for the value of a propert
4444

4545
If an API consumer specifies ```unknownFutureValue``` for the value of a property in a ```PATCH``` request the API producer must treat the property as if it were absent (i.e. the existing value should not be changed). For the case where the API producer treats ```PATCH``` as an upsert the call **must** be rejected with a ```400 Bad Request``` HTTP status.
4646

47+
If an API consumer specifies an enum member greater than ```unknownFutureValue``` in any request without specifying the ```Preference: include-unknown-enum-members``` header the API producer must reject the request with a ```400 Bad Request``` HTTP status.
48+
4749
For details of how the ```unknownFutureValue``` value is handled as part of a ```$filter``` clause please consult the following examples.
4850

4951
### CSDL

0 commit comments

Comments
 (0)