v1.2.0
Full Changelog: https://github.com/dncgmh/simp-validator/commits/v1.2.0
Breaking Changes:
GitHub Copilot: Here's a more detailed version of the breaking changes:
- The library will no longer throw any errors. Instead, it will return a
ValidationResult
object with asuccess
property set tofalse
, amessage
property containing the error message, and adetails
property containing the error details. - The
toSchema
function will now return an object instead of a string. The object will contain the schema definition in JSON format. - The
validate
function has been fixed to properly handle arrays and dates. - The duplicated
validate
function has been removed. - The messages have been updated to remove magic string messages and improve readability.
- The library now has 100% code coverage, meaning that all lines of code are covered by unit tests.