-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Developmentimplementing code to projectimplementing code to project
Milestone
Description
Summary
Apply DRF validation logic (e.g., positive quantities, valid email formats, stock limits).
Scenario
Feature: Serializer Field Validations
As a developer
I want to validate serializer fields
So that no invalid data can be saved to the database
Scenario: Reject negative stock values
Given a ProductSerializer
When a product with a negative stock value is submitted
Then the serializer should raise a validation error
Checklist
-
Add validate_ methods in serializers.
-
Add unit tests for common validation scenarios.
Related Branch
03_serializers_api
Milestone
03 β Serializers & DRF API
Metadata
Metadata
Assignees
Labels
Developmentimplementing code to projectimplementing code to project