Skip to content
Snippets Groups Projects
Verified Commit f48a1e98 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

feat(listType): change choice to maxOccurs="unbounded"

parent b7826991
No related branches found
No related tags found
1 merge request!4Update to DCC Schema V3.2
...@@ -1222,7 +1222,6 @@ export class ListType extends DCCXMLElement { ...@@ -1222,7 +1222,6 @@ export class ListType extends DCCXMLElement {
// region choice // region choice
list?: ListType[]; list?: ListType[];
quantity?: QuantityType[]; quantity?: QuantityType[];
// endregion choice // endregion choice
constructor(el: Partial<ListType> = {}) { constructor(el: Partial<ListType> = {}) {
...@@ -1235,9 +1234,9 @@ export class ListType extends DCCXMLElement { ...@@ -1235,9 +1234,9 @@ export class ListType extends DCCXMLElement {
if (el.dateTime) this.dateTime = new DCCXMLDate(el.dateTime); if (el.dateTime) this.dateTime = new DCCXMLDate(el.dateTime);
else if (el.dateTimeXMLList) this.dateTimeXMLList = new DCCXMLList(el.dateTimeXMLList); else if (el.dateTimeXMLList) this.dateTimeXMLList = new DCCXMLList(el.dateTimeXMLList);
// choice // choice but maxOccurs = unbounded
if (el.list) this.list = ensureArray(el.list).map((x) => new ListType(x)); if (el.list) this.list = ensureArray(el.list).map((x) => new ListType(x));
else if (el.quantity) this.quantity = ensureArray(el.quantity).map((x) => new QuantityType(x)); if (el.quantity) this.quantity = ensureArray(el.quantity).map((x) => new QuantityType(x));
if (el.usedMethods) this.usedMethods = new UsedMethodListType(el.usedMethods); if (el.usedMethods) this.usedMethods = new UsedMethodListType(el.usedMethods);
if (el.usedSoftware) this.usedSoftware = new SoftwareListType(el.usedSoftware); if (el.usedSoftware) this.usedSoftware = new SoftwareListType(el.usedSoftware);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment