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

api reports that endpoint without parameters can return 400 #3984

Open
ryskajakub opened this issue Nov 22, 2024 · 0 comments
Open

api reports that endpoint without parameters can return 400 #3984

ryskajakub opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working platform

Comments

@ryskajakub
Copy link
Contributor

What version of Effect is running?

"@effect/platform": "^0.69.24"

What steps can reproduce the bug?

I define:

    HttpApiEndpoint.get('home', '/')
      .addSuccess(HttpApiSchema.NoContent)

without any errors

What is the expected behavior?

generated openapi won't include any error response, only 204

What do you see instead?

I can see

400	The request did not match the expected schema

in the list of possible responses

Screenshot from 2024-11-22 18-11-47

Additional information

looks like this response is added to every endpoint, it should only be in endpoints having any input schema

@ryskajakub ryskajakub added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform
Projects
None yet
Development

No branches or pull requests

2 participants