Skip to content

fix(parser): API Gateway V2 request context scope field should be optional - #2961

Merged
heitorlessa merged 2 commits into
aws-powertools:developfrom
leandrodamascena:fix/parserapigwv2
Aug 15, 2023
Merged

heitorlessa merged 2 commits into
aws-powertools:developfrom
leandrodamascena:fix/parserapigwv2

Conversation

@leandrodamascena

Copy link
Copy Markdown
Contributor

Issue number: #2953

Summary

Changes

Include the Optional type to make the "scope" field optional.

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@leandrodamascena
leandrodamascena requested a review from a team August 15, 2023 12:46
@pull-request-size pull-request-size Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 15, 2023
@github-actions github-actions Bot added the bug Something isn't working label Aug 15, 2023
@heitorlessa heitorlessa changed the title fix(parser): make scope field optional fix(parser): API Gateway V2 request context scope field should be optional Aug 15, 2023
@codecov-commenter

codecov-commenter commented Aug 15, 2023 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.56%. Comparing base (dbd80cf) to head (ff6b53d).
⚠️ Report is 3022 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2961      +/-   ##
===========================================
+ Coverage    96.48%   96.56%   +0.07%     
===========================================
  Files          175      175              
  Lines         7825     7825              
  Branches      1476     1476              
===========================================
+ Hits          7550     7556       +6     
+ Misses         220      217       -3     
+ Partials        55       52       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@heitorlessa heitorlessa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tiny test to avoid regressions

@leandrodamascena leandrodamascena linked an issue Aug 15, 2023 that may be closed by this pull request
@boring-cyborg boring-cyborg Bot added the tests label Aug 15, 2023
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@heitorlessa
heitorlessa merged commit 181fc33 into aws-powertools:develop Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: RequestContextV2AuthorizerJwt requires scopes

3 participants