From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18387 Path: news.gmane.org!.POSTED!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Pandoc JSON schema Date: Wed, 25 Oct 2017 09:47:35 +0200 Message-ID: <877evjd5yg.fsf@zeitkraut.de> References: <87bmkwdcdr.fsf@zeitkraut.de> <20171024164746.GC90469@protagoras> <20171024165310.GA94787@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1508917723 10068 195.159.176.226 (25 Oct 2017 07:48:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2017 07:48:43 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBWEDYHHQKGQEDBJCEDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 25 09:48:38 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f186.google.com ([209.85.128.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7GQT-0001Ln-JU for gtp-pandoc-discuss@m.gmane.org; Wed, 25 Oct 2017 09:48:33 +0200 Original-Received: by mail-wr0-f186.google.com with SMTP id r79sf12704686wrb.7 for ; Wed, 25 Oct 2017 00:48:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508917721; cv=pass; d=google.com; s=arc-20160816; b=offNam4YQ6L7n88hrVI13+Xm30hRpTdHZGLgebN2EhCRX/n4w+c1BP1coFFtkVB16N SJQmHqRpheg1j9JdzeqCDgTPU+cuMv2X+KD9dRBJTxQ8EChVvrBGeWTTf4yx/wyUTS7u Qk0S88d9BKhtvCN4NklgU46VIOD6VaTF8Xu26D3xGusWh20usXzeFCbhayVPn7LiHvPT CjU37Lb8mG4NaOvZ3ccA446cwSwvVApHPbLmU37Xf3FPiGo9ZEhLb4CnwKQUTYcfUgBK MuOgSr3rYCFSXCCW0x2e0bmcqcP71HdqLEqlWv/wEGLR3rNK2OweL5D9Y7+ECI90vAXJ BLYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :in-reply-to:date:references:subject:to:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=ktMG5xFtCn5cea5zmuB0yezwRyF0ZJd3M4lgBQZkrMY=; b=wINl1kiMgOs3aUaVcPGJmtKjMYBNklVde/82Pq95C6puEIRtf2GeIUe0LNI6GLyGug sz5w75vExI8X26ckU6PaW2nSHiCIiNiumNZZugZV108zYOdSnlwcZi15v6HCWCNXeApz GdG2NcekxYL8B6xfKreGWOnwQFFlrcsweFI3/pdWPK+y7pHvmj0LIs/JDPIs4sCi4Vp9 n08ywg/hOiRKRYgI5Y6UddUM81eoSaJ+2NW/3SoBjZZdxuK+PvaSYtMRF5ogWwxxHsY5 4mo7aREuZ54uM/PCh9F0IdIfICD63RJhdwvzbttIhHh1OsPXzqL87oklp3DN838iQsc/ PKzQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:references:date:in-reply-to:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ktMG5xFtCn5cea5zmuB0yezwRyF0ZJd3M4lgBQZkrMY=; b=i3GZ//b6OsPUn7XR0u3o2A6F27ajJTa+6V3I/2MrSzZdh3TTpl46FksdoNo+uqX9h8 JQe0wWHSPPW/AyLqDg9dUfRDpRyfpJMBEDw9YvL6p2xwHByPHncMK/BKvSoL4kGSZemR Fl1X8VATy4j4fSecroaAwEOPMVxj03Z5hYX15abi1drGv7Jm3flANorjSJbI5uEY9d+p L/cdf30mB0GfVt+T0nFNCXlm74laF20MW1zC8jqXbEYRFgCe0lV/zsrxXpe20G1HTnxd g4cJSwY0VXQdmS23fzF0eTM39THxSbjE/gYOnTKk3AbhhJu6EWY0I9tvNRdeC4E5pKSS +zBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:references:date :in-reply-to:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=ktMG5xFtCn5cea5zmuB0yezwRyF0ZJd3M4lgBQZkrMY=; b=OzBJytpsXt3XHgWhrmsFSXRsp+tXH47+OQljDmNpKH8/hMjhxVX5Aq9oR2gLvNmkfL /Fy922YrZZkDv3sAt76Jexm7RlR+wJuSHv6giYW5XlTgJiau7WJ7Cs3mcRj5GiA1KrAP 7RL+5+WA470RVueXJtLUi4nJXAA4ZKVPMVnENDajLZdXlddkpiv6PUYiNFRu3wI/njjj ve/156KDsMNkjCleUUQn0TIoyzB9Y+zsGOgkynPPLPBP2nClUOhy3PwJCfgK8AH/2O2z 0aNTxcr7KS+dND8GM4OQnUSAinRYxGNJtquDbwvI3n+BJjhU5hAu51Fns8dg4b+jjTvM ILHg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaXW3nb9rRj9UBFP+EqTgg5w1Q1SYHsGbUeFzzMTZ4VvqOMdL/XM kpnyBM8xVUmXicHz/5muwrQ= X-Google-Smtp-Source: ABhQp+RkTo0LqdA0vXXz3h/LP9f+m7JjIC+wIJCYMZbjZez7Mba7o/zkc8tzA2LZYfoudhDlmAsq+g== X-Received: by 10.28.202.3 with SMTP id a3mr7883wmg.6.1508917721210; Wed, 25 Oct 2017 00:48:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.80.192.1 with SMTP id r1ls1114014edb.0.gmail; Wed, 25 Oct 2017 00:48:40 -0700 (PDT) X-Received: by 10.80.163.214 with SMTP id t22mr3194028edb.12.1508917720302; Wed, 25 Oct 2017 00:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508917720; cv=none; d=google.com; s=arc-20160816; b=sEbxd6X8vM0ew4Iq8xnOMRPu82baShtbrqthYevrVZTkxnSVqQolwKZZjXj3urgQ0o GR6PJnDiwE8+tZNYWBeKREEUFuJUModxNXuq0HnNe4hzQbZLiHkzqM+QGd597W+W3fHX KIH4fsLbSteoMLTOmZV951ZwRUCB6vGANDlqLDQGoiwCUaxjNpURnMeLuoCqX5oXwiRV qKpSbxzZZkL6OMm3Hbn0wn8+GPCDHMbLl5RDNNra9Su+S2oBMDnlFRXtFPEe4sQ67tmy oJDE+pO/67ZxcX2xD/pmWLpHE2OecipjIhUO3rpy5rDu6DYgBeJNJxxJt9jpCluJOi8y BlJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:references:subject:to:from :arc-authentication-results; bh=iih2gW071ZVM1fNQ7+AGQanqS/vDM6rT+3lxhDZjO8c=; b=dMjHanzu3/tEezF8NRmvfq1XNRO1a9v7X0s3cTijvfRuki8vrhZyQk6wzq/6C4yDnM aEtEgr9Ipu+hQKKeXxD/64BNstCYYxC2OdWd0vEXX/KYpEiBDjZz20Ymr1GkVj4fgC+t M4m3L3pAfXn0ZJVAgLmexKa71hALGDfv5Y61RoAmjuoEni+BCD8Rzha94fr+u2u/eKWf SqN6Y3fPKeKeuWLLE+Xki0oSxfMedd/GN4mjh9LIJAavVJ17cTIpUW92d6OO9VeaNBGL kvcsPVOuTiDd5nsrlkgjSeOOTop/pvK9bpK0/FgQILSMK3t7wSmc63kLMi7nwNpzSe/+ TuJw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Original-Received: from mx1.mailbox.org (mx1.mailbox.org. [80.241.60.212]) by gmr-mx.google.com with ESMTPS id f21si69340edj.0.2017.10.25.00.48.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Oct 2017 00:48:40 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) client-ip=80.241.60.212; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id E32EF46C6A for ; Wed, 25 Oct 2017 09:48:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id BfXxOiUh6uJ9 for ; Wed, 25 Oct 2017 09:48:37 +0200 (CEST) In-Reply-To: <20171024165310.GA94787@protagoras> (John MACFARLANE's message of "Tue, 24 Oct 2017 09:53:10 -0700") X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18387 Archived-At: John MACFARLANE writes: > PS. I wonder if there is any way to autogenerate this from the > FromJSON/ToJSON instances for pandoc types? That would > allow us to ensure that this is always in sync with changes. Autogeneration is the reason why I didn't open a PR for this yet. I'm planning to experiment with generics and alternative JSON representations, this schema was merely created to get me started. It was also suggested to me to use the [Concise Data Definition Language] instead, which is currently in I-D status, *much* less verbose, and actually readable. I may try to use generics to generate a CDDL definition, which could then be translated into a JSON schema. That is going to take me a while, though. Long story short: I'll open a PR on jgm/pandoc-website for now, if that's ok with you. I don't think it's ready for the other repos yet, neither for pandoc nor pandoc-types. [Concise Data Definition Language]: https://datatracker.ietf.org/doc/draft-ietf-cbor-cddl/