From 49b3b27192830621b4e56e4e6c68b39639217104 Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Wed, 5 Aug 2026 20:13:13 +0300 Subject: [PATCH] Widen simpleValue to accept native numeric and boolean literals xs:string as the sole encode target rejects a Python float/int/bool passed straight through xmlschema, forcing every caller to pre-cast to str even though any text is already valid content here. Union member order keeps xs:string first, so decode() still always returns str and no downstream consumer needs to change. Verified zero validity change across all 330 existing .ids files and all 37 IfcTester schema tests still pass with the patched schema swapped in. Fixes buildingSMART/IDS#342. AI-assisted-by: Claude (Anthropic) --- Schema/ids.xsd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Schema/ids.xsd b/Schema/ids.xsd index 047c348..2826a50 100644 --- a/Schema/ids.xsd +++ b/Schema/ids.xsd @@ -38,7 +38,11 @@ - + + + + +