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

Transformers unhandled cases #1739

Open
lifeiscontent opened this issue Feb 24, 2025 · 6 comments
Open

Transformers unhandled cases #1739

lifeiscontent opened this issue Feb 24, 2025 · 6 comments
Labels
bug 🔥 Something isn't working

Comments

@lifeiscontent
Copy link

Description

I can't generate a client from: https://api.sort.xyz/docs

let me know if there is anything I can help with in terms of context / something that just looks blantently wrong.

Reproducible example or configuration

https://stackblitz.com/edit/hey-api-example-ykdsu9dk

OpenAPI specification (optional)

No response

System information (optional)

No response

@lifeiscontent lifeiscontent added the bug 🔥 Something isn't working label Feb 24, 2025
Copy link

stackblitz bot commented Feb 24, 2025

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@mrlubos
Copy link
Member

mrlubos commented Feb 24, 2025

@mrlubos mrlubos added the needs info ⏳ Further information is required label Feb 24, 2025
@lifeiscontent
Copy link
Author

@mrlubos when running the openapi-ts task I'm seeing a bunch of messages like:

... is too complex and won't be currently processed. This will likely produce an incomplete transformer which is not what you want. Please open an issue if you'd like this improved https://github.com/hey-api/openapi-ts/issues

@mrlubos
Copy link
Member

mrlubos commented Feb 24, 2025

Oh yes that's true, your initial message made it sound like nothing was being generated. Will have a look, thanks for reporting!

@mrlubos mrlubos removed the needs info ⏳ Further information is required label Feb 24, 2025
@mrlubos mrlubos changed the title client doesn't generate from openapi schema Transformers unhandled cases Feb 24, 2025
@lifeiscontent
Copy link
Author

@mrlubos also if you look at the transformers they have some pretty odd return statements. https://stackblitz.com/edit/hey-api-example-rqoduxp6?file=src%2Fsort.xyz%2Ftransformers.gen.ts

@mrlubos
Copy link
Member

mrlubos commented Feb 24, 2025

Yep!

@Schroedi Schroedi marked this as a duplicate of #1763 Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants