# More reliable document validation and safer patches

**Version:** v2.42.2

**Published:** October 26, 2026

## Improvements

- Media Library uploads: Clearer recovery guidance for rejected options, empty sources, redirect limits, and expiring sessions.

## Fixes

- Document validation: Fixed validation against deployed schemas so built-in checks, including slug structure and uniqueness, run correctly.
- `patch_documents` tool: Rejects patches that would change or remove a document's `_type`, which most often happens when an object value is set at the document root instead of under its field name. Nothing is written, and the error shows how to set the object field instead.

