json_sentinel library
Lightweight runtime JSON key and type validation for Dart.
Classes
- BatchValidationResult
- The aggregated result of a JsonSentinel.validateBatch call.
- JsonSentinel
- Lightweight runtime JSON key and type validation with a configurable logger.
- JsonValidationResult
- The result of a JsonSentinel.validate call.
Typedefs
-
JsonLogFn
= void Function(String message, {Object? error, bool? escalate, Map<
String, Object?> ? extras, StackTrace? stackTrace}) - A logging callback invoked by JsonSentinel on every validation failure.