Skip to content

Impossible to save resource with update_fields with empty list values #146

Description

@ruscoder

Currently it fails if I explicitly want to set some attributes to empty list using patch
It's regression in 2.0.6, because it started to remove null and empty values

resource = client.resource("Patient", generalPractitioner=[practitioner1])
await resource.save()

resource["generalPractitioner"] = []
await resource.save(update_fields=["generalPractitioner"])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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