Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate: Add suppress_output option to jsonschema validator #374

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lisongmin
Copy link

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

Copy link
Contributor

@lisongmin
Copy link
Author

pre-commit.ci autofix

Copy link
Contributor

@Ruchip16 Ruchip16 self-requested a review September 18, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant