RicoSuter/NSwag

POST response code check wrong

Open

#1,867 opened on Jan 3, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (1,189 forks)batch import
help wanted

Repository metrics

Stars
 (6,291 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi!

I tried the "TodoItem" from your "Get started with NSwag and ASP.NET Core". I used the swagger ui and tested POST api/todo and get a 201 response code. However when I use NSwag Studio it generates a C# client that checks that the code is 200 or 204. Have I missed something? Of course I can change the code but this must be a bug?

Best regards Peter

Contributor guide