alenkacz / gradle-json-validator

Gradle plugin for json validation
MIT License
10 stars 8 forks source link

How does the validator choose which files to validate? #12

Closed tzvatot closed 6 years ago

tzvatot commented 6 years ago

If I want to validate ALL the jsons in the project, I can provide the root directory. But it's not clear from the README how will the validator identify the files to validate? will it scan for *.json files? or any file that is in the directory will be validated?

tzvatot commented 6 years ago

Duplicated

alenkacz commented 6 years ago

@tzvatot sorry for such a late reply - yes, the behavior right not is that it will fail for non-json file. I'll implement #10 this week to allow the use case you are describing

alenkacz commented 6 years ago

@tzvatot please use onlyWithJsonExtension in 1.2.0

tzvatot commented 6 years ago

Thanks @alenkacz . Does it run recursively on the target folder?