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

Docs UI doesn't handle multiple cookies properly #403

Open
erikborsos opened this issue Apr 22, 2024 · 1 comment
Open

Docs UI doesn't handle multiple cookies properly #403

erikborsos opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@erikborsos
Copy link

I've noticed an issue (maybe it's a skill issue from my side) with how the docs page displays multiple cookies.

When only a single cookie is set as a result, everything appears fine in the UI. However, when multiple cookies are set, the UI doesn't seem to render it correctly (particularly in nesting).

Set single cookie:

type SingleOutput struct {
	SetCookie *http.Cookie `header:"Set-Cookie"`
}

Result:

image

Set multiple cookies:

type MultipleOutput struct {
	SetCookie []*http.Cookie `header:"Set-Cookie"`
}

Result:
image

I can't fold in the Set-Cookie object, which can be a bit confusing if there is more header information set.

@danielgtaylor danielgtaylor added the bug Something isn't working label Apr 25, 2024
@danielgtaylor
Copy link
Owner

Nice find, this is a bug as it should be treated as a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants