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

Optional parameter to inform application layer about validation issue #225

Closed
wants to merge 1 commit into from
Closed

Conversation

kirill-ratkin
Copy link

Information about validation error appears in log only.
This fix adds additional optional parameter to function wrapped by 'listen' decorator.
Parameter 'validation_report' is dict with two fields: 'success' and 'error'. 'success' is boolean and if it's False 'error' contains info from validator about issue.
Application function can check report and makes some logic in case of validation fail (special log, inc some counters and so on),

…er is not notified about issue. information about lvalidation error appears in log only. So this fix adds additional optional parameter to function wrapped by listen decorator. Parameter 'validation_report' is dict with two fields: 'success' and 'error'. 'success' is boolean and if it's False 'error' contains info from validator about issue.
This pull request was closed.
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.

None yet

1 participant