API Schema Basics
Using OOP Schema can allow your API to easily return values from the payload body (JSON).
Restricts the client to only sending valid data.
Allows for data validation.
Schema validation acts as a contract between client and server, catching errors early and ensuring data integrity before it reaches your business logic.