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

Unexpected line break between HTTP status code, reason #2585

Open
svix-jplatte opened this issue Sep 5, 2024 · 2 comments
Open

Unexpected line break between HTTP status code, reason #2585

svix-jplatte opened this issue Sep 5, 2024 · 2 comments

Comments

@svix-jplatte
Copy link

Describe the bug

Somewhere between v2.0.0-rc.75 and v2.1.5 (I just attempted an upgrade), redoc started adding a line break between the numerical HTTP status code and the description for the response, even though plenty of space is available.

Expected behavior

No extra line break when plenty of space is available.

Minimal reproducible OpenAPI snippet(if possible)

"paths": {
        "/": {
            "get": {
                "description": "Operation description.",
                "operationId": "my.operation",
                "responses": {
                    "200": {
                        "content": {},
                        "description": "OK"
                    },
                    "400": {
                        "content": {},
                        "description": "Bad request"
                    }
                }
            }
        }
    }
}

Screenshots

before:
before

after (looks like I screenshotted a different route but it's the same everywhere):
after

@MRmlik12
Copy link

MRmlik12 commented Oct 1, 2024

Is this issue solved? If not I can handle with that

@svix-jplatte
Copy link
Author

I guess you should test it yourself with the latest git version once you have a working dev setup, but the version from the issue report is still the latest published release as far as I can tell.

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