When validating a file, if the schema or file doesn't actually exist, it still passes validation and returns an exit code of 0. If validation of an actual file fails then the exit code is 1. This is a similar behavior that would be expected for invalid files or missing files.
If the schema file doesn't exist or the number of matching yaml files is 0, then the exit code should probably be 1.
When validating a file, if the schema or file doesn't actually exist, it still passes validation and returns an exit code of 0. If validation of an actual file fails then the exit code is 1. This is a similar behavior that would be expected for invalid files or missing files.
If the schema file doesn't exist or the number of matching yaml files is 0, then the exit code should probably be 1.