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

Opt-out validation of non-nullable reference types #15

Merged
merged 6 commits into from
Jul 24, 2024

Conversation

luboshl
Copy link
Owner

@luboshl luboshl commented Jul 24, 2024

  • Configuration parameters were extracted to separate ValidationSetting
  • New overloads of methods TryValidate and TryValidateAsync where created
    • They accept ValidationSetting instead of separate parameters
  • To disable validation of non-nullable reference types, ValidationSetting.ValidateNonNullableReferenceTypes must be set to false

@luboshl luboshl linked an issue Jul 24, 2024 that may be closed by this pull request
@luboshl luboshl merged commit a8a79c3 into main Jul 24, 2024
1 check passed
@luboshl luboshl deleted the feature/validation-settings branch July 26, 2024 12:51
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

Successfully merging this pull request may close these issues.

Opt-out validation of non-nullable reference types
1 participant