changes schemaReference/@ref to schemaReference/@file