refactor(oas31): disable try it out mechanism explicitly for webhooks (#8485)
Refs #8474
This commit is contained in:
@@ -32,9 +32,10 @@ import {
|
||||
selectWebhooksOperations,
|
||||
} from "./spec-extensions/selectors"
|
||||
import {
|
||||
isOAS3 as isOAS3Wrapper,
|
||||
isOAS3 as isOAS3SelectorWrapper,
|
||||
selectLicenseUrl as selectLicenseUrlWrapper,
|
||||
} from "./spec-extensions/wrap-selectors"
|
||||
import { hasUserEditedBody as hasUserEditedBodySelectorWrapper } from "./oas3-extensions/wrap-selectors"
|
||||
import { selectLicenseUrl as selectOAS31LicenseUrl } from "./selectors"
|
||||
import {
|
||||
isOAS31 as isOAS31Fn,
|
||||
@@ -94,10 +95,15 @@ const OAS31Plugin = ({ fn }) => {
|
||||
selectWebhooksOperations: createOnlyOAS31Selector(createSystemSelector(selectWebhooksOperations)), // prettier-ignore
|
||||
},
|
||||
wrapSelectors: {
|
||||
isOAS3: isOAS3Wrapper,
|
||||
isOAS3: isOAS3SelectorWrapper,
|
||||
selectLicenseUrl: selectLicenseUrlWrapper,
|
||||
},
|
||||
},
|
||||
oas3: {
|
||||
wrapSelectors: {
|
||||
hasUserEditedBody: hasUserEditedBodySelectorWrapper,
|
||||
},
|
||||
},
|
||||
oas31: {
|
||||
selectors: {
|
||||
selectLicenseUrl: createOnlyOAS31Selector(createSystemSelector(selectOAS31LicenseUrl)), // prettier-ignore
|
||||
|
||||
Reference in New Issue
Block a user