Rule Backend

Request Validation

Validate request bodies with a schema validator

backendvalidationsecurity
CLAUDE.md

Validate all incoming request bodies with a schema validator like Zod, Joi, or JSON Schema. Return 400 with specific field errors. Never let invalid data reach your business logic.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl