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(type-safe-api): replace openapi-generator for typescript rest api code generation #831

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

cogwirrel
Copy link
Member

This change replaces the java openapi-generator CLI tool with our own code generation tool, which produces equivalent code. This removes the dependency on Java for the TypeScript REST API projects, as well as improving the speed of code generation by avoiding package installation steps and the multiple passes of openapi codegen used to work around limitations of the tool.

Note that this change fixes #789, which means that those hitting the edge case described in the issue may experience a breaking change.

Copy link

nx-cloud bot commented Sep 30, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0736ec3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

…i code generation

This change replaces the java openapi-generator CLI tool with our own code generation tool, which
produces equivalent code. This removes the dependency on Java for the TypeScript REST API projects,
as well as improving the speed of code generation by avoiding package installation steps and the
multiple passes of openapi codegen used to work around limitations of the tool.

Note that this change fixes #789, which means that those hitting the edge case described in the
issue may experience a breaking change.

Generated code packages now covered by the new codegen:
- typescript runtime
- typescript infrastructure
- typescript handlers
- typescript hooks
@cogwirrel cogwirrel merged commit b9e2dfb into mainline Sep 30, 2024
4 checks passed
@cogwirrel cogwirrel deleted the feat/no-openapi-generator branch September 30, 2024 23:51
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.

[BUG] type-safe-api appending "operation" to some operationIds
2 participants