Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Validate Filterparameter if no default value is given #49

Closed
simonbuehler opened this issue Feb 16, 2016 · 1 comment
Closed

Only Validate Filterparameter if no default value is given #49

simonbuehler opened this issue Feb 16, 2016 · 1 comment

Comments

@simonbuehler
Copy link
Contributor

Hi,

it seems to be not possible to define a Filterparameter like this:

        [FilterParameter(Name = "lx", Default = 5)]
        [Validate(LogicalOperators.GreaterThanOrEqual, 3)]
        [Validate(LogicalOperators.LesserThanOrEqual, 63)]

if lx is not set, it throws an error (0 not allowed) but should use the Default (5) instead and Validate tue.

How can i fix this?

@simonbuehler
Copy link
Contributor Author

ok, misunderstood that the value has to be initialized in a variable, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant