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

Feature Idea: Validation #26

Closed
arddor opened this issue Dec 8, 2016 · 4 comments
Closed

Feature Idea: Validation #26

arddor opened this issue Dec 8, 2016 · 4 comments

Comments

@arddor
Copy link

arddor commented Dec 8, 2016

I just stumbled upon swagger-validate and found that this would actually be a great thing if feathers-swagger would come with a hook for validation, which can validate based on swagger.

@eddyystop
Copy link

We are writing a hook which validates JSON objects using ajv. Ajv uses json-schema definitions.

Would that be suitable in this case?

@daffl
Copy link
Member

daffl commented Dec 9, 2016

I think so. Swagger uses JSON schema for its definitions as well.

@Brian-McBride
Copy link

Was there ever a connection with a validation hook to use the swagger definition?

@daffl
Copy link
Member

daffl commented Dec 31, 2018

The validateSchema common hook can be used for this now.

@daffl daffl closed this as completed Dec 31, 2018
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

No branches or pull requests

4 participants