Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for JS and TS interfaces/unions #930

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MorFix
Copy link

@MorFix MorFix commented Feb 6, 2025

Description of changes

A PR has added support for unions and interfaces.
However, they were still not working for generating models for JS/TS -index.js, index.d.ts, and schema.js metadata file.
This PR aims to complete this work and add the necessary support

Codegen Paramaters Changed or Added

N/A

Issue #, if available

N/A

Description of how you validated changes

Updating and adding tests at the moment.

Checklist

  • PR description included
  • yarn test passes
  • E2E test run linked
  • Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@MorFix MorFix requested a review from a team as a code owner February 6, 2025 16:17
@@ -216,6 +216,7 @@ const generateJavasScriptPreset = (
filename: join(modelFolder, 'index.d.ts'),
config: {
...options.config,
target: 'typescript',
Copy link
Author

Choose a reason for hiding this comment

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

wondering why this was needed

Copy link
Author

Choose a reason for hiding this comment

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

Probably indeed not needed (js generator inherits ts). Removing.

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