Skip to content

support validation #13

Open
Open
@siywilliams

Description

@siywilliams

The Api lends itself nicely to some fluent validation. The failures would be returned as part of the parse result object.

The fluent Api could be provided by a set of extenstion methods that hang off the WithValidation() result, for example

parser.Setup<int>("p", "percent").Required().WithValidation()
      .GreaterOrEqualTo(0)
      .LessOrEqualTo(100);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions