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
when we have this spec:
@delete op delete( @path id: TodoItem.id, ): WithStandardErrors<NoContentResponse | NotFoundErrorResponse>;
this code was generated:
[HttpDelete] [Route("/items/{id}")] [ProducesResponseType((int)HttpStatusCode.NoContent, Type = typeof(void))] public virtual async Task<IActionResult> Delete(long id) { await TodoItemsOperationsImpl.DeleteAsync(id); return Ok(); }
This operation (when succeeded) should always produce 204, but we are returning Ok() which represents to 200.
Ok()
The text was updated successfully, but these errors were encountered:
Update the label as this is a server gen issue.
Sorry, something went wrong.
No branches or pull requests
when we have this spec:
this code was generated:
This operation (when succeeded) should always produce 204, but we are returning
Ok()
which represents to 200.The text was updated successfully, but these errors were encountered: