Skip to content

Add validation on start for Acmebot options - #1225

Merged
shibayan merged 1 commit into
masterfrom
validate-on-start
Jul 27, 2026
Merged

Add validation on start for Acmebot options#1225
shibayan merged 1 commit into
masterfrom
validate-on-start

Conversation

@shibayan

Copy link
Copy Markdown
Member

This pull request makes a minor improvement to the application startup configuration by ensuring that option validation occurs during application startup, not just at runtime.

  • Configuration validation:
    • src/Acmebot.App/Program.cs: Added .ValidateOnStart() to the AddOptions<AcmebotOptions>() configuration, so that invalid configuration is detected as soon as the application starts.

@shibayan shibayan self-assigned this Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 08:22
@shibayan shibayan added the enhancement New feature or request label Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves early failure behavior for the Azure Functions app by ensuring AcmebotOptions configuration is validated during application startup (rather than only when first accessed via DI).

Changes:

  • Added .ValidateOnStart() to the AcmebotOptions options builder so invalid configuration is detected at startup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shibayan
shibayan merged commit 10b7ad0 into master Jul 27, 2026
11 checks passed
@shibayan
shibayan deleted the validate-on-start branch July 27, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants