[erlang-questions] Post and query string parameter validation library?

Willem de Jong w.a.de.jong@REDACTED
Fri Feb 10 08:53:48 CET 2012


Hi,

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).

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...

Regards,
Willem

On Thu, Feb 9, 2012 at 9:04 PM, Mark Allen <mallen@REDACTED> wrote:

> Hello. I'm relatively new to Erlang programming. My project is an backend
> API for a JSON based webservice.
>
> I'm looking for a library which can take a proplist in form of
>
> [{"param_name", "value"}, ...]
>
> and validate the values against a set of specifications for the
> parameters.
>
> I'm pretty open to how specifications are declared or passed.
>
> (The proplist comes from mochiweb post_params() or query_params() calls.)
>
> Before I go reinvent the wheel, I thought I'd ask if there's something
> already
> out there that does this.
>
> Thanks.
>
> Mark
>
> Mark Allen
> Sr. Software Developer
> Alert Logic, Inc.
> mallen@REDACTED
> Security € Compliance € Cloud
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120210/d71a0db9/attachment.htm>


More information about the erlang-questions mailing list