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

Validation as a uService #16

Open
mcollina opened this issue Nov 18, 2014 · 4 comments
Open

Validation as a uService #16

mcollina opened this issue Nov 18, 2014 · 4 comments

Comments

@mcollina
Copy link
Contributor

I think we might want to provide a validation-as-a-microservice module, based around Joi.

What do you think?
I'm placing it here just because it's a place...

It should be kind-of compatible with GraftJS/graft-http#1.

@tamagokun
Copy link
Contributor

I've seen this before and find it useful. You specify a schema in your micro service, and it can run validation on the message before reaching the micro service. To make it compatible with graft-http you validate against GET or POST vars.

@mcollina
Copy link
Contributor Author

Yes. I think it should be generic and configurable, so that it's not completely HTTP-specific.

@AdrianRossouw
Copy link
Contributor

I find json-schema is pretty good for this kind of thing.

I recommend tv4 as the best of the validators i have used.

@AdrianRossouw
Copy link
Contributor

@mcollina any reason for joi specifically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants