Jsonmodel

Latest version: v3.4

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

Scan your dependencies

Page 3 of 4

2.1

----------------
* Bug fix for ingestion of keywords with non-matching datatypes
* Updates to unittests

2.0

----------------
* **UPGRADE** Query method added to class to validate criteria and evaluate records
* **UPGRADE** Overhaul of internal class organization to ensure json valid reporting
* **FEATURE ADDED** 'min_value' and 'max_value' extended to string fields
* **FEATURE ADDED** 'excluded_values' added to component conditionals
* **FEATURE ADDED** 'greater_than' and 'less_than' added to component conditionals
* **DEPRECATED** 'integer_only' conditional has been replaced by 'integer_data'
* Fixed bug with init check of schema key names for item designator patterns
* Added missing validation for correct 'contains_either' syntax in model init
* Updates to documentation and unittests

1.6

----------------
* **FEATURE ADDED** 'field_title' added to component criteria
* Updates to documentation and unittests

1.5

----------------
* **FEATURE ADDED** 'metadata' and 'description' added to top-level model declaration
* Metadata dictionary allows developer to inject arbitrary object metadata into model
* Description string allows developer to add a description to the model itself
* Additional documentation and unittest improvements

1.4

----------------
* **FEATURE ADDED** 'field_metadata' added to list of field conditional options
* Dictionary for metadata about a field which is ignored during validation checks
* Additional documentation and unittest improvements

1.3

----------------
* **FEATURE ADDED** jsonModel.ingest(**kwargs)
* Method to construct a model valid output from arbitrary keyword args
* Keywords which do not validate against top-level keys in schema are ignored
* Ignored keywords receive default values (if declared) or empty values from model
* **DEPRECATED** jsonModel.component has been removed
* Validate individual components using jsonModel.validate(input_data, path_to_root='')
* input_dict arg has been changed to input_data in validate positional arguments
* Additional documentation and unittest improvements

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.