Frends.JSON.Validate / 2.0.0
Summary
Checks a JSON document against a JSON Schema and returns the individual violations rather than only a verdict.
Typical use — screening inbound payloads at the boundary, so bad data is rejected with a reason instead of failing deeper in
2.0.02026-08-11
Changed
- The task now targets .NET 8.
- Added
ThrowErrorOnFailureandErrorMessageOnFailureoptions: you can now choose whether the task throws an exception or returns a failed result when an error occurs, and optionally provide a custom error message. - Added a
CancellationTokenparameter to support task cancellation. - The
Resultobject now includes anErrorproperty with details when the task fails. - Breaking Renamed the
ThrowOnInvalidJsonoption toFailOnInvalidJsonto better reflect its purpose: it controls whether invalid JSON is treated as an error at all, independent of whether that error is thrown or returned (which is controlled byThrowErrorOnFailure). Update any existing task configurations to useFailOnInvalidJson.
1.0.02023-06-15
Added
- Initial implementation