[erlang-questions] Jesse - a JSON schema validator in Erlang

Motiejus Jakštys desired.mta@REDACTED
Wed Feb 20 19:30:20 CET 2013


On Wed, Feb 20, 2013 at 4:18 PM, Igor Karymov <ingham.k@REDACTED> wrote:
> Another approach of scheme definition that can work with json:
> https://github.com/alavrik/piqi

Piqi is cool, but if you have external clients, then .xsd, .proto and
json-scheme (in descending popularity) are the ways to go. .piqi
format for objective-c programmer to communicate json.. what? So not a
really good use case.

I once used piqi for protobuffer-only communication. Wrote my piqi
files, asked piqi to convert them to .proto, and gave these to the
third party. Just because I found to writing .piqi than protobuffers
easier.

In the end, I would love a piqi-to-xsd and piqi-to-json-schema
converters. That would allow to use piqi in corporate environments
(a.k.a. where xml and xsd are mandatory), and with more flexible
clients that use json, which you could pass the JSON schema, requiring
much less manual documentation.

Though I realize that Anton has much more interesting and useful
things to do than writing piqi-any converters (piqic erlang!), this
would be a nice addition that would enable piqi usage in some
environments. Hell, shouldn't be too hard to implement. Maybe I will
do that myself some day.

Igor, you raised a valid point. But it's not there.. Yet. :)

-- 
Motiejus Jakštys



More information about the erlang-questions mailing list