yaal-coop / scim2-models

SCIM resources serialization and validation with Pydantic

Home Page:https://scim2-models.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`SearchRequest` `count` and `startIndex` attribute validation

azmeuk opened this issue · comments

RFC7644 §3.4.2.4 indicates that:

About startIndex

            A negative value SHALL be interpreted as 0.
            A value of "0" indicates that no resource results are
            to be returned except for "totalResults".

About count

            A value less than 1 SHALL be interpreted as 1.

There should be a validator for those.