Skip to content

Commit

Permalink
feat: fix missing schemas strings
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed May 25, 2024
1 parent 62fa3e5 commit 5d00471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydantic_scim2/resource_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class SchemaExtension(SCIM2Model):
class ResourceType(Resource):
model_config = ConfigDict(extra="allow")

schemas: List[str] = ["urn:ietf:params:scim:schemas:core:2.0:ResourceType"]

# Each SCIM resource (Users, Groups, etc.) includes the following
# common attributes. With the exception of the "ServiceProviderConfig"
# and "ResourceType" server discovery endpoints and their associated
Expand Down
2 changes: 2 additions & 0 deletions pydantic_scim2/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class Type(str, Enum):


class Schema(SCIM2Model):
schemas: List[str] = ["urn:ietf:params:scim:schemas:core:2.0:Schema"]

id: str
"""The unique URI of the schema."""

Expand Down
2 changes: 2 additions & 0 deletions pydantic_scim2/service_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class ServiceProviderConfiguration(Resource):
# resources, these attributes MUST be defined for all resources,
# including any extended resource types.

schemas: List[str] = ["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"]

id: Optional[str] = None
"""A unique identifier for a SCIM resource as defined by the service
provider.
Expand Down

0 comments on commit 5d00471

Please sign in to comment.