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

Option to skip validation on property #10

Closed
luboshl opened this issue Jul 17, 2024 · 0 comments · Fixed by #11
Closed

Option to skip validation on property #10

luboshl opened this issue Jul 17, 2024 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@luboshl
Copy link
Owner

luboshl commented Jul 17, 2024

Non-nullable reference types are validated automatically. But there can be types with properties, that fail when getter is accessed in some scenarios.

public class Model
{
    public string Name => throw new InvalidOperationException();
}

We need to add an option to skip validation of any property.

@luboshl luboshl self-assigned this Jul 17, 2024
@luboshl luboshl linked a pull request Jul 17, 2024 that will close this issue
@luboshl luboshl added the enhancement New feature or request label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant