3.9 Field Validations

Perform validation on the server before business processing. Validate mandatory fields and optional fields supplied in the request, including nested objects and collections. Enforce the expected type, length, range, format, permitted values, and relationships between fields. Client-side validation provides user feedback and does not replace server-side checks.

Free-text fields remain subject to length and business rules. Preserve legitimate text and apply output encoding when it is displayed. Apply request and parser limits before expensive processing. Reject invalid requests without continuing business processing.