Skip to content

feat(clients): Agent Studio v1#6097

Open
Fluf22 wants to merge 14 commits intomainfrom
fix/generators
Open

feat(clients): Agent Studio v1#6097
Fluf22 wants to merge 14 commits intomainfrom
fix/generators

Conversation

@Fluf22
Copy link
Copy Markdown
Collaborator

@Fluf22 Fluf22 commented Mar 12, 2026

Summary

Extracted from #5860 — generic generator fixes that improve code generation for complex oneOf patterns.

Changes

  • OneOf.java + oneof_trait.mustache: Enhanced hasAtModelOrEnum() with fallback check for additionalProperties models; added fallback JObject extraction for Scala map types
  • AlgoliaPhpGenerator.java: Remove FormDataProcessor.mustache from PHP supporting files
  • ParametersWithDataType.java: Added isSimpleObject flag for Kotlin buildJsonObject vs mapOf routing; rewrote array variant resolution for oneOf types with model-scoring heuristic

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

algolia-bot commented Mar 12, 2026

💥 Breaking changes detected !!

Either this PR or a previous PR not released yet introduced breaking changes, be careful when merging.
You can find the details in the 'client java@21' CI job.

✔️ Code generated!

Name Link
🪓 Triggered by cb8de4cb5c6bd2fc7158fbd837320c71a25a830e
🍃 Generated commit 23aab7aa6dcdb9667912f9f57b6ddd21e77d65b0
🌲 Generated branch generated/fix/generators
📊 Benchmark results

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

Language Req/s
go 2475
javascript 2372
php 1626
csharp 1571
python 1258
java 1093
ruby 960
swift 612
scala 23

eric-zaharia
eric-zaharia previously approved these changes Mar 25, 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!

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 1, 2026

Not up to standards ⛔

🔴 Issues 3 critical · 28 high · 10 medium

Alerts:

⚠ 31 issues (≤ 0 issues of at least high severity)

Results:
41 new issues

Category Results
Security 28 high
3 critical
10 medium

View in Codacy

🟢 Metrics 159 complexity

Metric Results
Complexity 159

View in Codacy

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

Fluf22 added 4 commits May 1, 2026 09:04
Rewrite array variant resolution for oneOf types: handle multiple array variants
by scoring item models against sample data (required-field + property-counting heuristic).
New methods: findBestArrayVariant(), scoreOneOfModelMatch(), scoreDirectModelMatch().
@Fluf22 Fluf22 force-pushed the fix/generators branch from f028798 to ff5bdf8 Compare May 1, 2026 07:05
@Fluf22 Fluf22 changed the title fix(generators): oneOf resolution, array variant scoring, and PHP cleanup feat(clients): Agent Studio initial version May 1, 2026
@Fluf22 Fluf22 changed the title feat(clients): Agent Studio initial version feat(clients): Agent Studio v1 May 1, 2026
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