Skip to content

Consider implement validation handler API to abstract away the FluentValidation detail #4

@teneko

Description

@teneko

Currently, FluentValidation is tightly coupled to EditModelValidatorBase<TDerived>. Should we abstract it to support other validation libraries?

This would require to implement a "validation handler API".

Consequences & Ideas

  • Delegate lifecycle stages and responsibilities to the validation handler:
    • Support initialization and disposal (tear-up / tear-down).
    • Resolve library-specific, possibly lifecycle-aware (e.g. disposable) validators.
    • Pull up ServiceScopeSource to the parameters transition API.
  • Allow validation handlers to participate in the parameters transition API.
  • Consider static vs non-static validation handlers:
    • If static, how do we manage external state resolution or storage?

Proposal

TODO

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestresearchInvestigating potential issues, compatibility, or unknown behavior.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions