Skip to content

fix(clients): deserialization and HTTP header handling#6100

Merged
Fluf22 merged 10 commits into
fix/generatorsfrom
fix/client-fixes
May 1, 2026
Merged

fix(clients): deserialization and HTTP header handling#6100
Fluf22 merged 10 commits into
fix/generatorsfrom
fix/client-fixes

Conversation

@Fluf22
Copy link
Copy Markdown
Collaborator

@Fluf22 Fluf22 commented Mar 12, 2026

Summary

Extracted from #5860 — generic client fixes for Python and Scala.

Changes

  • Python (api_response.py): Handle non-string input for list types; add dict type deserialization
  • Scala (HttpRequest.scala): Add withHeader(key, Option[Any]) overload that skips None values

@Fluf22 Fluf22 requested a review from a team as a code owner March 12, 2026 13:15
@Fluf22 Fluf22 requested review from MarioAlexandruDan and morganleroi and removed request for a team March 12, 2026 13:15
@algolia-bot
Copy link
Copy Markdown
Collaborator

algolia-bot commented Mar 12, 2026

✔️ Code generated!

Name Link
🪓 Triggered by 332b127e135fd6862ee19cad7a6ed3cf6726b8b2
🍃 Generated commit 50e3eca1a9652bd2ab1c0b2eb6234e5bc6d63138
🌲 Generated branch generated/fix/client-fixes
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
python 1328
scala 23

@Fluf22 Fluf22 changed the title fix(python,scala): deserialization and HTTP header handling fix(clients): deserialization and HTTP header handling Mar 12, 2026
Copy link
Copy Markdown
Contributor

@eric-zaharia eric-zaharia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Fluf22 Fluf22 force-pushed the fix/client-fixes branch from f0f6d84 to a861bf2 Compare May 1, 2026 06:15
@Fluf22 Fluf22 force-pushed the fix/test-helpers branch from 62ae635 to 452ac04 Compare May 1, 2026 06:15
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 1, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 48 complexity

Metric Results
Complexity 48

View in Codacy

TIP This summary will be updated as you push new changes.

Fluf22 added 10 commits May 1, 2026 09:04
Replace direct JSONAssert/Quibble calls with custom lenient JSON assertion helpers
that keep only the expected structure from the actual response (union-based comparison).
Also marks test helper files as hand-written in generation.config.mjs.
Python: handle non-string input for list types, add dict type deserialization in api_response.py
Scala: add withHeader(key, Option[Any]) overload that skips None values in HttpRequest.scala
@Fluf22 Fluf22 force-pushed the fix/test-helpers branch from 452ac04 to f57b33d Compare May 1, 2026 07:05
@Fluf22 Fluf22 force-pushed the fix/client-fixes branch from a861bf2 to 89d7f7d Compare May 1, 2026 07:05
Base automatically changed from fix/test-helpers to fix/generators May 1, 2026 12:29
@Fluf22 Fluf22 merged commit 3b524f6 into fix/generators May 1, 2026
20 of 31 checks passed
@Fluf22 Fluf22 deleted the fix/client-fixes branch May 1, 2026 12:29
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.

3 participants