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

--raw is ignored when using --path #6676

Open
tristanbes opened this issue Sep 12, 2019 · 0 comments
Open

--raw is ignored when using --path #6676

tristanbes opened this issue Sep 12, 2019 · 0 comments

Comments

@tristanbes
Copy link

tristanbes commented Sep 12, 2019

Hello,

On the latest version, if you use the raw option,

serverless invoke local --docker --function function --path test.json --raw

the lambda will recieve an array instead of a string. Which is wrong if you trust the documentation:

--raw Pass data as a raw string even if it is JSON. If not set, JSON data are parsed and passed as an object.

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants