Skip to content

[Backport 4.x] feat: support different body schema per content type#5559

Merged
climba03003 merged 1 commit into4.xfrom
backport-5545-to-4.x
Jul 17, 2024
Merged

[Backport 4.x] feat: support different body schema per content type#5559
climba03003 merged 1 commit into4.xfrom
backport-5545-to-4.x

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jul 9, 2024

Backport f3ee7f7 from #5545.

* feat: support different body schema per content type

* Add test for internal schema compiler

* Consistent formatting of tests

* Add test to avoid regression if types get stricter

* Fix types test

* Lint

* Prefer single quoutes

* Add docs with example schema

* Remove unrelated formatting changes

* Remove extra semicolon

* Avoid using contractions

Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
Signed-off-by: Nico Flaig <nflaig@protonmail.com>

* Reduce branches

Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Signed-off-by: Nico Flaig <nflaig@protonmail.com>

* Consistent variable naming

* Add todo for adding request.contentType

* Reduce nesting

---------

Signed-off-by: Nico Flaig <nflaig@protonmail.com>
Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
(cherry picked from commit f3ee7f7)
@climba03003 climba03003 merged commit cd12047 into 4.x Jul 17, 2024
@climba03003 climba03003 deleted the backport-5545-to-4.x branch July 17, 2024 03:14
@github-actions
Copy link
Author

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants