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

Swagger header params incorrectly appended to path #713

Closed
donaldoakes opened this issue Jul 22, 2019 · 0 comments
Closed

Swagger header params incorrectly appended to path #713

donaldoakes opened this issue Jul 22, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@donaldoakes
Copy link
Collaborator

Live Swagger documentation generated from @Api annotations erroneously include header params on the path. For example, the following annotation appends {hdrparam} to the path in swagger.json and swagger.yaml:

    @ApiImplicitParams({
        @ApiImplicitParam(name="hdrparam", paramType="header", required=true, dataType="java.lang.String")
    })
    public JSONObject get(String path, Map<String,String> headers) throws JSONException {
        // ...
    }
@donaldoakes donaldoakes added this to the 6.1.23 milestone Jul 22, 2019
@donaldoakes donaldoakes self-assigned this Jul 22, 2019
donaldoakes pushed a commit that referenced this issue Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
mdw-hub
Awaiting triage
mdw-services
Awaiting triage
Development

No branches or pull requests

1 participant