Skip to content

Fix routing with ANY/any in a string config#18

Open
DanRVP wants to merge 2 commits into
brefphp:masterfrom
DanRVP:fix-string-routing-any
Open

Fix routing with ANY/any in a string config#18
DanRVP wants to merge 2 commits into
brefphp:masterfrom
DanRVP:fix-string-routing-any

Conversation

@DanRVP

@DanRVP DanRVP commented Jul 22, 2026

Copy link
Copy Markdown

Fixes #16

This PR fixes routing with "ANY/any" in a string configuration.

Changes:

  • Updated expanded config tests to be less repetitive to write by adding a data provider
  • Added tests for new cases which this PR addresses
  • Reversed the logic in Router::fromServerlessConfig() so that all inputs are converted to array configurations. Doing this allows us to pass all configs through Router::patternToString() instead of having 2 diverging logic paths (one for strings and one for arrays)

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.

Valid paths not matched from serverless.yml

1 participant