Meanwhile this has been added to docker-compose as docker-compose config. Validating your file now is as simple as
docker-compose -f docker-compose.yml config. As always, you can omit the -f docker-compose.yml part when running this in the same folder as the file itself or having the COMPOSE_FILE environment variable pointing to your file.