refactor(oas31): disable try it out mechanism explicitly for webhooks (#8485)

Refs #8474
This commit is contained in:
Vladimír Gorej
2023-03-20 09:44:22 +01:00
committed by GitHub
parent d7099793a4
commit d837b2b511
5 changed files with 54 additions and 26 deletions

View File

@@ -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