Skip to content

Accept Options instances in middleware initialization - #520

Merged
geemus merged 1 commit into
masterfrom
fix/middleware-options
Nov 21, 2026
Merged

geemus merged 1 commit into
masterfrom
fix/middleware-options

Conversation

@ydah

@ydah ydah commented Nov 20, 2026

Copy link
Copy Markdown
Member

Passing an Options instance to middleware initialization raises NoMethodError because schema loading and router construction expect a Hash.

Use the original configuration retained by the validated Options instance for both steps. Preserve Hash behavior, driver-specific defaults, and explicit false values.

@geemus geemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks!

@geemus
geemus merged commit 15cb40a into master Nov 21, 2026
11 checks passed
@geemus
geemus deleted the fix/middleware-options branch November 21, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants