Description
The asset pairing routes accept raw body inputs without structural validation, risking internal server errors if the frontend sends a malformed request.
Technical Requirements
- Implement
Zod or Joi schema validation on all POST/PUT endpoints (e.g., adding a relayer or altering configuration).
- Return a clear
400 Bad Request with exact field error messages if validation fails.
Description
The asset pairing routes accept raw body inputs without structural validation, risking internal server errors if the frontend sends a malformed request.
Technical Requirements
ZodorJoischema validation on all POST/PUT endpoints (e.g., adding a relayer or altering configuration).400 Bad Requestwith exact field error messages if validation fails.