github aws-powertools/powertools-lambda-python v3.21.0

one day ago

Summary

This release enhances our Event Handler with support for Pydantic Field discriminators and improved OpenAPI response capabilities. We've also expanded our Parser utility with better AppSync and CloudWatch models, plus important bug fixes for form data handling.

⭐️ Congrats to @dap0am, @tonnico, @sreejaaryahi18, @aalvrzf, @Iamrodos, and @dcabib for contributing to this release!

Pydantic Field discriminator support

Docs

You can now use Pydantic's discriminator feature in your Event Handler validation. This allows you to handle polymorphic data structures with union types more efficiently.

union

Enhanced OpenAPI responses

The OpenAPI utility now supports richer response definitions including headers, links, examples, and encoding specifications, giving you more control over your API documentation.

Changes

  • refactor(parser): Improve AppSync models with examples and descriptions (#7330) by @dcabib

🌟New features and non-breaking changes

  • feat(event_handler): enhance OpenAPI response with headers, links, examples and encoding (#7312) by @dcabib
  • feat(parser): add field metadata and examples for CloudWatch models (#7343) by @sreejaaryahi18

📜 Documentation updates

🐛 Bug and hot fixes

  • fix(event_handler): parse single list items in form data (#7415) by @tonnico
  • fix(docs): correct build optimization script and docs (#7367) by @Iamrodos

🔧 Maintenance

This release was made possible by the following contributors:

@Iamrodos, @aalvrz, @dap0am, @dcabib, @dependabot[bot], @github-actions[bot], @hjgraca, @kattakaha, @leandrodamascena, @sreejaaryahi18, @tonnico, dependabot[bot] and github-actions[bot]

Don't miss a new powertools-lambda-python release

NewReleases is sending notifications on new releases.