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

Is there any plan to add api input validation. #45

Open
sapamja opened this issue Dec 5, 2016 · 2 comments
Open

Is there any plan to add api input validation. #45

sapamja opened this issue Dec 5, 2016 · 2 comments

Comments

@sapamja
Copy link

sapamja commented Dec 5, 2016

I think its a good idea to validate the documents before we insert into the database, Using some kind of configuration includes a schema definition for every resource managed by the API.

@emicklei
Copy link
Owner

emicklei commented Dec 6, 2016

i like this idea. for that, we could use some JSON schema validation package such as https://github.com/xeipuuv/gojsonschema

@sapamja
Copy link
Author

sapamja commented Dec 8, 2016

Thanks for your response. So, If I would like to implement gojsonschema, where should i do that.
I think it should go under documents/handler.go. Please correct me if thats not the right place.

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

2 participants