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", 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'; 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'],