Optionalerrors?: ValidationError[]Use getErrorsFor() instead for
per-property error inspection with type-safe property selectors. The errors array on
ObjectSchemaBuilder validation results will be removed in a future major version.
Returns a nested validation error for the property selected by the selector function.
This is the recommended way to inspect validation errors — it provides type-safe,
per-property error details including isValid, errors, and seenValue.
Prefer this over the deprecated errors array.
Optionalselector: (a callback function to select property from the schema.
Returns a list of all property validation results that have direct
validation errors. Each entry exposes .descriptor (with
.toJsonPointer() for the property's path) and .errors.
This is useful for collecting all errors with their full JSON Pointer paths, e.g. for building RFC 9457 Problem Details responses.
A flat list of validation errors.