Skip to content

Commit fdb1e80

Browse files
committed
add default values
1 parent ff05ac3 commit fdb1e80

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/schemas/complex-typeArray.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"errors": {
1111
"type": ["string", "null"],
1212
"description": "this is an errors object",
13-
"example": "Error occured here"
13+
"example": "Error occured here",
14+
"default": "hello world"
1415
},
1516
"error": {
1617
"type": ["object", "null"],
@@ -36,6 +37,13 @@
3637
"type": "string"
3738
}
3839
}
40+
},
41+
"booleanThing": {
42+
"type": ["null", "boolean"],
43+
"default": "false"
44+
},
45+
"otherBooleanThing": {
46+
"type": "boolean"
3947
}
4048
}
4149
}

0 commit comments

Comments
 (0)