Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2015 19:25:45 +0000
From:      David Chisnall <theraven@FreeBSD.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Garrett Cooper <yaneurabeya@gmail.com>, Andrey Chernov <ache@freebsd.org>,  Adrian Chadd <adrian.chadd@gmail.com>, Dan Partelly <dan_partelly@rdsor.ro>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: libXO-ification - Why - and is it a symptom of deeper issues?
Message-ID:  <A7451B83-1C64-4E8E-A87E-820C9C03BD45@FreeBSD.org>
In-Reply-To: <6506.1447614741@chaos>
References:  <0650CA79-5711-44BF-AC3F-0C5C5B6E5BD9@rdsor.ro> <CAJ-Vmokfo_BGWji9TrgQ40oRxqht9-2iEZVon7aQxR_93Ufxyg@mail.gmail.com> <702A1341-FB0C-41FA-AB95-F84858A7B3A4@rdsor.ro> <CAJ-VmoniBAmWTf9MkCCMYhRbPLc=0%2Bz5kRSijXfqX9VZvm8jDg@mail.gmail.com> <5648C60B.6060205@freebsd.org> <6EDFB74B-2206-46E7-85F7-8DE05FB6D325@gmail.com> <6506.1447614741@chaos>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Nov 2015, at 19:12, Simon J. Gerraty <sjg@juniper.net> wrote:
>=20
> Garrett Cooper <yaneurabeya@gmail.com> wrote:
>> We lack a [dtd/json] spec for tools, so programming for xo'ification
>> doesn't seems like the best idea in the world to me from a end-user
>> sysadmin/developer perspective.
>=20
> A dtd etc is good for sure, and we (Juniper) do have them, as well as
> ui-police to help ensure things go smoothly - even that doesn't catch
> everything.

At the GSoC Mentor Summit, someone from GitHub pointed me at a tool[1] =
for generating schemas from JSON (which can then be refined manually) =
and can be used for validating that the schema is still respected in =
newer versions.  I hope to integrate something like this into our =
regression test suite before 11.

For the people complaining that there are no command-line tools for =
filtering JSON in shell scripts, I=E2=80=99d suggest that they look at =
JQ[2].  I=E2=80=99m not sure if it=E2=80=99s worth bringing it into =
base, but being able to install it easily (textproc/jq, no dependencies) =
from ports suddenly makes a load of stuff trivial with shell scripts =
that were either incredibly hard or impossible prior to libxo.

David

[1] https://github.com/perenecabuto/json_schema_generator
[2] https://stedolan.github.io/jq/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7451B83-1C64-4E8E-A87E-820C9C03BD45>