Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze optional parameters and regex parameters #13

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

miyaji255
Copy link
Owner

Support for Routing Variants

  • Optional Parameters
    For routes with optional path parameters (/users/:userId?), generate two route methods to support both variants: /users and /users/:userId.

  • Regex Path Parameters
    For regex path parameters, skip template literal generation.

Copy link

codecov bot commented Nov 3, 2024

Codecov Report

Attention: Patch coverage is 98.14815% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/core/parsePath.ts 95.65% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/core/analyzeMethod.ts 90.38% <100.00%> (ø)
src/core/analyzeParameters.ts 83.51% <100.00%> (ø)
src/core/analyzeSchema.ts 94.64% <100.00%> (ø)
src/core/parsePath.ts 95.65% <95.65%> (ø)

@miyaji255 miyaji255 merged commit 12b2a21 into main Nov 3, 2024
4 checks passed
@miyaji255 miyaji255 deleted the optional-prameter branch November 3, 2024 05:28
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