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

[playground] Weird behavior with empty input POST requests #108

Closed
slinkydeveloper opened this issue Nov 14, 2024 · 1 comment · Fixed by #142
Closed

[playground] Weird behavior with empty input POST requests #108

slinkydeveloper opened this issue Nov 14, 2024 · 1 comment · Fixed by #142
Assignees
Labels
bug Something isn't working release-blocker

Comments

@slinkydeveloper
Copy link

slinkydeveloper commented Nov 14, 2024

I'm still trying to assess whether this is actually a bug of the spec generator or the ui, but so far i'm inclined to say there's something off in the UI, as I don't see the same issue with other OpenAPI UI tools.

Essentially the problem is that I have an operation that is POST but has no request body (that's simply our contract sometimes with some requests/responses):
look in this spec for Counter get. This is what gets rendered:

image

It adds the content-type, which is definitely incorrect, as it's not in the spec, and requests will fail.

@slinkydeveloper slinkydeveloper added the bug Something isn't working label Nov 14, 2024
@nikrooz
Copy link
Collaborator

nikrooz commented Nov 15, 2024

This is caused by a bug in Stoplight Elements, created an issue stoplightio/elements#2734

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

Successfully merging a pull request may close this issue.

2 participants