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

Fix for #3069 - Failing to handle schedule event body params due to f… #5268

Merged
merged 1 commit into from
Sep 4, 2018
Merged

Fix for #3069 - Failing to handle schedule event body params due to f… #5268

merged 1 commit into from
Sep 4, 2018

Conversation

shanehandley
Copy link

@shanehandley shanehandley commented Sep 1, 2018

…ailures in stringifying an already stringified...string.

What did you implement:

Closes #3069

How did you implement it:

The author of the bug has a good description of the issue seen.

During processing of the Input body, first checking if it is a string, then parsing it to JSON so it is provided correctly to the scheduleTemplate as valid JSON.

How can we verify it:

Clone my fix test, which uses the reporters example:

git@github.com:shanehandley/serverless-fix-3069.git

Install:

npm install

Execute:

./node_modules/serverless/bin/serverless package

The packaging should complete without error.

Todos:

  • Write tests
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

…ailures in stringifying an already stringified...string.
Copy link
Contributor

@horike37 horike37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works as expected 👍 Sweat!
Thank you for you contribution @shanehandley 💯
merging...

@horike37 horike37 added this to the 1.31.0 milestone Sep 4, 2018
@horike37 horike37 merged commit 5c12586 into serverless:master Sep 4, 2018
@shanehandley shanehandley deleted the 3069-fix-schedule-events-body-parsing branch September 15, 2018 20:27
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

Successfully merging this pull request may close these issues.

Cannot use " in body for scheduling
2 participants