Skip to content

Java Feign client generator: HTTP header name should be named Accept not Accepts #2983

@daknin

Description

@daknin
Description

The Feign generator is producing Api classes with an incorrect header name.
e.g.
@RequestLine("DELETE /pet/{petId}")
@headers({
"Content-type: application/json",
"Accepts: application/json",
"apiKey: {apiKey}"
})
void deletePet(@param("petId") Long petId, @param("apiKey") String apiKey);

The header should be named Accept not Accepts.

Swagger-codegen version

2.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions