Pass the new ResponseParameters to model dump instead of explicitly setting attributes and excluded_attributes.
So this (req is an instance of ResponseParameters)
user.model_dump(
scim_ctx=Context.RESOURCE_QUERY_RESPONSE,
attributes=req.attributes,
excluded_attributes=req.excluded_attributes,
)
becomes this
user.model_dump(
scim_ctx=Context.RESOURCE_QUERY_RESPONSE,
response_parameters=req,
)
Pass the new
ResponseParametersto model dump instead of explicitly settingattributesandexcluded_attributes.So this (req is an instance of ResponseParameters)
becomes this