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 731df8e commit 0544f41Copy full SHA for 0544f41
src/plugins/validate-semantic/validators/oas3/refs.js
@@ -10,7 +10,7 @@ export const validateOAS3RefsForRequestBodiesReferenceRequestBodyPositions = ()
10
return acc
11
}
12
13
- const [, refPath] = ref.split("#")
+ const [, refPath = ""] = ref.split("#")
14
const pathArr = refPath.split("/") || []
15
const parentRefKey = pathArr.slice(-2)[0]
16
const targetRefKey = pathArr.slice(-1)[0]
0 commit comments