validation
Request-body validation helpers shared by every route that parses a JSON
body with a schema from @dbx-tools/shared-mastra.
A schema library’s own issue text quotes the received body back, so it is logged rather than returned. What a client gets instead is a stable message plus the field paths that failed, which is enough to highlight the offending inputs.