Skip to content

Commit db0b1eb

Browse files
authored
Merge pull request #47 from advanced-rest-client/fix/W-10928298/date-time-only-type
Fix/w 10928298/date time only type
2 parents 03dbb76 + 9d10e61 commit db0b1eb

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-type-document",
33
"description": "A documentation table for type (resource) properties. Works with AMF data model",
4-
"version": "4.2.16",
4+
"version": "4.2.17",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/PropertyDocumentMixin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,9 @@ const mxFunction = (base) => {
190190
return 'Boolean';
191191
case this._getAmfKey(sc.dateTime):
192192
case sc.dateTime:
193-
return 'DateTime';
194193
case this._getAmfKey(rs.dateTimeOnly):
195194
case rs.dateTimeOnly:
196-
return 'Time';
195+
return 'DateTime';
197196
case this._getAmfKey(sc.time):
198197
case sc.time:
199198
return 'Time';

test/property-document-mixin.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('PropertyDocumentMixin', () => {
159159
['http://www.w3.org/2001/XMLSchema#date', 'Date'],
160160
['http://www.w3.org/2001/XMLSchema#time', 'Time'],
161161
['http://www.w3.org/2001/XMLSchema#dateTime', 'DateTime'],
162-
['http://a.ml/vocabularies/shapes#dateTimeOnly', 'Time'],
162+
['http://a.ml/vocabularies/shapes#dateTimeOnly', 'DateTime'],
163163
['http://www.w3.org/2001/XMLSchema#float', 'Float'],
164164
['http://www.w3.org/2001/XMLSchema#long', 'Long'],
165165
['http://www.w3.org/2001/XMLSchema#double', 'Double'],
@@ -204,7 +204,7 @@ describe('PropertyDocumentMixin', () => {
204204
['http://www.w3.org/2001/XMLSchema#date', 'Date'],
205205
['http://www.w3.org/2001/XMLSchema#time', 'Time'],
206206
['http://www.w3.org/2001/XMLSchema#dateTime', 'DateTime'],
207-
['http://a.ml/vocabularies/shapes#dateTimeOnly', 'Time'],
207+
['http://a.ml/vocabularies/shapes#dateTimeOnly', 'DateTime'],
208208
['http://www.w3.org/2001/XMLSchema#float', 'Float'],
209209
['http://www.w3.org/2001/XMLSchema#long', 'Long'],
210210
['http://www.w3.org/2001/XMLSchema#double', 'Double'],

0 commit comments

Comments
 (0)