From 3770eae3550da64a4418d8081c674426de49bbc0 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 9 Oct 2024 19:31:58 +0200 Subject: [PATCH] fix array with null data --- src/parser/xsd/simpleType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/xsd/simpleType.js b/src/parser/xsd/simpleType.js index 399d5291..4fb16264 100644 --- a/src/parser/xsd/simpleType.js +++ b/src/parser/xsd/simpleType.js @@ -50,7 +50,7 @@ class SimpleType extends XSDElement { let memberTypes = []; memberTypes.union = true; // Set the union flag to true this.union.postProcess(definitions); - if (this.union.memberTypes) { + if (this.union.memberTypes && !this.union.memberTypes.includes(null)) { this.union.memberTypes.forEach(function(t) { t.postProcess(definitions); memberTypes.push(t.type);