Skip to content

fix(parser): S3Model support empty keys #375

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

Merged

Conversation

heitorlessa
Copy link
Contributor

@heitorlessa heitorlessa commented Mar 30, 2021

Issue #, if available: #372

Description of changes:

As described in the #372, S3Model should allow keys with 0 bytes. This PR upgrades Pydantic from 1.6 to 1.8, which brings the new NonNegativeInt type.

Checklist

Breaking change checklist

RFC issue #:

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

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

@heitorlessa heitorlessa added bug Something isn't working area/utilities labels Mar 30, 2021
@heitorlessa heitorlessa added this to the 1.14.0 milestone Mar 30, 2021
@heitorlessa
Copy link
Contributor Author

Merging as tests pass on all versions and address the bug reported.

@heitorlessa heitorlessa merged commit 9a86321 into aws-powertools:develop Mar 31, 2021
@heitorlessa heitorlessa deleted the fix/parser_s3_empty_size_key branch March 31, 2021 06:09
heitorlessa referenced this pull request in heitorlessa/aws-lambda-powertools-python Apr 4, 2021
* develop:
  fix(idempotent): Correctly raise IdempotencyKeyError (#378)
  feat(event-handler): Add AppSync handler decorator (#363)
  feat(parameter): add dynamodb_endpoint_url for local_testing (#376)
  fix(parser): S3Model support empty keys (#375)
  fix(data-classes): Add missing operationName (#373)
  fix: perf tests for Logger and fail str msgs
  feat(parser): Add S3 Object Lambda Event (#362)
  build(pre-commit): Add pre-commit to make pr (#368)
  fix(tracer): Correct type hint for MyPy (#365)
  fix(metrics): AttributeError raised by MediaManager and Typing and docs (#357)

Signed-off-by: heitorlessa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant