Skip to content

Allow passing the OAD as a first argument of the Middlewares#341

Merged
ahx merged 2 commits intomainfrom
spec-first-arg
Apr 4, 2025
Merged

Allow passing the OAD as a first argument of the Middlewares#341
ahx merged 2 commits intomainfrom
spec-first-arg

Conversation

@ahx
Copy link
Copy Markdown
Owner

@ahx ahx commented Mar 29, 2025

This is simpler and I don't like "spec" as an argument name

This allows you to write

use OpenapiFirst::Middlewares::RequestValidation, 'openapi/openapi.yaml'

instead of

use OpenapiFirst::Middlewares::RequestValidation, spec: 'openapi/openapi.yaml'

@ahx ahx merged commit d5e6f4c into main Apr 4, 2025
31 checks passed
@ahx ahx deleted the spec-first-arg branch April 4, 2025 12:55
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.

1 participant