Skip to content

Conversation

@torresxb1
Copy link
Contributor

Which issue(s) does this change fix?

#3463

Why is this change necessary?

routeKey and queryStringParameters from HttpApi event when running sam local start-api don't match the event from the deployed api. More info is in the linked issue.

How does it address the issue?

Makes them match (make routeKey use curly brackets and remove queryStringParameters if there's no query params)

What side effects does this change have?

Checklist

  • Add input/output type hints to new functions/methods
  • Write design document (Do I need to write a design document?)
  • Write unit tests
  • Write/update functional tests
  • Write/update integration tests
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@torresxb1 torresxb1 merged commit 06f5a79 into aws:develop Jan 10, 2022
@torresxb1 torresxb1 deleted the fix_routeKey_and_queryStringParameters branch January 10, 2022 19:01
mndeveci pushed a commit to mndeveci/aws-sam-cli that referenced this pull request Apr 5, 2022
…match deployed one (aws#3497)

* fix: make routeKey and queryStringParameters for local HttpApi event match deployed ones

* update test default

Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants