We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55c19f commit b7604daCopy full SHA for b7604da
test/array.test.js
@@ -61,6 +61,34 @@ buildTest({
61
dates: [new Date(1), new Date(2)]
62
})
63
64
+buildTest({
65
+ title: 'dates tuple $ref',
66
+ definitions: {
67
+ dateTime: {
68
+ type: 'string',
69
+ format: 'date-time'
70
+ }
71
+ },
72
+ type: 'object',
73
+ properties: {
74
+ dates: {
75
+ type: 'array',
76
+ minItems: 2,
77
+ maxItems: 2,
78
+ items: [
79
+ {
80
+ $ref: '#/definitions/dateTime'
81
82
83
84
85
+ ]
86
87
88
+}, {
89
+ dates: [new Date(1), new Date(2)]
90
+})
91
+
92
buildTest({
93
title: 'string array',
94
type: 'object',
0 commit comments