ansible.utils icon indicating copy to clipboard operation
ansible.utils copied to clipboard

validate: Add suppress_output option to jsonschema validator

Open lisongmin opened this issue 5 months ago • 3 comments

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

lisongmin avatar Sep 15 '24 11:09 lisongmin