@@ -49,11 +49,11 @@ class SortOrder(str, Enum):
4949 @field_validator ("start_index" )
5050 @classmethod
5151 def start_index_floor (cls , value : int ) -> int :
52- """According to :rfc:`RFC7644 §3.4.2 <7644#section-3.4.2.4>, start_index values less than 0 are interpreted as 0 .
52+ """According to :rfc:`RFC7644 §3.4.2 <7644#section-3.4.2.4>, start_index values less than 1 are interpreted as 1 .
5353
5454 A value less than 1 SHALL be interpreted as 1.
5555 """
56- return None if value is None else max (0 , value )
56+ return None if value is None else max (1 , value )
5757
5858 count : Optional [int ] = None
5959 """An integer indicating the desired maximum number of query results per
@@ -62,11 +62,11 @@ def start_index_floor(cls, value: int) -> int:
6262 @field_validator ("count" )
6363 @classmethod
6464 def count_floor (cls , value : int ) -> int :
65- """According to :rfc:`RFC7644 §3.4.2 <7644#section-3.4.2.4>, count values less than 1 are interpreted as 1 .
65+ """According to :rfc:`RFC7644 §3.4.2 <7644#section-3.4.2.4>, count values less than 0 are interpreted as 0 .
6666
67- A value less than 1 SHALL be interpreted as 1 .
67+ A negative value SHALL be interpreted as 0 .
6868 """
69- return None if value is None else max (1 , value )
69+ return None if value is None else max (0 , value )
7070
7171 @model_validator (mode = "after" )
7272 def attributes_validator (self ):
0 commit comments