Open Derppening opened 4 years ago
The PUT /books API accepts null as a valid Available value.
PUT /books
null
Available
Assuming the database and web server is running:
POST /books
/books
400 Bad Request
200 OK
Issue description
The
PUT /books
API acceptsnull
as a validAvailable
value.Steps to reproduce the issue
Assuming the database and web server is running:
POST /books
request./books
with no payload.What's the expected result?
400 Bad Request
What's the actual result?
200 OK
, indicating that the book is loanedPUT /books