Skip to content

Commit 5f599e0

Browse files
committed
Add array of types
1 parent 684205c commit 5f599e0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

examples/data/array-of-types.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"schema": {
3+
"type": "object",
4+
"properties": {
5+
"foo": {
6+
"type": [ "number", "string" ],
7+
"maxLength":2,
8+
"minLength":0,
9+
"minimum":3,
10+
"maximum":10
11+
}
12+
}
13+
},
14+
"form": [
15+
{
16+
"key":"foo",
17+
"title":"Test",
18+
"type":"text"
19+
}
20+
]
21+
}

examples/example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ <h3>Schema</h3>
281281
{ name: "Bootstrap Grid", data: 'data/grid.json' },
282282
{ name: "Complex Key Support", data: 'data/complex-keys.json' },
283283
{ name: "Array", data: 'data/array.json' },
284+
{ name: "Array of types", data: 'data/array-of-types.json' },
284285
{ name: "Tab Array", data: 'data/tabarray.json' },
285286
{ name: "Deep Array", data: 'data/deep-array.json' },
286287
//{ name: "Array Radio-Buttons", data: 'data/array-radiobuttons.json' },

0 commit comments

Comments
 (0)