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

Validate JSON reserved from beanstalk is well-formed #11

Open
bradgessler opened this issue May 11, 2015 · 0 comments
Open

Validate JSON reserved from beanstalk is well-formed #11

bradgessler opened this issue May 11, 2015 · 0 comments
Labels
Milestone

Comments

@bradgessler
Copy link
Contributor

When deserializing a job off of beanstalk via Job.deserialize, assert the correct keys exist in the JSON job, args, ttr, ... exist and that no other, invalid keys exist.

If the JSON looks funky, raise an invalid job JSON exception.

Also, consider a better method for Support#constantize that will raise an exception of the object can't be found for better error messaging.

@bradgessler bradgessler changed the title Validate JSON reserved from beanstalk is well-formed job JSON Validate JSON reserved from beanstalk is well-formed May 11, 2015
@bradgessler bradgessler added this to the 2.x milestone May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant