Validation
Validation in forge happens in two common layers: schema fields and API serializers. Start with schema constraints, then add API validation where needed.
Schema field constraints​
Use field options like Required, MaxLength, and Default to enforce data
rules at the model level. See the Schema System feature
for a full list of field options.
API validation​
Serializers validate incoming API payloads before they reach your models. The REST API guide covers serializer setup and request handling.
Next steps​
- Review the Models guide for schema patterns.
- Use the REST API guide to validate request data.