Skip to content

Use ResponseParameters direclty in model dump #141

@NaqGuug

Description

@NaqGuug

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,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions