Skip to content

VSN-1999 : Rectifying logics related to passengers crud operatons in preparation.

yassine.elazami a demandé de fusionner VSN-1999 vers develop

Merge Request Description

This merge request introduces several validation rules to ensure data integrity and consistency across the application. Each validation is described semantically below.


Presence Validations

Mandatory Fields

These validations enforce that certain attributes must be present before a record can be saved. They prevent incomplete data from being persisted and ensure that essential information is always provided.


Format Validations

Structured Input Requirements

These validations check that specific fields follow a defined format, such as email addresses, phone numbers, or identifiers. They guarantee that user input adheres to expected patterns, reducing the risk of invalid or unusable data.


Length Validations

Minimum and Maximum Constraints

These validations restrict the length of input values to ensure they are neither too short nor excessively long. They help maintain consistency, usability, and compliance with business rules.


Numerical Validations

Range and Value Enforcement

These validations confirm that numerical fields contain valid numbers within acceptable ranges. They prevent negative values where inappropriate and ensure logical consistency in calculations and reporting.


Uniqueness Validations

Duplicate Prevention

These validations ensure that certain attributes remain unique across records, such as usernames or identifiers. They safeguard against duplication and maintain the integrity of key data points.


Custom Validations

Domain-Specific Rules

These validations implement specialized checks tailored to business logic. They handle cases that go beyond standard validation types, ensuring compliance with unique operational requirements.


Summary

By introducing these validations, the application gains stronger safeguards against invalid data entry, improves reliability, and aligns stored information with business rules and user expectations.

Closes VSN-1999

Rapports de requête de fusion