Skip to content

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

Development

Successfully merging this pull request may close these issues.

2 participants