Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$stageVariables are not supported in tempaltes #12

Open
matthias-pichler opened this issue Sep 26, 2022 · 0 comments
Open

$stageVariables are not supported in tempaltes #12

matthias-pichler opened this issue Sep 26, 2022 · 0 comments

Comments

@matthias-pichler
Copy link

It would be great if one could pass stageVariables into the mapping function when calling.

var mappingTemplate = require('api-gateway-mapping-template')
 
var vtl = '$input.json(\'$.data\')';
var payload = '{"data": {"url": "https://github.com/ToQoz/api-gateway-mapping-template"}}';
 
var result = mappingTemplate({template: vtl, payload: payload, stageVariables: { foo: "bar" }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant