Skip to content

Support for third party wrapper types #30

@mwojtul

Description

@mwojtul

Really convenient library, thanks for creating it.

I'm wondering if it'd be possible to use an optional wrapper type other than the one provided by the library. I'm using Facet and its GenerateDtos functionality for source generating CRUD DTOs. The patch DTO it generates is suitable for an optional patch style operation:

public record PersonPatch
{
    public global::Facet.Optional<string> Name { get; set; }
    public global::Facet.Optional<string?> Nickname { get; set; }
}

But the issue is that it uses its own Optional wrapper, so as is I don't think it's possible to make it work with OptionalValues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions