Skip to content

Support minLength/maxLength for non-required strings #35

@dta5003

Description

@dta5003

Currently if a parameter is defined like { type: string, minLength: 2, maxLength: 2 }, but the parameter is not required, it results in a runtime error. The System.ComponentModel.DataAnnotations.MinLengthAttribute.IsValid(Object value) throws since it is attempting to test the IOptional<string> rather than the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions