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

fix(dcc): add missing attributes

parent 159dc401
No related branches found
No related tags found
No related merge requests found
import { Element, js2xml, xml2js } from "xml-js"; import { Element, js2xml, xml2js } from "xml-js";
import { DigitalCalibrationCertificateType, DCC } from "./DCC"; import { DigitalCalibrationCertificateType, DCC } from "./DCC";
import { DSI } from "./DSI";
export class DCCDocument { export class DCCDocument {
_declaration: unknown; _declaration: unknown;
...@@ -15,6 +16,10 @@ export class DCCDocument { ...@@ -15,6 +16,10 @@ export class DCCDocument {
return new DCCDocument({ return new DCCDocument({
digitalCalibrationCertificate: new DigitalCalibrationCertificateType({ digitalCalibrationCertificate: new DigitalCalibrationCertificateType({
_attr: { _attr: {
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"xsi:schemaLocation": `${DCC.namespaceUrl} ${DCC.schemaLocation}`,
"xmlns:dcc": DCC.namespaceUrl,
"xmlns:si": DSI.namespaceUrl,
schemaVersion: DCC.schemaVersion, schemaVersion: DCC.schemaVersion,
}, },
}), }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment