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

Make ModelState Error Prefix Optional #5

Merged

Conversation

RehanSaeed
Copy link
Contributor

No description provided.

@JeremySkinner
Copy link
Member

JeremySkinner commented Aug 17, 2022

Hi @RehanSaeed I believe making parameters optional is actually a binary breaking change so this isn't something I'll be able to merge without a major version release. Can you switch this to be a separate overload instead? We can then switch it to an optional parameter on the next major release.

Edit: I misremembered - it's adding a new optional parameter that's problematic, but this is an existing parameter so should be fine. I'll aim to merge later this week.

@RehanSaeed
Copy link
Contributor Author

Makes sense, I wasn't sure how amenable you'd be to a breaking change.

Added an overload now. This may also be slightly better for performance since there is no null or empty check.

@JeremySkinner
Copy link
Member

thanks!

@JeremySkinner JeremySkinner merged commit 7f3ad0d into FluentValidation:main Sep 8, 2022
@JeremySkinner
Copy link
Member

I've pushed out 11.2.2 with this change

@RehanSaeed RehanSaeed deleted the make-prefix-optional branch September 21, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants