a file containing an dictionary with an empty value (valid json) produces an error:
docker run --volume "$PWD":/data jamescooke/openapi-validator -prs foo.json
[Error] Invalid input file: foo.json. See below for details.
Syntax error: empty string near e": {"": "