Skip to content

Commit d242fb3

Browse files
committed
test(build): Test patternProperties types
1 parent 411adb7 commit d242fb3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/array.test.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,31 @@ buildTest({
112112
}
113113
}
114114
}, {ids: [1, 2]})
115+
116+
buildTest({
117+
'title': 'pattern properties array',
118+
'type': 'object',
119+
'properties': {
120+
'args': {
121+
'type': 'array',
122+
'items': [
123+
{
124+
'type': 'object',
125+
'patternProperties': {
126+
'.*': {
127+
'type': 'string'
128+
}
129+
}
130+
},
131+
{
132+
'type': 'object',
133+
'patternProperties': {
134+
'.*': {
135+
'type': 'number'
136+
}
137+
}
138+
}
139+
]
140+
}
141+
}
142+
}, {args: [{a: 'test'}, {b: 1}]})

0 commit comments

Comments
 (0)