Skip to content

POC Exceptions thrown on errors even when validation succeeds #3460

@westin-m

Description

@westin-m

Show that returning ValidationResult objects reduces allocations and latency vs. throwing exceptions in multi-policy success cases

  • Create/reuse a minimal multi-policy harness that reproduces the current behavior
    • Benchmarks exist in the perf folder and can be used as a reference
  • Prototype a result object that captures per-policy failures + final success/failure
  • Plumb the result through one end-to-end call path and ensure exceptions are only thrown for final failure (or truly exceptional cases)

acceptance criteria

  • Zero intermediate exceptions in success scenario
  • Reduced latency and allocations vs. throwing exceptions

Metadata

Metadata

Assignees

Labels

9.x Major ReleaseIssues for the next major version 9.xInternalIndicates issue was opened by the IdentityModel teamnew validation model#2711

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions