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

Add a json-schema validation plugin #41

Open
elboletaire opened this issue Mar 9, 2019 · 0 comments
Open

Add a json-schema validation plugin #41

elboletaire opened this issue Mar 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@elboletaire
Copy link
Member

elboletaire commented Mar 9, 2019

Problem to solve

Allow validation of payloads using json-schema

Further details

Can be used by async applications to validate forms/data having the validation errors in a specific validtionErrors route for the exchange linked by default to the operator (or to a specified endpoint).

Proposal

This should be a plugin, i.e. Validation, properly validating respecting the json-schema specification.

It should allow configuring:

  • The json-schema to validate the payload against.
  • The scope/field to validate (by default the entire payload would be validated).
  • The exchange & route || queue. By default it should point to the exchange of the current operator + validationErrors route.
  • What to do in case of error. Here I think that we should allow defining actions the same way we do under operators, so users can decide between sending the request to a queue (default behavior), send it using a REST request, or even just a telegram message.

Links / references

@elboletaire elboletaire added the enhancement New feature or request label Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant