Skip to content

Optional Nullable Collections throw errors. #52

@NathanMagnus

Description

@NathanMagnus

return Result.Failure<Option<TValue[]>, ValidationError[]>(collectionErrors.Concat(itemErrors ?? Enumerable.Empty<ValidationError>()).ToArray());

NOTE: INCOMPLETE ISSUE AT THIS POINT

I haven't dug too far into the issue yet, but something with this line and a optional nullable collection does not work. It throws an error because collectionErrors is null.

public Data<Option<T[]>> A { get; set; } = Data.Collection<T>().Optional().Nullable().ItemCount(minimumItems: 1);

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