Skip to content

fix(codegen): flatten allOf models and avoid inline enum parameter types#83

Open
matoous wants to merge 1 commit intomainfrom
md/typing
Open

fix(codegen): flatten allOf models and avoid inline enum parameter types#83
matoous wants to merge 1 commit intomainfrom
md/typing

Conversation

@matoous
Copy link
Copy Markdown
Contributor

@matoous matoous commented Apr 23, 2026

Flatten component schemas that use allOf into the generated
component model instead of producing wrapper records like Merchant
around Merchant2.

Also generate inline query/header enum parameters as String or
List<String> unless they reference a named component schema.
This removes awkward SDK-facing types such as Order2, Format2,
TypesItem2, and StatusesItem2 while keeping the implementation
low-maintenance and spec-driven.

@matoous matoous self-assigned this Apr 23, 2026
Flatten component schemas that use `allOf` into the generated
component model instead of producing wrapper records like `Merchant`
around `Merchant2`.

Also generate inline query/header enum parameters as `String` or
`List<String>` unless they reference a named component schema.
This removes awkward SDK-facing types such as `Order2`, `Format2`,
`TypesItem2`, and `StatusesItem2` while keeping the implementation
low-maintenance and spec-driven.
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.

1 participant