Sometimes files have no extension. In this case, it seems like jsonschema tries to load them as JSON, which is not always the correct guess. It would be nice if it could detect the file based on its contents or have a new parameter (--type, for example) where one could pass json, yaml or one of the other formats supported by jsonschema.