python-jsonschema / check-jsonschema

A CLI and set of pre-commit hooks for jsonschema validation with built-in support for GitHub Workflows, Renovate, Azure Pipelines, and more!
https://check-jsonschema.readthedocs.io/en/stable
Other
191 stars 38 forks source link

Output of all validated files if verbose: true #312

Closed tschm closed 10 months ago

tschm commented 10 months ago

I would love to see in the output a list of those files that been picked up by your tool and validated. Maybe it's already possible. I am a new user.

sirosen commented 10 months ago

That's a good idea! It's not available today but it makes perfect sense.

I'll need to do some work to make sure the JSON output also includes this info, so it's not quite as simple as just printing the files as they're checked, but it shouldn't be hard.

sirosen commented 10 months ago

This should now be available in v0.26.2!

Please let me know if it's insufficient for your needs or if you run into any trouble with check-jsonschema.

tschm commented 10 months ago

It works. However, you may want to check whether you really need both the verbose: true and the args: ["--verbose"] construct... Many thanks for this

sirosen commented 10 months ago

check-jsonschema is not responsible for the pre-commit verbosity option to which you are referring. Only two verbosity options are defined by this tool: -q/--quiet and -v/--verbose.