Skip to content

Conversation

@denniwang
Copy link
Contributor

ℹ️ Issue

Closes #71

📝 Description

  • normalized path would remove leading slash, so some paths would just be empty,
  • if normalized path is empty, we set it to "/", normalized api path to make sure path parts are parsed correctly,
  • prevent duplicate paths from being created using lambda cli tool, also warns against similar paths

✔️ Verification

created new lambda to test out new features

image

Copy link
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

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

Great work finding + fixing these bugs, thank you

error(`openapi.yaml not found at ${openapiPath} `);

// Check for similar routes before adding
const similarRoutes = checkSimilarRoutes(handlerPath, openapiPath, method, apiPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good! This check looks like it will come in handy in the future, nice

@denniwang denniwang merged commit 2be7384 into main Nov 21, 2025
4 checks passed
@denniwang denniwang deleted the 71-lambda-cli-bugs branch November 21, 2025 03:08
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.

Investigate and Solve Lambda CLI Bugs

4 participants