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

[JavaScript] Content-Type: application/json on GET(also HEAD,DELETE) requests #1061

Open
noritama opened this issue Sep 19, 2018 · 0 comments

Comments

@noritama
Copy link

Description

The same problem as #476 is also occurring in javaScript.

openapi-generator version

master and 4.0.x

OpenAPI declaration file content or url

Use ping.yaml.

Command line used for generation
java -jar openapi-generator-cli.jar generate \
    -i ping.yaml \
    -l javascript \
    -o dist \
    -DuseES6=false \
    --additional-properties usePromises=true
Steps to reproduce

Generate client.

Related issues/PRs

#476

Suggest a fix/enhancement

Do not attempt to even infer a content type for a GET(also HEAD,DELETE) request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants