json_shield 0.1.1
json_shield: ^0.1.1 copied to clipboard
Dependency-free JSON decoding guard for fromJson-style models. Shape checks, typed exceptions with cause and trace, full-traversal list decoding with aggregated failures, redacted-by-default payloads.
0.1.1 #
- Fix license copyright holder; remove the placeholder repository URL shipped in 0.1.0 (a real repository link returns in a future release).
- Docs: align the usage snippet with
guard.verboseconsole-logging behavior.
0.1.0 #
Initial release.
guard.decode<T>— single JSON object decoding with shape guards and exception wrapping (cause,causeTrace, optionalcontextlabel).guard.decodeList<T>— full-traversal array decoding; every element failure is collected and thrown at once asDecodeListException.guard.verbose— opt-in diagnostics: raw payload attachment plus console logging of every failure at exception escape points; redacted and silent by default.- Zero dependencies, pure Dart.