UNPKG

test-openapi

Version:
38 lines (27 loc) 1.15 kB
"use strict";require("core-js/modules/es.array.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.getParams=void 0;var _merge=require("../../../../../utils/merge.js"); var _content_negotiation=require("../content_negotiation.js"); var _normalize=require("./normalize.js"); var _form_data=require("./form_data.js"); var _security=require("./security.js"); var _constants=require("./constants.js"); const getParams=function({ spec, method, path, pathDef:{parameters:pathDefParams=[]}, operation, operation:{parameters:params=[]}}) { const paramsA=[...pathDefParams,...params]; const paramsB=(0,_normalize.normalizeParams)({params:paramsA}); const contentNegotiations=(0,_content_negotiation.getNegotiationsParams)({ spec, operation, params:paramsB}); const paramsC=(0,_form_data.normalizeFormData)({params:paramsB}); const secParams=(0,_security.getSecParams)({spec,operation}); const constants=(0,_constants.getConstants)({spec,operation,method,path}); const paramsD=(0,_merge.merge)(contentNegotiations,secParams,paramsC,constants); return paramsD; };exports.getParams=getParams; //# sourceMappingURL=main.js.map