dazzling-sky / COMP4111-project

COMP4111 project - RESTful Web Service for Library Book Management
https://course.cse.ust.hk/comp4111/project.html
0 stars 0 forks source link

[Add Book] possible to add book with negative year #24

Open oscarngncc opened 4 years ago

oscarngncc commented 4 years ago

Issue

It's possible to add a book with negative value for year: image

Expected output: 400 Bad request or any custom behavior Actual output: 201 Created with the book actually added to the table

Result added to the database: image

comp4111ta commented 4 years ago

Indeed, that's something that can be improved, yet it is still an undefined behavior. We regard all undefined behaviors as valid in the grading.