Skip to content
New issue

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

USER STORY: Book fields validation #36

Closed
7 tasks done
ecabanasv opened this issue Mar 28, 2023 · 0 comments
Closed
7 tasks done

USER STORY: Book fields validation #36

ecabanasv opened this issue Mar 28, 2023 · 0 comments
Assignees

Comments

@ecabanasv
Copy link
Owner

ecabanasv commented Mar 28, 2023

As an admin, I want to ensure that all fields for the Book model are properly validated, so that the database contains accurate and reliable data.

Acceptance criteria:

  • The ISBN field should only accept valid ISBN-10 or ISBN-13 codes.
  • The price field should only accept positive decimal values up to 10000.
  • The stock field should only accept positive integer values up to 10000.
  • The rating field should only accept float values between 0 and 5.
  • The publication date field should only accept a valid date.
  • Pages field should only accept positive integer values up to 10000.
  • The language field should only accept alphabetic characters.
@ecabanasv ecabanasv added this to the EPIC: Bookstore management milestone Mar 28, 2023
@ecabanasv ecabanasv self-assigned this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant