Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Conversation

@MichalCadecky
Copy link

FluentValidation allows developer to provide additional data for validation which can be utilized when defining validation rules. Unfortunately FluentValidationValidator component does not provide such an option to do so (parameter binding).

This PR adds a new property/parameter ContextData which can be used to bind Dictionary with additional data which will be provided to the validation pipeline.

Examples were modified accordingly to showcase the new option.

@ThaRaven403
Copy link

Just wanted to say that I was about to open an issue about this particular need. Although it's not used very often, it would be incredibly useful for things like checking for a duplicate name against an already existing list of items

@andrewjw1995
Copy link

+1, that's our exact use - checking for a duplicate name against an already existing list of items. @chrissainty could we please get a review on this?

@devraulu
Copy link

devraulu commented Nov 1, 2023

I was about to open an issue requesting this functionality or adding it myself, I hope it's added soon because I've been breaking my head for hours trying to get it to work with other libraries.

@Sharaf-Mansour
Copy link

@chrissainty Can you take a closer look into this if you have available time?

@pianomanjh
Copy link

My codebase would also benefit from this feature

@github-actions
Copy link

⏰ Stale Pull Request

No activity for 1 year. Will close in 45 days unless updated.
To keep open, push commits, comment, or remove the stale label.

@github-actions github-actions bot added the stale label Oct 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants