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
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.

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
🌟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
- docs(aws): add AWS docs bootstrap JavaScript (#7472) by @leandrodamascena
- docs(logger): clarify Advanced Logging Controls interaction with sampling (#7429) by @kattakaha
- docs(event_handler): remove the wrong CORS warning (#7385) by @leandrodamascena
- docs(event_handler): update test section (#7374) by @aalvrz
- feat(event-handler): add support for Pydantic Field discriminator in validation (#7227) by @dap0am
- docs(event_handler): add info section about types (#7368) by @leandrodamascena
🐛 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
- chore(ci): improve message when do-not-merge label is present (#7505) by @tonnico
- chore(deps-dev): bump cfn-lint from 1.40.0 to 1.40.1 (#7502) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.47 to 1.40.49 (#7503) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.40.0 to 2.41.0 (#7504) by @dependabot[bot]
- chore(deps): bump valkey-glide from 2.1.0 to 2.1.1 (#7498) by @dependabot[bot]
- chore(deps-dev): bump types-python-dateutil from 2.9.0.20250822 to 2.9.0.20251008 (#7499) by @dependabot[bot]
- chore(deps): bump pydantic from 2.11.10 to 2.12.0 (#7491) by @dependabot[bot]
- chore: Fix Discord badge in README (#7488) by @hjgraca
- chore(deps-dev): bump boto3-stubs from 1.40.45 to 1.40.47 (#7490) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.13.3 to 0.14.0 (#7489) by @dependabot[bot]
- chore(deps): bump pydantic from 2.11.9 to 2.11.10 (#7483) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.39.0 to 2.40.0 (#7484) by @dependabot[bot]
- chore(deps): bump mkdocs-llmstxt from 0.3.2 to 0.4.0 (#7475) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.44 to 1.40.45 (#7474) by @dependabot[bot]
- chore(deps): bump mkdocs-llmstxt from 0.3.2 to 0.4.0 in /docs (#7473) by @dependabot[bot]
- chore(deps-dev): bump isort from 6.0.1 to 6.1.0 (#7461) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.13.2 to 0.13.3 (#7465) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1029.3 to 2.1029.4 (#7459) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.218.0a0 to 2.219.0a0 (#7464) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.42 to 1.40.43 (#7460) by @dependabot[bot]
- chore(deps): bump ossf/scorecard-action from 2.4.2 to 2.4.3 (#7458) by @dependabot[bot]
- chore(deps): bump mkdocs-material from 9.6.20 to 9.6.21 (#7455) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.41 to 1.40.42 (#7454) by @dependabot[bot]
- chore(deps): bump squidfunk/mkdocs-material from
86d21da
to00f9276
in /docs (#7452) by @dependabot[bot] - chore(deps): bump mkdocs-material from 9.6.20 to 9.6.21 in /docs (#7453) by @dependabot[bot]
- chore(deps-dev): bump cfn-lint from 1.39.1 to 1.40.0 (#7447) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.40 to 1.40.41 (#7445) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.217.0a0 to 2.218.0a0 (#7448) by @dependabot[bot]
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.25 to 4.0.0 (#7449) by @dependabot[bot]
- chore(deps): bump pydantic-settings from 2.10.1 to 2.11.0 (#7434) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.39 to 1.40.40 (#7433) by @dependabot[bot]
- chore(deps-dev): bump mypy from 1.18.1 to 1.18.2 (#7435) by @dependabot[bot]
- chore(deps): bump mkdocs-llmstxt from 0.3.1 to 0.3.2 (#7436) by @dependabot[bot]
- chore(deps-dev): bump coverage from 7.10.6 to 7.10.7 (#7437) by @dependabot[bot]
- chore(deps): bump actions/dependency-review-action from 4.7.3 to 4.8.0 (#7432) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.12.12 to 0.13.2 (#7427) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.32 to 1.40.39 (#7425) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.215.0a0 to 2.217.0a0 (#7424) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-lib from 2.215.0 to 2.217.0 (#7423) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.38.0 to 2.39.0 (#7426) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.37.1 to 2.38.0 (#7402) by @dependabot[bot]
- chore(deps): bump valkey-glide from 2.0.1 to 2.1.0 (#7403) by @dependabot[bot]
- chore(deps-dev): bump pytest-mock from 3.15.0 to 3.15.1 (#7396) by @dependabot[bot]
- chore(deps): bump mkdocs-llmstxt from 0.3.1 to 0.3.2 in /docs (#7409) by @dependabot[bot]
- chore(deps-dev): bump types-protobuf from 6.30.2.20250822 to 6.32.1.20250918 (#7406) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1029.2 to 2.1029.3 (#7420) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1029.1 to 2.1029.2 (#7400) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.31 to 1.40.32 (#7395) by @dependabot[bot]
- chore(deps): bump pydantic from 2.11.7 to 2.11.9 (#7390) by @dependabot[bot]
- chore(deps): bump mkdocs-material from 9.6.19 to 9.6.20 (#7389) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.214.0a0 to 2.215.0a0 (#7391) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.30 to 1.40.31 (#7388) by @dependabot[bot]
- chore(deps): bump mkdocs-material from 9.6.19 to 9.6.20 in /docs (#7387) by @dependabot[bot]
- chore(deps): bump squidfunk/mkdocs-material from
209b62d
to86d21da
in /docs (#7386) by @dependabot[bot] - chore(deps-dev): bump boto3-stubs from 1.40.29 to 1.40.30 (#7378) by @dependabot[bot]
- chore(deps-dev): bump pytest-asyncio from 1.1.0 to 1.2.0 (#7377) by @dependabot[bot]
- chore(deps): bump protobuf from 6.32.0 to 6.32.1 (#7376) by @dependabot[bot]
- chore(deps-dev): bump mypy from 1.17.1 to 1.18.1 (#7375) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.27 to 1.40.29 (#7371) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1029.0 to 2.1029.1 (#7370) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.40.26 to 1.40.27 (#7358) by @dependabot[bot]
- chore(deps-dev): bump pytest-cov from 6.3.0 to 7.0.0 (#7357) by @dependabot[bot]
- chore(deps): bump mkdocs-material from 9.6.18 to 9.6.19 (#7359) by @dependabot[bot]
- chore(deps-dev): bump testcontainers from 4.12.0 to 4.13.0 (#7360) by @dependabot[bot]
- chore(deps-dev): bump sentry-sdk from 2.37.0 to 2.37.1 (#7356) by @dependabot[bot]
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]