Validates YAML file against a JSON Schema, if the schema is specified