* remove compat files and mock imports
* updates
* updates
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update jsonschema validator
Update jsonschema validator to support newer drafts. It now supports
drafts 2019-09 and 2020-12.
The logic for choosing the jsonschema validator class has changed so
that the following enhancements are available:
- When no draft is explicitly specified we now use use the validator
draft that is specified in the "$schema" field of the criteria. This
is done by the jsonschema module by default and should support
possible future drafts without any changes to this code.
- Optionally allow to disable format checks in the code. As format
checks are not required by the spec there might be situations where
people want to disable them.
* Update requirements.txt
* Skip all tests which dependas on jsonschema 4.5
* jsonschema: Refactor code to support python 3.6
* Fix jsonschema requirements for python<3.7
* jsonschema: Update code for compatibility
* Better documentation and error handling for missing schema specifications
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>
Co-authored-by: ashwini-mhatre <mashu97@gmail.com>
Update validate to use 2.11 ArgumentSpecValidator if available
SUMMARY
fixes: #85
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: Bradley A. Thornton <bthornto@redhat.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
Add support for the validation of formats to the json schema validator
SUMMARY
fixes: #81
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: Ganesh Nalawade <None>
* Initial commit
* Add validate lookup/filter/test plugin
* Update agrspec validation logic
* Add validate lookup/filter/test plugin
* minor updates
* remve unwanted code
* doc update
* update jsonschema validator plugin
* Add validate sub-plugin configurable option
* fix black failures
* fix ansible-test validate module issue
* fix santiy issues
* more santiy fixes
* remove GA black formatting
* add black
* fix black formatting
* fix black issues
* Add integration test and fix review comments
* add jsonschema to requirments
* fix ci issues
* update GA to install requirments
* fix GA to install requirments
* move ValidateBase to base file
* fix library not found issue in CI
* add unit test
* update_fact plugin + units
* Update README, add doc
* Add some update_fact integration tests
* Add missing test for not (index_of)
* Update fact doc updates
* Update rst from doc
* Examples as yaml
* Some developer notes (#11)
Co-authored-by: cidrblock <brad@thethorntons.net>
* Updated self._task.args from updated_data provided back from aav
* Argspec default fix (#12)
* Return data updated with default values from aav.validate()
* Update aav docs
Co-authored-by: cidrblock <brad@thethorntons.net>
* update_fact plugin + units
* Update README, add doc
* Add some update_fact integration tests
* Add missing test for not (index_of)
* Update fact doc updates
* Update rst from doc
* Examples as yaml
* Updated self._task.args from updated_data provided back from aav
* recheck
* Plugin cleanup (#14)
* WIP
* Add argspec validation to plugins, restructure tests
* Update docs
* Pre PY3.8 compat changes
* Run black to fix quotes
* Seems the order of missing keys varies between 2.9 and 2.10
* More error ordering issues fixed during argspec validation
* More black, wrong version
Co-authored-by: cidrblock <brad@thethorntons.net>
* update_fact plugin + units
* Update README, add doc
* Add some update_fact integration tests
* Update fact doc updates
* Update rst from doc
* Examples as yaml
* Updated self._task.args from updated_data provided back from aav
* recheck
Co-authored-by: cidrblock <brad@thethorntons.net>