From 0629f405a97a6033b9dd2515d057751f8dc0f809 Mon Sep 17 00:00:00 2001 From: Westin Miller Date: Thu, 30 May 2024 08:57:27 -0700 Subject: [PATCH] Don't erase --- SchemaBuilder/PostprocessUnordered.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SchemaBuilder/PostprocessUnordered.cs b/SchemaBuilder/PostprocessUnordered.cs index d095509..031e5eb 100644 --- a/SchemaBuilder/PostprocessUnordered.cs +++ b/SchemaBuilder/PostprocessUnordered.cs @@ -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"); } } }