yaal-coop / scim2-models

SCIM resources serialization and validation with Pydantic
https://scim2-models.readthedocs.io
Apache License 2.0
10 stars 2 forks source link

`SearchRequest` `attributes` and `excludedAttributes` should be mutually exclusive #19

Open azmeuk opened 4 months ago

azmeuk commented 4 months ago

RFC7644 §3.9 indicates that either attributes or excludedAttributes should be provided:

   Clients MAY request a partial resource representation on any
   operation that returns a resource within the response by specifying
   either of the mutually exclusive URL query parameters "attributes" or
   "excludedAttributes", as follows:

We should add a validator for this.