Supporting Issue: Make Description Field Mandatory
This issue is a supporting issue for #160 in corpus/frontend repo,
Update the backend validation logic for the Corpus Collector API to enforce the description field as mandatory, with a minimum length of 32 characters.
-
• Make the description field required in the upload API (/api/v1/records/upload) -
• Add validation: description.length >= 32 -
• Test cases for: -
• Missing description -
• Short description (<32 chars) -
• Valid upload -
• Coordinate with frontend to ensure consistent validation on both ends
Edited by Vaman Akhil