Skip to content

Commit 1fa5fff

Browse files
committed
refactor: don't check PatchOp schema ids
we will do this later in a more uniformized way
1 parent 5fdad1f commit 1fa5fff

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scim2_models/rfc7644/patch_op.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,3 @@ class PatchOp(Message):
6868
)
6969
"""The body of an HTTP PATCH request MUST contain the attribute
7070
"Operations", whose value is an array of one or more PATCH operations."""
71-
72-
@field_validator("schemas")
73-
@classmethod
74-
def validate_schemas(cls, value):
75-
expected = ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]
76-
if value != expected:
77-
raise ValueError(f"`schemas` must be exactly {expected}")
78-
return value

0 commit comments

Comments
 (0)