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

Add json validator example #20

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

romanodanilo
Copy link
Contributor

@romanodanilo romanodanilo commented Aug 5, 2024

Description

Add example to show how to use base library for a custom checker bundle. In particular the example shows a json validation executed with base library configuration and result objects usage

How was the PR tested?

  1. Unit-test with sample data. All unit tests passed.

Notes

Example execution

python json_validator.py \
    -c config/invalid.xml
2024-08-05 10:38:11,946 - Initializing checks
2024-08-05 10:38:11,946 - JsonFile = data/invalid.json
2024-08-05 10:38:11,946 - resultFile = json_bundle_report.xqar
2024-08-05 10:38:11,947 - Issues found - 1
2024-08-05 10:38:11,947 - Report file written to json_bundle_report.xqar
2024-08-05 10:38:11,947 - Done

Signed-off-by: romanodanilo <[email protected]>
@romanodanilo romanodanilo merged commit 11eef15 into develop Aug 6, 2024
7 checks passed
@romanodanilo romanodanilo deleted the danilo/add_json_example branch August 6, 2024 09:33
hoangtungdinh pushed a commit that referenced this pull request Aug 21, 2024
hoangtungdinh pushed a commit that referenced this pull request Aug 21, 2024
Signed-off-by: romanodanilo <[email protected]>
Signed-off-by: romanodanilo <[email protected]>
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.

2 participants