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

Problem with migration to @hey-api/openapi-ts #2283

Open
stq opened this issue Jan 20, 2025 · 4 comments
Open

Problem with migration to @hey-api/openapi-ts #2283

stq opened this issue Jan 20, 2025 · 4 comments
Assignees

Comments

@stq
Copy link

stq commented Jan 20, 2025

There is a problem with migration to @hey-api/openapi-ts

This solution provides a clean service/model generation per-file ,
while @hey-api/openapi-ts maintainer clearly degraded this solution back to generation of huge unmaintainable all-in-one file.

Can you please remove suggestion to migrate to @hey-api/openapi-ts since it is step backward, and just state clearly there is no another continuing project with same traits as this?

@stq stq changed the title Problem with migration to Problem with migration to @hey-api/openapi-ts Jan 20, 2025
@mrlubos
Copy link
Collaborator

mrlubos commented Jan 20, 2025

Hi @stq, this feature has been requested a few times already, so I'll assume you're voting +1 on it. I'm curious about the unmaintainable comment, what exactly do you mean by that?

@MaffooBristol
Copy link

MaffooBristol commented Mar 17, 2025

If I can add my two pence, I prefer heygen's implementation in many ways, but if you automatically generate the file from a swagger JSON, it completely rewrites the entire sdk.gen.ts and types.gen.ts files every time. Even with no changes to the swagger, it will reorder everything in the ts files, whilst it should be stable.

This is something I've been googling to try and resolve but might be an issue to open on the other side

I think the term I'm looking for is "non-deterministic"

@mrlubos
Copy link
Collaborator

mrlubos commented Mar 17, 2025

@MaffooBristol Would you be able to open an issue? I'm curious how to reproduce this because I'm not seeing the same – same input = same output

@kmihaltsov
Copy link

+1 here,
We have 5k+ files project and migration to @hey-api/openapi-ts is impossible because of thousands of broken imports.

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

No branches or pull requests

5 participants