Skip to content

Move the options validation logic to IValidateOptions<TOptions> implementations#2474

Merged
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:options_validation
May 31, 2026
Merged

Move the options validation logic to IValidateOptions<TOptions> implementations#2474
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:options_validation

Conversation

@kevinchalet

@kevinchalet kevinchalet commented May 31, 2026

Copy link
Copy Markdown
Member

Fixes #2471.

The change is quite massive, but adopting IValidateOptions<TOptions> makes the separation between post-configuration initialization and validation cleaner/clearer.

Note: dedicated unit tests for the updated *Configuration classes will be added in a separate PR to reduce the noise.

@kevinchalet kevinchalet added this to the 8.0.0-preview.1 milestone May 31, 2026
@kevinchalet kevinchalet self-assigned this May 31, 2026
@kevinchalet kevinchalet merged commit 83f0bb5 into openiddict:dev May 31, 2026
6 checks passed
@kevinchalet kevinchalet deleted the options_validation branch May 31, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the options validation logic to IValidateOptions<TOptions> implementations

1 participant