Skip to content

feat: add Kotlin model generation parity - #2305

Open
Gaurav77Kumar wants to merge 1 commit into
asyncapi:masterfrom
Gaurav77Kumar:feat/kotlin-model-generation-parity
Open

Gaurav77Kumar wants to merge 1 commit into
asyncapi:masterfrom
Gaurav77Kumar:feat/kotlin-model-generation-parity

Conversation

@Gaurav77Kumar

Copy link
Copy Markdown

Summary

Adds Kotlin model-generation parity for API hierarchies and Jackson serialization.

Changes

  • Adds Kotlin inheritance support for generated models.
  • Generates sealed Kotlin interfaces for polymorphic unions.
  • Adds Jackson type and subtype annotations when --kotlinJackson is enabled.
  • Adds Jackson property annotations to generated Kotlin properties.
  • Adds Kotlin package validation and preserves stdout/file output behavior.
  • Adds integration coverage for Jackson annotations and polymorphic hierarchies.

Testing

  • npm run build
  • npm run test:one -- test/integration/generate/models.test.ts
  • npx eslint src/domains/services/kotlin-model.service.ts src/apps/cli/commands/generate/models.ts src/apps/cli/internal/flags/generate/models.flags.ts test/integration/generate/models.test.ts

All 7 model-generation integration tests pass.

Breaking Changes

None.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 34bd4bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

1 participant