Skip to content
This repository was archived by the owner on Nov 15, 2018. It is now read-only.
This repository was archived by the owner on Nov 15, 2018. It is now read-only.

Patching of readonly collections fails #118

Closed
@MovGP0

Description

@MovGP0

Given I have an Entity with an readonly collection like this:

public sealed class MyEntity 
{
    public MyEntity()
    {
    }

    [JsonConstructor]
    public MyEntity(IEnumerable<string> tags)
    {
        Tags = tags?.ToList() ?? new List<string>();
    }

    [JsonProperty("tags")]
    public ICollection<string> Tags { get; } = new List<string>();
}

Than it is not possible to patch it, besides the property beeing potentially writeable and also serializeable.

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