Skip to content

Commit

Permalink
Don't erase
Browse files Browse the repository at this point in the history
  • Loading branch information
Equinox- committed May 30, 2024
1 parent b8d3b28 commit 0629f40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SchemaBuilder/PostprocessUnordered.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ void ProcessParticle(XmlSchemaParticle particle)
void ProcessElement(XmlSchemaElement element)
{
if (!erase.Contains(element.SchemaTypeName)) return;
element.SchemaTypeName = new XmlQualifiedName("anyType", "http://www.w3.org/2001/XMLSchema");
// Severing the polymorphic type hierarchy is necessary for validation to pass.
// However doing so prevents the VSCode XML LSP from resolving documentation.
// For now we won't sever the type, and just ignore the error.
// element.SchemaTypeName = new XmlQualifiedName("anyType", "http://www.w3.org/2001/XMLSchema");
}
}
}
Expand Down

0 comments on commit 0629f40

Please sign in to comment.