mora
mora copied to clipboard
Is there any plan to add api input validation.
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.
i like this idea. for that, we could use some JSON schema validation package such as https://github.com/xeipuuv/gojsonschema
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.