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

[SPE-4671] Support for HTTP GET with Body #1249

Open
michalbiesek opened this issue Feb 5, 2025 · 0 comments
Open

[SPE-4671] Support for HTTP GET with Body #1249

michalbiesek opened this issue Feb 5, 2025 · 0 comments
Labels
Cribl Created by Linear-GitHub Sync linear

Comments

@michalbiesek
Copy link

michalbiesek commented Feb 5, 2025

Hi maintainers,

I’m generating a TypeScript SDK from my OpenAPI/Swagger specification, and I’m encountering this warning for a particular endpoint:

WARN    skipping: /some-endpoint    {"error":"unsupported: request bodies are not supported for GET operations in {typescript typescriptv2 } clients (line 20)"}

This endpoint uses HTTP GET with a request body, which is currently being skipped during the generation process. While this is admittedly unusual in most APIs, we do rely on this behavior. Here is the example of such an request used with other project

Question:
Is there a way to configure or modify the generator so it doesn’t automatically skip GET endpoints that include a body ?
In attachment you can see example file to repro.
Any guidance or suggestions for a workaround would be greatly appreciated.

example_yml.txt

SPE-4671

@simplesagar simplesagar changed the title Support for HTTP GET with Body [SPE-4671] Support for HTTP GET with Body Feb 7, 2025
@simplesagar simplesagar added the Cribl Created by Linear-GitHub Sync label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cribl Created by Linear-GitHub Sync linear
Projects
None yet
Development

No branches or pull requests

2 participants