MCPcopy Create free account
hub / github.com/dataease/SQLBot / normalize_security_requirements

Function normalize_security_requirements

frontend/public/swagger-ui-bundle.js:54714–54745  ·  view source on GitHub ↗
({ storageField: s = 'x-normalized' } = {})

Source from the content-addressed store, hash-verified

54712 }
54713 },
54714 normalize_security_requirements =
54715 ({ storageField: s = 'x-normalized' } = {}) =>
54716 (o) => {
54717 const { predicates: i, ancestorLineageToJSONPointer: a } = o
54718 let u, _
54719 return {
54720 visitor: {
54721 OpenApi3_1Element: {
54722 enter(o) {
54723 ;((_ = new Px(o, s, 'security-requirements')),
54724 i.isArrayElement(o.security) && (u = o.security))
54725 },
54726 leave() {
54727 ;((_ = void 0), (u = void 0))
54728 },
54729 },
54730 OperationElement: {
54731 leave(s, o, w, x, C) {
54732 if (C.some(i.isComponentsElement)) return
54733 const j = a([...C, w, s])
54734 if (_.includes(j)) return
54735 var L
54736 void 0 === s.security &&
54737 void 0 !== u &&
54738 ((s.security = new Ov(
54739 null === (L = u) || void 0 === L ? void 0 : L.content
54740 )),
54741 _.append(j))
54742 },
54743 },
54744 },
54745 }
54746 },
54747 normalize_parameter_examples =
54748 ({ storageField: s = 'x-normalized' } = {}) =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected