Skip to content
Snippets Groups Projects

Update to DCC Schema V3.2

Merged Jan Loewe requested to merge feat-dcc-v-3-2 into master
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
+ 9
0
@@ -783,7 +783,12 @@ export class StatementMetaDataType extends DCCXMLElement {
norm?: DCCXMLElement[];
reference?: DCCXMLElement[];
declaration?: RichContentType;
// region choice
valid?: DCCXMLBoolean;
validXMLList?: DCCXMLList;
// endregion choice
date?: DCCXMLDate;
period?: DCCXMLElement;
respAuthority?: ContactType;
@@ -806,7 +811,11 @@ export class StatementMetaDataType extends DCCXMLElement {
if (el.norm) this.norm = ensureArray(el.norm).map((x) => new DCCXMLElement(x));
if (el.reference) this.reference = ensureArray(el.reference).map((x) => new DCCXMLElement(x));
if (el.declaration) this.declaration = new RichContentType(el.declaration);
// choice
if (el.valid) this.valid = new DCCXMLBoolean(el.valid);
else if (el.validXMLList) this.validXMLList = new DCCXMLList(this.validXMLList);
if (el.date) this.date = new DCCXMLDate(el.date);
if (el.period) this.period = new DCCXMLElement(el.period);
if (el.respAuthority) this.respAuthority = new ContactType(el.respAuthority);
Loading