From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18385 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: Pandoc JSON schema Date: Tue, 24 Oct 2017 09:53:10 -0700 Message-ID: <20171024165310.GA94787@protagoras> References: <87bmkwdcdr.fsf@zeitkraut.de> <20171024164746.GC90469@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"; format=flowed X-Trace: blaine.gmane.org 1508863977 5895 195.159.176.226 (24 Oct 2017 16:52:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2017 16:52:57 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB2G7XXHQKGQEJI4TRPA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 24 18:52:53 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f63.google.com ([209.85.214.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e72Rd-0000aq-LI for gtp-pandoc-discuss@m.gmane.org; Tue, 24 Oct 2017 18:52:49 +0200 Original-Received: by mail-it0-f63.google.com with SMTP id x187sf20787462itf.2 for ; Tue, 24 Oct 2017 09:52:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508863977; cv=pass; d=google.com; s=arc-20160816; b=c+2pqFIVzdLeoLSX4iW0fy1H4Rqqyb1Zuy4FETl5IZCLrOnF8Z+lb0ARwV1TpLs6uI qehitXyFH6hKmCUopEWO7t8H5cbyboS8olA3ZBWLlSSKNsYRFCV0Sv9DgVhhOfOXtJTY 3RuB9ndXlfgxcGWzVLhbUG5rQLm2q7v6fPOLz8yephT5f0FkhVa2ExnBddrJpHq15f0Y vEmwlQo2oDcXHhm1mx/LmYC1X0Zwg4d8shvaqHUQOWVOBSvbChXgjaSRVIoUe4w3nyuf WYDiypoK0FgWeyR1ejzdKthD2hKjqiJlKtP6UEv+g1TVYyaaFmOBJSCgzst3KaCEt1hp vvYA== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=45i6gPm+GXpH8eWrC1458L4gNDoIa2JYUpESV77BzEM=; b=ddBp2lVjlhJ4iEYXiZqaQ3OpRhaW4cr602LCyyW85R9Ydth7CLAXqN36O059GT2+Ob nwZFdmXI5yM3vFrkzggSqHSxEWdx2j70/GVYVkDeXioOR5jjb8roWj5LTiDB9tQPMVn/ fwKATGGBBgjZER3JfsJmN56Uh89uq83ZIZW39JIXcO36lrcMPmc4FBWFFvTN96pMb8u3 drxkUOg75XLL0LKjLentp62Xa3kMVeIQ7jEZSkfQ1genuLvGp5TvN1FWodBkpKEo/4GN FWFrWa9cgT0vdfEJ1OntIaV0Sc6e2RMynlpZhzBsps9FUKKofFLlLX/1hEPydcdWiQof ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HUeVY5mt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=45i6gPm+GXpH8eWrC1458L4gNDoIa2JYUpESV77BzEM=; b=VrjyGk22+G3fDUPrcGY5As5WZzn2lTlZasJ4+6vg31zjwPgCA/go3NjJu6oBWbGY4Y ZYHqJr/n8YoIY6hZJ775W7P6vFfV6dy7lDpPakbX55hVxAsheDT/YCm7lwqOTSGp0OOH OYEIqT4Ji2WrDqXy6POBhL5EG8wZpnLaxsj6RmH9R5PmVMni4N23unXMx2s7SqXPrn/S 3c+pANjvBWLx5zleLzeykwoFMYrEQOh8EhgIXX5JoVo2ekTFu9gy62cWLt+72eoMIg5w J6p8+dof4LClEcw6jAijXvAgisvC5eas4ogLv0jXmpYjg0pryS6QTBqbcuq5qKY3TMwc rDmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=45i6gPm+GXpH8eWrC1458L4gNDoIa2JYUpESV77BzEM=; b=m6glh8TnkQ8l/S6QnI8w79XCMt2Y3DyOLCPrq/UvaDdwqIf9i3vBXmeNmtLNgyNSFK HX+zd1vMr7KSFTW0fNGb5go4llolsgqbQV4HGZzGyPBo+M1Hb4dDt5h0t3ZefLDgZRFs 4JGNzjXk619R8B2zD4HsRcmd8IxSW0X6JbM+MXX3kh7BlyUdudJMuCNMIlVtYOFjBB+a oNw58kpK+HhmsNLPDKKXEeS5k6atmSFNV5K/Bq4TDWcGePVnqOPNVr5+0VQHOoFsfVDM PrU7t7WSDKIu4/Y9WK2ouI8dMl1NGc6K5qHkCJTTXqWcsxsBz1Xo2jAKKcwbmUXX1JO1 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaWuQ4JwZBDYpc1glmOI1auUEdiNGdcDQrbgZ7EvuuPb9bzC3Suf OT+DUsGxAoaiH9g/Etz4sps= X-Google-Smtp-Source: ABhQp+QZ+q1jdqiy9WQ5g4s8IfkhjCHARDxlOVLugjTzAuW/CuyxVNkNT9qL7wEHThYEg8Yp2+pG7Q== X-Received: by 10.36.7.65 with SMTP id f62mr188426itf.1.1508863976976; Tue, 24 Oct 2017 09:52:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.142.194 with SMTP id q185ls171996iod.1.gmail; Tue, 24 Oct 2017 09:52:56 -0700 (PDT) X-Received: by 10.107.101.4 with SMTP id z4mr12795948iob.131.1508863976327; Tue, 24 Oct 2017 09:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508863976; cv=none; d=google.com; s=arc-20160816; b=CbrbtbXi8baD0s2ULsGknr+1XnLH75UVrtT19XZtKgewqUrPG1tPVltFrxyHJpuHEy dEbXSrKyFcDerQSN57eh9+YhB1ZU6Pn+g91KJ1GV/+eddjoi3vYvxNXw6XNJp869/3KZ qQRR5iGl9ZSaDtEgEH88b4V6DhfxjXa/tLNPPfa6BGQoKlLy0933WyWZr9QmAUrnUgmJ hQwFecEZ2rlUA7XsJ83Zd9XtYj0iX0yzR4+JjYYFT6GXSXGYj2IGuHUCsew7wpegSep/ u4dZ8Ct+Pbp6AF3y9ISnH7DlawOk8/SNKpTZzlNZvY0QBqcsds8LWEnwaWCLCbIlycft 17vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=KTWSoZUVKWsT2JdeMFKCjrMNfB+RWIIWZdcocc0N6xM=; b=N41lAQ1jn65M5TamTyg5QGUqocM4Ihdr8wiTM+YRiejSskWV9PXvjO5oaYp3BozTbv eF5RVYafRJtRI5sYqEieZ5eALUupPwqMxXfss++7DLkZZYZYcUmrP+Qky7zgQ/luB6Ow I3ZLRSzVQSFBhIzTo14RLvud+RwKYVBBUgrL7BMJarM+uUjaKDuGNZxSvJyaGAUuVpT4 6cxdwvQKVcZr+/srzNXRLQ/a0T/NYMgqxBrHB1VRU5+MiRC5dahsHIcc9gSHOXjsSSTy yszOSqzdTXAS3V54mTp0kErMTucBmi3F0KHBSHv9j6VkVi8wh1gLP9NvdJs2Qul+hZZf JIPw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HUeVY5mt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com. [2607:f8b0:400e:c00::22a]) by gmr-mx.google.com with ESMTPS id l22si149166ita.2.2017.10.24.09.52.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 09:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22a as permitted sender) client-ip=2607:f8b0:400e:c00::22a; Original-Received: by mail-pf0-x22a.google.com with SMTP id d28so20105215pfe.2 for ; Tue, 24 Oct 2017 09:52:56 -0700 (PDT) X-Received: by 10.98.31.73 with SMTP id f70mr16901207pff.183.1508863975611; Tue, 24 Oct 2017 09:52:55 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a7sm1128107pgt.39.2017.10.24.09.52.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2017 09:52:54 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 6C8ABA1F8; Tue, 24 Oct 2017 12:52:43 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20171024164746.GC90469@protagoras> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HUeVY5mt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:18385 Archived-At: 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. +++ John MACFARLANE [Oct 24 17 09:47 ]: >This is great. It shoud go somewhere in the pandoc >repository (or perhaps pandoc-types), and be made available >via pandoc.org. > >+++ Albert Krewinkel [Oct 24 17 13:16 ]: >>If anyone is interested: I've created a JSON schema for pandoc's JSON >>output. This should make it possible to validate the output of JSON >>filters without having to invoke pandoc. >> >>https://gist.github.com/tarleb/bcb4b31e35263fcbc6cf7e533670c1cf >> >>I intended for the schema to also serve as documentation, but I find it >>difficult to read. It might be possible to improve that, though. >> >>-- >>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. >>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87bmkwdcdr.fsf%40zeitkraut.de. >>For more options, visit https://groups.google.com/d/optout. > >-- >You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. >To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20171024164746.GC90469%40protagoras. >For more options, visit https://groups.google.com/d/optout.