Skip to content

Commit

Permalink
add general required params to local params
Browse files Browse the repository at this point in the history
  • Loading branch information
shulkaolka committed Apr 1, 2024
1 parent e123e5b commit b467b09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/lib/actions/action.js
Expand Up @@ -48,7 +48,9 @@ async function processAction(msg, cfg, snapshot, incomingMessageHeaders, tokenDa
);

const specPath = spec.paths[pathName];
const specPathGeneralParams = specPath.parameters? specPath.parameters.map(({ name }) => name) : [];
const specPathParameters = specPath[method].parameters ? specPath[method].parameters.map(({ name }) => name) : [];
specPathParameters.push(...specPathGeneralParams);

let body = msg.data;
mapFieldNames(body);
Expand Down

0 comments on commit b467b09

Please sign in to comment.