Skip to content

Commit

Permalink
refactor: all List types are initialized with lists
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed May 24, 2024
1 parent be4eab0 commit dd99958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pydantic_scim2/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class SCIMError(BaseModel):
detail: str
status: int
schemas: List[str] = {"urn:ietf:params:scim:api:messages:2.0:Error"}
schemas: List[str] = ["urn:ietf:params:scim:api:messages:2.0:Error"]

@classmethod
def not_found(cls, detail: str = "Not found") -> "SCIMError":
Expand Down Expand Up @@ -71,4 +71,4 @@ class ListResponse(BaseModel):
Discriminator(get_model_name),
]
]
schemas: List[str] = {"urn:ietf:params:scim:api:messages:2.0:ListResponse"}
schemas: List[str] = ["urn:ietf:params:scim:api:messages:2.0:ListResponse"]
2 changes: 1 addition & 1 deletion pydantic_scim2/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,4 @@ class User(Resource):
x509Certificates: Optional[List[X509Certificate]] = Field(
None, description="A list of certificates issued to the User."
)
schemas: List[str] = {"urn:ietf:params:scim:schemas:core:2.0:User"}
schemas: List[str] = ["urn:ietf:params:scim:schemas:core:2.0:User"]

0 comments on commit dd99958

Please sign in to comment.