validate: Add suppress_output option to jsonschema validator#374
validate: Add suppress_output option to jsonschema validator#374lisongmin wants to merge 2 commits intoansible-collections:mainfrom
Conversation
6ee10f6 to
b4a0a01
Compare
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 23s |
0448135 to
d8f536a
Compare
6b92fc6 to
bf6425d
Compare
|
pre-commit.ci autofix |
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 25s |
|
@lisongmin thanks for raising this PR, just a small request could you kindly add changelog and integration tests to validate this following change? |
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
ad02898 to
778faf6
Compare
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 04s |
|
Done
|
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 54s |
|



SUMMARY
Add suppress_output option to jsonschema validator
ISSUE TYPE
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