We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4XX
400
401
This is fairly simple:
# this gets understood correctly responses: 200: { description: "OK" } 400: { description: "Bad Syntax" } # this doesn't responses: 200: { description: "OK" } 4XX: { description: "Error" } # (imagine that the 400/4XX codes returned a schema named `ApiError`)
The return types of functions will, example, should be like this:
ApiResponse<void>
But instead, 4XX will be understood as a "success", so it'll actually generate a type like this:
ApiResponse<ApiError> // or, if the function should return something: ApiResponse<SomeReturnData | ApiError>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is fairly simple:
The return types of functions will, example, should be like this:
But instead,
4XX
will be understood as a "success", so it'll actually generate a type like this:The text was updated successfully, but these errors were encountered: