You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement API validation for a maximum character limit for the "Description" field in the "Add Product" modal. This validation should ensure that any product description entered by the user does not exceed the specified character limit. If the limit is exceeded, an appropriate error message should be returned to the frontend.
Acceptance Criteria
Ensure a maximum character limit of 170 characters for the "Description" field when adding or editing a product.
If a user attempts to submit a description that exceeds the character limit, the backend should reject the request and return a validation error message.
The error message returned should indicate that the description exceeds the maximum allowed length and specify the character limit.
Olnuel
changed the title
[FIX]: [PHOENIX] Set Maximum Character Limit Validation for Description Field in Add Product Modal
[FIX]: [PHOENIX] [BE] Set Maximum Character Limit Validation for Description Field in Add Product Modal
Aug 24, 2024
Description
Implement API validation for a maximum character limit for the "Description" field in the "Add Product" modal. This validation should ensure that any product description entered by the user does not exceed the specified character limit. If the limit is exceeded, an appropriate error message should be returned to the frontend.
Acceptance Criteria
Endpoint
POST /api/products
Links
|
FIGMA LINK
https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=3037-3128&t=VEj4y3G0vEn4g18k-4
https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=2961-3058&t=VEj4y3G0vEn4g18k-4
https://www.loom.com/share/18105e39bed34346a4cce091e122b4a1?sid=21b17569-1f3b-476e-acac-6009a2331cde
https://www.loom.com/share/9d6413c63bde448f904cdf6df14d6075?sid=0470e741-1088-48fb-8d99-2bb8edc77064
Images
The text was updated successfully, but these errors were encountered: