ansible.utils
ansible.utils copied to clipboard
validate: Add suppress_output option to jsonschema validator
SUMMARY
Add suppress_output option to jsonschema validator
ISSUE TYPE
- Feature Pull Request
COMPONENT NAME
validate
ADDITIONAL INFORMATION
When validate a json schema failed, the error block contains the source data and criteria. And the data and criteria are usually too large, so we can't find the error message quickly. Also the data may contains sensitive info that we don't want to show out.
This PR provides a way to suppress the data and criteria in the error block