diff --git a/src/core/plugins/oas31/fn.js b/src/core/plugins/oas31/fn.js index 6ef03e48..70dd5967 100644 --- a/src/core/plugins/oas31/fn.js +++ b/src/core/plugins/oas31/fn.js @@ -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) diff --git a/src/core/plugins/oas31/oas3-extensions/wrap-selectors.js b/src/core/plugins/oas31/oas3-extensions/wrap-selectors.js index 1d6e0b12..5ccc36f5 100644 --- a/src/core/plugins/oas31/oas3-extensions/wrap-selectors.js +++ b/src/core/plugins/oas31/oas3-extensions/wrap-selectors.js @@ -4,12 +4,14 @@ import { createOnlyOAS31SelectorWrapper } from "../fn" export const hasUserEditedBody = createOnlyOAS31SelectorWrapper( - (state, path, method) => (system) => { + (state, path, method) => (oriSelector, system) => { const webhooks = system.specSelectors.webhooks() if (webhooks.hasIn([path, method])) { // try it out functionality is disabled for webhooks return false } + + return oriSelector(path, method) } ) diff --git a/src/core/plugins/oas31/spec-extensions/wrap-selectors.js b/src/core/plugins/oas31/spec-extensions/wrap-selectors.js index 048186ad..1f03ee9d 100644 --- a/src/core/plugins/oas31/spec-extensions/wrap-selectors.js +++ b/src/core/plugins/oas31/spec-extensions/wrap-selectors.js @@ -12,7 +12,7 @@ export const isOAS3 = } export const selectLicenseUrl = createOnlyOAS31SelectorWrapper( - () => (system) => { + () => (oriSelector, system) => { return system.oas31Selectors.selectLicenseUrl() } )