Skip to main content

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​