-
Notifications
You must be signed in to change notification settings - Fork 90
module validation #138
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
module validation #138
Conversation
Is there any way we can eagerly load the schema from file during init phase? |
You could use the Validator.getJsonSchema("classpath:/schema.json") out of the handler, so that it is loaded and cached. Not sure how to do it transparently for the developer. |
|
||
### @Validation annotation | ||
|
||
`@Validation` annotation is used to validate either inbound or functions' response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Validation
annotation is used to validate either inbound or functions' response.
to
@Validation
annotation is used to validate either inbound events or functions' response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
Issue #, if available:
Description of changes:
Validation module, permits to validate events and responses agains JSON schema
Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.