{"push_id":1196539117,"size":1,"distinct_size":1,"ref":"refs/heads/feature-argument-validation-decorator","head":"c9561d9608fe7c0bf05d9b88f19f25ce1c690257","before":"f28bf1aeb42b247bfd2b973b741ca2b1f14571b1","commits":[{"sha":"c9561d9608fe7c0bf05d9b88f19f25ce1c690257","author":{"name":"Gergő Nagy","email":"6c08fadc859c4162b78c28993e7737dc3dd24df7@gmail.com"},"message":"decorator: validate_schema_args\n\nIntroducing `validate_schema_args` decorator that is able to validate a\nfunction's input parameters. The argument of the decorator is the schema\nthat will validate and decorated function's arguments.\n\nThe decorator is aware of `args` and `kwargs`.\n\n```\n@validate_schema_args({'a': int})\ndef foo(a):\n    return a\n\nfoo(42)\n\nfoo(\"42\")\n```\n\nExample 1 will not throw exception for the parameter given in variable\n`a` is an integer.\n\nExample 2 will throw an `Invalid` exception for its argument is a\nstring.\n\nThis feature helps you to validate your input without any efforts and\nremove validator boilerplate from your function.\n\nSigned-off-by: Gergő Nagy <grigori.grant@gmail.com>","distinct":true,"url":"https://api.github.com/repos/ngergo/voluptuous/commits/c9561d9608fe7c0bf05d9b88f19f25ce1c690257"}]}
{"actor":{"display_login":"ngergo"}}