Python-json-patch-rules

Latest version: v0.3.2

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

- **Configurable Rule-Based Validation**: Enforce granular rules that determine which modifications are permissible on your JSON objects.
- **Support for Wildcards and Placeholders**: Utilize dynamic placeholders and wildcards (`*`, `{*}`, `[n]`, etc.) for flexible rule definitions that adapt to varying JSON structures.
- **Enhanced Data Integrity**: Ensure that only authorized modifications are applied, safeguarding the structure and consistency of your data.
- **Selective Path Replacement**: Introduce special modifiers like `:unique:` and `:replace:` to manage how lists and properties are updated, ensuring that changes are made without duplicating or improperly altering data.

Improvements

- Initial implementation of the core system allowing comprehensive path evaluations and rule enforcement for JSON patch operations.
- Optimization of pattern matching for increased efficiency in processing complex JSON structures.

Known Issues

- There are no critical issues at release, but we anticipate enhancements in the handling of nested arrays and complex object graphs in future updates.

Installation

To install the library, use pip:

bash
pip install python-json-patch-rules


Future Plans

Looking ahead, we aim to expand the library’s capabilities with:
- Improved error handling and diagnostic messaging for rule violations.
- Enhanced support for nested and complex JSON schemas.
- Additional customization options for rule definitions.

We appreciate the community’s feedback and contributions to help evolve this library further. Enjoy crafting secure and compliant JSON patch operations with `python-json-patch-rules`!

0.2.0alpha

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.