Hi,<br><br>I have some code that translates a query string to a record. It uses the record definition as the specification for the parameters. You can extend the specification a bit by adding some special comments to the record definition (a bit like eDoc). <br>
<br>The code is in a kind of semi-finished state: it works for my current purposes, but there is no documentation and there will probably be some bugs or rough edges. If you want I can put it on github this weekend, maybe you polish it a bit...<br>
<br>Regards,<br>Willem<br><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 9:04 PM, Mark Allen <span dir="ltr"><<a href="mailto:mallen@alertlogic.com">mallen@alertlogic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello. I'm relatively new to Erlang programming. My project is an backend<br>
API for a JSON based webservice.<br>
<br>
I'm looking for a library which can take a proplist in form of<br>
<br>
[{"param_name", "value"}, ...]<br>
<br>
and validate the values against a set of specifications for the<br>
parameters.<br>
<br>
I'm pretty open to how specifications are declared or passed.<br>
<br>
(The proplist comes from mochiweb post_params() or query_params() calls.)<br>
<br>
Before I go reinvent the wheel, I thought I'd ask if there's something<br>
already<br>
out there that does this.<br>
<br>
Thanks.<br>
<br>
Mark<br>
<br>
Mark Allen<br>
Sr. Software Developer<br>
Alert Logic, Inc.<br>
<a href="mailto:mallen@alertlogic.com">mallen@alertlogic.com</a><br>
Security € Compliance € Cloud<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>