use riak pre-commit hook to validate json schema

Jeremiah Peschka jeremiah.peschka at gmail.com
Thu Jun 14 08:20:23 EDT 2012


You sure can! 

https://help.basho.com/entries/321385-how-do-i-load-3rd-party-javascript-libraries-for-use-in-map-reduce-functions

You can only use JavaScript in pre-commit hooks, AFAIK.
---
Jeremiah Peschka, Managing Director, Brent Ozar PLF, LLC
Microsoft SQL Server MVP

On Jun 14, 2012, at 6:17 AM, Paul Scheltema <paulscheltema at gmail.com> wrote:

> Helo, 
> 
> I would like to use a pre-commit hook written in javascript  in riak to validate the json schema of the data submitted
> 
> There are a number of implementations in javascript on json-schema.org
> 
> http://json-schema.org/implementations.html
> 
> is there a way to load an external library or libraries into riak so i can use them inside the pre- and post-commit hooks
> 
> and preferably also the external schema definition files (or at least load them from a bucket)
> 
> I use clients in multiple languages to submit data to riak, and it would be ideal if riak could do the validtion of all data submitted.
> 
> Many thanks in advance.
> 
> 
> 
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120614/56ce06db/attachment.html>


More information about the riak-users mailing list