utils library

Optional helpers for consuming Standard Schema issues.

Mirrors upstream's separate, optional @standard-schema/utils package. Kept out of the main standard_schema.dart barrel so it stays opt-in: import it explicitly with import 'package:standard_schema/utils.dart';.

Functions

getDotPath(StandardIssue issue) String?
Returns the dot-notation path of an issue (for example user.tags.1), or null when the issue has no path or any segment is not a string or number.

Exceptions / Errors

SchemaError
An Exception wrapping the issues of a failed Standard Schema validation, exposing the first issue's message. The standard way to throw on failure.