Skip to content

Bug: POST token/generate returns empty on 401 while Swagger defines JSON #156

@DzMakatun

Description

@DzMakatun

The swagger UI wrongly indicates a json to be returned for POST token/generate in case of 401, where in reality no response is returned.
See Swagger page

As a result the client code generated from Swagger definition fails upon receiving 401.

To Reproduce

Use Swagger UI to execute POST /token/generate with wrong credentials
OR use curl with wrong credentials

Expected behavior

Return json with error message. Or update Swagger definition not to state application/json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions