Skip to content

Commit f03df25

Browse files
committed
fix: group display_name should be required
1 parent c6bd77f commit f03df25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scim2_models/resources/group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from pydantic import Field
88

9+
from ..annotations import Required
910
from ..annotations import Mutability
1011
from ..attributes import ComplexAttribute
1112
from ..path import URN
@@ -38,7 +39,7 @@ class GroupMember(ComplexAttribute):
3839
class Group(Resource[Any]):
3940
__schema__ = URN("urn:ietf:params:scim:schemas:core:2.0:Group")
4041

41-
display_name: str | None = None
42+
display_name: Annotated[str | None, Required.true] = None
4243
"""A human-readable name for the Group."""
4344

4445
members: list[GroupMember] | None = None

0 commit comments

Comments
 (0)