Re: [mile] JSON representation of IODEF (FW: New Version Notification for draft-takahashi-mile-jsoniodef-00.txt)

Carsten Bormann <cabo@tzi.org> Thu, 09 June 2016 09:27 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: mile@ietfa.amsl.com
Delivered-To: mile@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7997212D0D9 for <mile@ietfa.amsl.com>; Thu, 9 Jun 2016 02:27:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.62
X-Spam-Level:
X-Spam-Status: No, score=-2.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8QzVxo1F_4Tq for <mile@ietfa.amsl.com>; Thu, 9 Jun 2016 02:27:34 -0700 (PDT)
Received: from slow1-d.mail.gandi.net (slow1-d.mail.gandi.net [217.70.178.86]) by ietfa.amsl.com (Postfix) with ESMTP id 78B5212D0A3 for <mile@ietf.org>; Thu, 9 Jun 2016 02:27:34 -0700 (PDT)
Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 509F14B61D4; Thu, 9 Jun 2016 11:27:33 +0200 (CEST)
X-Originating-IP: 134.102.91.140
Received: from eduroam-pool10-397.wlan.uni-bremen.de (eduroam-pool10-397.wlan.uni-bremen.de [134.102.91.140]) (Authenticated sender: cabo@cabo.im) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 90512A81B1; Thu, 9 Jun 2016 11:27:31 +0200 (CEST)
Message-ID: <57593681.4040907@tzi.org>
Date: Thu, 09 Jun 2016 11:27:29 +0200
From: Carsten Bormann <cabo@tzi.org>
User-Agent: Postbox 4.0.8 (Macintosh/20151105)
MIME-Version: 1.0
To: Takeshi Takahashi <takeshi_takahashi@nict.go.jp>
References: <063a01d1c166$c6f58860$54e09920$@nict.go.jp> <CAA=AuEcPmMAtPgWcbVYjbM+XMhF7W+NpZDOomQ=m38xjKuHySA@mail.gmail.com> <57584349.8000803@tzi.org> <57585EA0.7010408@tzi.org> <57585F39.1040902@tzi.org> <000001d1c227$25e62d50$71b287f0$@nict.go.jp>
In-Reply-To: <000001d1c227$25e62d50$71b287f0$@nict.go.jp>
X-Enigmail-Version: 1.2.3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/mile/BUwdBNn46XuK_nA1z2Kj2liNsMQ>
Cc: mile@ietf.org
Subject: Re: [mile] JSON representation of IODEF (FW: New Version Notification for draft-takahashi-mile-jsoniodef-00.txt)
X-BeenThere: mile@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Managed Incident Lightweight Exchange, IODEF extensions and RID exchanges" <mile.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mile>, <mailto:mile-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mile/>
List-Post: <mailto:mile@ietf.org>
List-Help: <mailto:mile-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mile>, <mailto:mile-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Jun 2016 09:27:38 -0000

Takeshi Takahashi wrote:
> If there are any nice tools I should be using, please kindly let me know; it would be very helpful to me.

Good question.

We just had a discussion in the JSON WG about JSON "schema languages"
(or, more generally, ways to describe the JSON data models that we want
to interchange).  "JSON schema" was not necessarily the favorite tool of
all participants of that discussion.

Obviously, I'm a bit biased here (CDDL has been developed by students I
supervised, and I have also written an implementation).  I like CDDL
because it has much less noise than other approaches:

https://www.iab.org/wp-content/IAB-uploads/2016/03/Noise-in-specifications-hurts.pdf

(For those who know XML, this is a bit like Relax-NG compact vs. W3C
Schema.)

There are a few tools for working with CDDL, please see Appendix F of
the draft:

https://tools.ietf.org/html/draft-greevenbosch-appsawg-cbor-cddl-08#appendix-F

While CDDL is still work in progress, its core is quite stable as it is
based on the concepts of ABNF and Relax-NG.

(And you now have a CDDL version of your "JSON schema" draft :-)

Grüße, Carsten