diff --git a/pydantic_scim2/resource_type.py b/pydantic_scim2/resource_type.py index 48bdf20..a84d0f9 100644 --- a/pydantic_scim2/resource_type.py +++ b/pydantic_scim2/resource_type.py @@ -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 diff --git a/pydantic_scim2/schema.py b/pydantic_scim2/schema.py index 45ee37b..4c4f6c6 100644 --- a/pydantic_scim2/schema.py +++ b/pydantic_scim2/schema.py @@ -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.""" diff --git a/pydantic_scim2/service_provider.py b/pydantic_scim2/service_provider.py index eb7260f..d656388 100644 --- a/pydantic_scim2/service_provider.py +++ b/pydantic_scim2/service_provider.py @@ -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.