Skip to content

πŸ§ͺ Issue 3 – Add Field ValidationsΒ #9

@hammad-ibrahim

Description

@hammad-ibrahim

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

Labels

Developmentimplementing code to project

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions