Skip to content

Commit ed0b827

Browse files
momo1006w666
andauthored
Convert ref attributes to list (#1168)
Co-authored-by: Vasily Martynov <[email protected]>
1 parent 7c38c03 commit ed0b827

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wsdl/elements.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ export class ElementElement extends Element {
263263
let elem: any = {};
264264
typeStorage[typeName] = elem;
265265

266+
if (isMany && 'maxOccurs' in typeElement) {
267+
typeElement.maxOccurs = this.$maxOccurs;
268+
}
269+
if (Boolean(this.$minOccurs) && 'minOccurs' in typeElement) {
270+
typeElement.minOccurs = this.$minOccurs;
271+
}
272+
266273
const description = typeElement.description(definitions, xmlns);
267274
if (typeof description === 'string') {
268275
elem = description;

0 commit comments

Comments
 (0)