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 654bc08 commit be6f699Copy full SHA for be6f699
src/plugins/validation/semantic-validators/validators/walker.js
@@ -15,8 +15,8 @@ export function validate({ jsSpec }) {
15
function walk(value, path) {
16
let curr = path[path.length - 1]
17
18
- if(typeof value !== "object" || value === null) {
19
- return
+ if(value === null) {
+ return null
20
}
21
22
///// "type" should always be a string, everywhere.
@@ -78,6 +78,10 @@ export function validate({ jsSpec }) {
78
79
80
81
+ if(typeof value !== "object") {
82
83
+ }
84
+
85
let keys = Object.keys(value)
86
87
if(keys.length) {
0 commit comments