From ec4d840fb5c24c19146c9e22cf21934417b1417c Mon Sep 17 00:00:00 2001 From: Jan Loewe <jan.loewe@ptb.de> Date: Mon, 28 Mar 2022 16:36:27 +0200 Subject: [PATCH] feat(dcc): update to v3.1.2 --- README.md | 2 +- src/DCC.ts | 2 +- tests/Resources/example.xml.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0e94781..fa8fe5b 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ const doc = DCCDocument.fromXml(xml); // access the properties of the DCC // _attr contains all the attributes of a given element -doc.digitalCalibrationCertificate._attr.schemaVersion // => 3.1.1 +doc.digitalCalibrationCertificate._attr.schemaVersion // => 3.1.2 // _text is used to access the value of the given element doc.digitalCalibrationCertificate.administrativeData.coreData.uniqueIdentifier._text diff --git a/src/DCC.ts b/src/DCC.ts index 4ec1378..726792d 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -2,7 +2,7 @@ import * as si from "./DSI"; import { XMLDate, XMLElement, XMLNumber, XMLBoolean, XMLList, INamespaced, ISchemaInformation, IAttributes } from "./BaseTypes"; import { ensureArray } from "./Util"; -const schemaVersion = "3.1.1"; +const schemaVersion = "3.1.2"; const namespace = "dcc"; const namespaceUrl = `https://ptb.de/${namespace}`; const schemaLocation = `${namespaceUrl}/v${schemaVersion}/dcc.xsd`; diff --git a/tests/Resources/example.xml.ts b/tests/Resources/example.xml.ts index ecb64cf..5bacaef 100644 --- a/tests/Resources/example.xml.ts +++ b/tests/Resources/example.xml.ts @@ -1,4 +1,4 @@ -const dcc = `<dcc:digitalCalibrationCertificate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcc="https://ptb.de/dcc" xmlns:si="https://ptb.de/si" xsi:schemaLocation="https://ptb.de/dcc https://ptb.de/dcc/v3.1.1/dcc.xsd" schemaVersion="3.1.1"> +const dcc = `<dcc:digitalCalibrationCertificate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcc="https://ptb.de/dcc" xmlns:si="https://ptb.de/si" xsi:schemaLocation="https://ptb.de/dcc https://ptb.de/dcc/v3.1.2/dcc.xsd" schemaVersion="3.1.2"> <dcc:administrativeData> <dcc:dccSoftware> <dcc:software> -- GitLab