Skip to content

Commit

Permalink
chore: populate builtInParams in endpointParamInstructions
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 26, 2024
1 parent 3f3e745 commit 9710c39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/endpoints-2.0/endpoints-integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ function getEndpointParameterInstructions(service: ServiceModel) {
}
}

const parameters = service.traits["smithy.rules#endpointRuleSet"].parameters;
for (const [paramName, parameter] of Object.entries(parameters)) {
if (parameter.builtIn) {
endpointParameterInstructions[paramName] = {
type: "builtInParams",
name: namesMap[paramName] ?? `${paramName[0].toLowerCase()}${paramName.slice(1)}`,
};
}
}

return endpointParameterInstructions;
}

Expand Down

0 comments on commit 9710c39

Please sign in to comment.