fix(oas31): detect user request body edits in OpenAPI.paths (#8500)

Affected wrapped selector was hasUserEditedBody.
This commit fixes the bug by calling the original
selector when path+method combination is not found
in OpenAPI.webhooks field.

Refs #8498
This commit is contained in:
Vladimír Gorej
2023-03-22 09:12:27 +01:00
committed by GitHub
parent 39ccc0f900
commit 5c11bb5a45
3 changed files with 5 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ export const createOnlyOAS31SelectorWrapper =
if (system.getSystem().specSelectors.isOAS31()) {
const selectedValue = selector(state, ...args)
return typeof selectedValue === "function"
? selectedValue(system)
? selectedValue(oriSelector, system)
: selectedValue
} else {
return oriSelector(...args)