Are duplicate variants against the VCF standard? I have been trying to understand an error that the EBI's vcf_validator gives when run on my vcf file. Consider this minimal file:

##fileformat=VCFv4.1
##reference=foo
##FORMAT=&lt;ID=GT,Number=1,Type=String,Description="Genotype"&gt;
##contig=&lt;ID=chr12&gt;
#CHROM  POS ID  REF ALT QUAL    FILTER  INFO    FORMAT  Sample1
chr12   529514  .   AACAC   AATAC   0.00    .   .   GT  0/1
chr12   529516  .   C   T   .   PASS    .   GT  0/1


If I then run vcf_validator on it, it complains about:

$ cat $(LC_ALL="C" ~/vcf_validator_linux  -i test.vcf |&amp; awk '/written to/{print $NF}' )
According to the VCF specification, the input file is not valid
Error: Duplicated variant chr12:529516:C&gt;T found. This occurs 2 time(s), first time in line 6.


This is because the two variants are indeed the same. Changing 
AACAC to AATAC at position 529514 just means change C to T at position 529516.

OK, but how is that against the VCF standard? What makes that an invalid VCF file? I am trying to automatically validate input VCF files and stop the analysis if they're invalid, but this seems like a perfectly valid file. Why is  vcf_validator not letting it through? The vcf-validator perl script from vcftools doesn't complain about this. So is it just a bug in  EBI's vcf_validator or is it really somehow illegal to have duplicate variants in a VCF file according to the specs?
No. The only point the specification makes is that:


  It is permitted to have multiple records with the same POS


I suspect this is intended to let the file list different variants occurring at the same position, but this incidentally allows duplicate variants.

This said, you probably don't want duplicate variants, because it will mess with any statistics you apply over the variants, and will unnecessarily clutter the file and slow down processing, if this happens a lot. You might also get variant annotations on one variant but not another, which can become a problem depending on how you query your variants.