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

Enable interception of edit context model type when attempting to retrieve validator instances#74

Closed
RyanMarcotte wants to merge 3 commits intoBlazored:mainfrom
RyanMarcotte:EnableInterceptionOfEditContextModelType
Closed

Enable interception of edit context model type when attempting to retrieve validator instances#74
RyanMarcotte wants to merge 3 commits intoBlazored:mainfrom
RyanMarcotte:EnableInterceptionOfEditContextModelType

Conversation

@RyanMarcotte
Copy link

#72 has information about the usage scenario: retrieving a validator instance for a model type that has been proxied.

  • adds MakeTypeUsingEditContextModelDelegate (object => Type)
  • FluentValidationValidator has new optional ModelTypeFunc parameter; if no value specified, then the model => model.GetType() delegate is used
  • added overload of EditContextFluentValidationExtensions.AddFluentValidation accepting MakeTypeUsingEditContextModelDelegate

@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 Sep 11, 2025
@github-actions
Copy link

github-actions bot commented Nov 9, 2025

🔒 Closed: Inactive PR

Closed after 45 days of inactivity.
To continue, reopen or submit a new PR and reference this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant