Skip to content

fix chaotic-openapi: inproper serialization for single body requests - #1340

Open
alex-aparin wants to merge 4 commits into
userver-framework:developfrom
alex-aparin:fix/openapi_client
Open

fix chaotic-openapi: inproper serialization for single body requests#1340
alex-aparin wants to merge 4 commits into
userver-framework:developfrom
alex-aparin:fix/openapi_client

Conversation

@alex-aparin

@alex-aparin alex-aparin commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Serialization for single body requests misses several things:

  1. It misses content type header
  2. Serialization is not working for non json types

Upd: refactored tests with new openapi scheme revealed issues
3. Broken compilation because form fields treatment
4. Form fields work badly with $ref

Proposed pr fixes them also


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

Comment thread chaotic-openapi/chaotic_openapi/back/cpp/client/templates/requests.cpp.jinja Outdated
Comment thread chaotic-openapi/integration_tests/src/requests_test.cpp Outdated
Comment thread chaotic-openapi/integration_tests/src/requests_test.cpp Outdated
Comment thread chaotic-openapi/integration_tests/clients/multiple-content-types/openapi.yaml Outdated
@alex-aparin
alex-aparin marked this pull request as draft September 4, 2026 07:19
@alex-aparin
alex-aparin marked this pull request as ready for review September 4, 2026 21:09
@alex-aparin

alex-aparin commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Пару слов о новых коммитах - pr дополниткльно к заявленным 1,2 пунктам также чинит неожиданно найденные 3,4 пункты (они мешали рефакторингу и основному фиксу). В частности оказалось что $ref не обрабатывается корректно для form data + была поломана компиляция.

Также при рефакторинге были учтены замечания к коду

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants