Skip to content

Conversation

@jackdevis
Copy link

@jackdevis jackdevis commented Jan 21, 2026

Summary by cubic

Fixes incorrect model naming for $ref component schemas by using the referenced component name instead of operation-based names, resolving the axios enum suffix bug.

  • Bug Fixes
    • Prefer referenced component schema names when a schema has a $ref; fallback to operation-based naming otherwise.

Written for commit 3b3ae6e. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@wing328
Copy link
Member

wing328 commented Jan 21, 2026

thanks for the pr

can you please write a test or 2 in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/InlineModelResolver.java to cover this change?

@jackdevis jackdevis force-pushed the fix-22753-external-ref-schema-names branch 3 times, most recently from 7a2e79c to a0751e5 Compare January 21, 2026 15:47
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 7 files

@jackdevis jackdevis force-pushed the fix-22753-external-ref-schema-names branch from a0751e5 to 3b3ae6e Compare January 21, 2026 16:00
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