From fe685069af788d27e10299925a813a3bfd65d563 Mon Sep 17 00:00:00 2001 From: Carolina Wright Date: Mon, 4 Apr 2022 14:32:59 -0300 Subject: [PATCH 1/3] fix(W-10928298): date time only range type was computing its type to Time instead of DateTime --- src/PropertyDocumentMixin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PropertyDocumentMixin.js b/src/PropertyDocumentMixin.js index cc039ce..823a473 100644 --- a/src/PropertyDocumentMixin.js +++ b/src/PropertyDocumentMixin.js @@ -190,10 +190,9 @@ const mxFunction = (base) => { return 'Boolean'; case this._getAmfKey(sc.dateTime): case sc.dateTime: - return 'DateTime'; case this._getAmfKey(rs.dateTimeOnly): case rs.dateTimeOnly: - return 'Time'; + return 'DateTime'; case this._getAmfKey(sc.time): case sc.time: return 'Time'; From 2a5ce3338daf91ea8b4f06e246e04a929dfff2cf Mon Sep 17 00:00:00 2001 From: Carolina Wright Date: Mon, 4 Apr 2022 14:33:46 -0300 Subject: [PATCH 2/3] test(W-10928298): date time only type is computed as DateTime --- test/property-document-mixin.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/property-document-mixin.test.js b/test/property-document-mixin.test.js index fac291c..1d40755 100644 --- a/test/property-document-mixin.test.js +++ b/test/property-document-mixin.test.js @@ -159,7 +159,7 @@ describe('PropertyDocumentMixin', () => { ['http://www.w3.org/2001/XMLSchema#date', 'Date'], ['http://www.w3.org/2001/XMLSchema#time', 'Time'], ['http://www.w3.org/2001/XMLSchema#dateTime', 'DateTime'], - ['http://a.ml/vocabularies/shapes#dateTimeOnly', 'Time'], + ['http://a.ml/vocabularies/shapes#dateTimeOnly', 'DateTime'], ['http://www.w3.org/2001/XMLSchema#float', 'Float'], ['http://www.w3.org/2001/XMLSchema#long', 'Long'], ['http://www.w3.org/2001/XMLSchema#double', 'Double'], @@ -204,7 +204,7 @@ describe('PropertyDocumentMixin', () => { ['http://www.w3.org/2001/XMLSchema#date', 'Date'], ['http://www.w3.org/2001/XMLSchema#time', 'Time'], ['http://www.w3.org/2001/XMLSchema#dateTime', 'DateTime'], - ['http://a.ml/vocabularies/shapes#dateTimeOnly', 'Time'], + ['http://a.ml/vocabularies/shapes#dateTimeOnly', 'DateTime'], ['http://www.w3.org/2001/XMLSchema#float', 'Float'], ['http://www.w3.org/2001/XMLSchema#long', 'Long'], ['http://www.w3.org/2001/XMLSchema#double', 'Double'], From 9d10e61ddb1186cf0edddfc19df75a1dd5f7a625 Mon Sep 17 00:00:00 2001 From: Carolina Wright Date: Mon, 4 Apr 2022 14:34:17 -0300 Subject: [PATCH 3/3] build: bump version to 4.2.17 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3b7cefb..a2e19de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@api-components/api-type-document", - "version": "4.2.16", + "version": "4.2.17", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ded08ea..4f68dd8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/api-type-document", "description": "A documentation table for type (resource) properties. Works with AMF data model", - "version": "4.2.16", + "version": "4.2.17", "license": "Apache-2.0", "main": "index.js", "module": "index.js",