0.26.0 - 2024-04-11
Added
Added ability to specify a custom max-evaluation-depth. If you find yourself with a legitimate use case, and you are certain you need to increase this limit, and you are cetain you know what you are doing:
- use
--max-depth i
argument on the commandline wherei
is an integer 1 to 999. - or use
max_validation_depth=i
in the validator arguments if using PySHACL as a library. - Fixes #224
Add a "SHACLExecutor" context to be passed down to all Shape and Constraint objects, to allow them to operate in a common mode with common configuration values, as chosen by the mechanism that starts them (eg, the Validator). - This will allow for further configuration of "modes of operation" for PySHACL in the future, to allow for forms of exectors other than "Validator".
Changed
Bumped Black version to 24.3.0 to mitigate CVE.
Bumped Poetry and Poetry-Core version to latest-and-greatest (fixes a bunch of long-standing bugs, I highly recommend updating).
cli main()
no longer returns and int
, it now emits sys.exit(code)
and never returns.
Fixed
Fixed typing on Python 3.8 and 3.12 (PRs #192 and #223). Thanks @ajnelson-nist
Fixed auto-generated validation message for sh:not
when more than one sh:not
is used on a constraint.