({ storageField: s = 'x-normalized' } = {})
| 54663 | } |
| 54664 | }, |
| 54665 | normalize_parameters = |
| 54666 | ({ storageField: s = 'x-normalized' } = {}) => |
| 54667 | (o) => { |
| 54668 | const { predicates: i, ancestorLineageToJSONPointer: a } = o, |
| 54669 | parameterEquals = (s, o) => |
| 54670 | !!i.isParameterElement(s) && |
| 54671 | !!i.isParameterElement(o) && |
| 54672 | !!i.isStringElement(s.name) && |
| 54673 | !!i.isStringElement(s.in) && |
| 54674 | !!i.isStringElement(o.name) && |
| 54675 | !!i.isStringElement(o.in) && |
| 54676 | serializers_value(s.name) === serializers_value(o.name) && |
| 54677 | serializers_value(s.in) === serializers_value(o.in), |
| 54678 | u = [] |
| 54679 | let _ |
| 54680 | return { |
| 54681 | visitor: { |
| 54682 | OpenApi3_1Element: { |
| 54683 | enter(o) { |
| 54684 | _ = new Px(o, s, 'parameters') |
| 54685 | }, |
| 54686 | leave() { |
| 54687 | _ = void 0 |
| 54688 | }, |
| 54689 | }, |
| 54690 | PathItemElement: { |
| 54691 | enter(s, o, a, _, w) { |
| 54692 | if (w.some(i.isComponentsElement)) return |
| 54693 | const { parameters: x } = s |
| 54694 | i.isArrayElement(x) ? u.push([...x.content]) : u.push([]) |
| 54695 | }, |
| 54696 | leave() { |
| 54697 | u.pop() |
| 54698 | }, |
| 54699 | }, |
| 54700 | OperationElement: { |
| 54701 | leave(s, o, i, w, x) { |
| 54702 | const C = Ba(u) |
| 54703 | if (!Array.isArray(C) || 0 === C.length) return |
| 54704 | const j = a([...x, i, s]) |
| 54705 | if (_.includes(j)) return |
| 54706 | const L = Yw([], ['parameters', 'content'], s), |
| 54707 | B = dx(parameterEquals, [...L, ...C]) |
| 54708 | ;((s.parameters = new _v(B)), _.append(j)) |
| 54709 | }, |
| 54710 | }, |
| 54711 | }, |
| 54712 | } |
| 54713 | }, |
| 54714 | normalize_security_requirements = |
| 54715 | ({ storageField: s = 'x-normalized' } = {}) => |
no outgoing calls
no test coverage detected