From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31674 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harsh Donga Newsgroups: gmane.text.pandoc Subject: Re: Pandoc JSON schema Date: Wed, 2 Nov 2022 07:41:02 -0700 (PDT) Message-ID: <8d53751b-a59c-43fb-a7e1-4f5079903e28n@googlegroups.com> References: <87bmkwdcdr.fsf@zeitkraut.de> <20171024164746.GC90469@protagoras> <20171024165310.GA94787@protagoras> <877evjd5yg.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2680_1424492008.1667400062721" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17108"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD75NRVM24GBBAEDRKNQMGQEE6MNO5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 02 15:41:07 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqEvT-0004Gr-Ku for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 02 Nov 2022 15:41:07 +0100 Original-Received: by mail-oi1-f183.google.com with SMTP id z203-20020aca33d4000000b0035a0c54ff88sf4264014oiz.6 for ; Wed, 02 Nov 2022 07:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=Oyj8zzbaBg0dD5ljidFfWa4A5Xxx2nIaexjD26D1LS8=; b=AqyZkHV7UASP/l/F2yKy16Cdm4mIrDDogpnSGi9iPNfoEtUZ2AOrF8h9jeWy5Gilfl 4FtzklOUANoZC3dhbjI+uDzcJof4Ht+d6MhbvXESU0OpXtmpa1sjXfp6720YWc72WWMv AYc2Gd5+abkI/2Vd7xXl1PHtehNwm6LpNd6TrGugo+l9vxcnRZCefM+/SIYp8J7MURuJ OhqM3aHcsbv5IGbQVSwZsiyEvlIePqU4Gwd9beujzjjuSf/UoYAtnD3mXX4ELF0rXX5B VxubUtfXxEH5eHMNt55pJHpIWW3ZtRCFcLsD+20hs22hj0DiBqhEaUA8lW9IQwIdkmwt 99zA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inclusivestem.org; s=istem-email; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Oyj8zzbaBg0dD5ljidFfWa4A5Xxx2nIaexjD26D1LS8=; b=QZUhEuWG+g9lHv+WeyPbm0F6a+Jo/0FrzaJztRZK4WDRd8ApVSMKEonu+RPOF75IWY p4F0rAbnO4jmHTPlMjwCSpBl/oKbSzak+arLpTlHPmFaof1sjoG8c4wfHvcGeg2ki8IC 94RARyjcE6SnM7DKY6pShKmJVxro6lZbP0FrMbLG2y5mk4/KB6q8ULweAJlZ4QyXSasa HxE3aG/3btqnyyHPX0Rz7nlBJ2hpoudZ9KBWNSyFI4pUb37OLFqwyoyirk+s1KPyFQGF WCc9AwoqyWgxa4lFZxvNhIWa8auzUszmphZQLa38RXm6+IGk/nnnp0UmyzCQIVkUE9Dy Eljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=Oyj8zzbaBg0dD5ljidFfWa4A5Xxx2nIaexjD26D1LS8=; b=PpP48LJsDeGEQOrbQzh7vAaMv9EQcItGODBwkXef5L/AOsVsCcnXwzYjwnV/cftoNM zDQwNyQPVlC5HCFNBmUltwcjKTlkunca9PosK4HXej+3LQbh4+KVF0WT514/EFgctWMx fbsjk8PbkbN+4BEjdZZRMY730G3nX82emil3eX1R1j2neBepiAnogAwEth2OQxRiuBBg Sn01cYNRCZhiL1RAFxJdJmaFx/QQyr19gTBjyVVg7krBk77DbIZ21O5ehmdOkrRQGqYD VSjr3koZVqBdsRwPJ1BiSrOsOEwWqXywiFOVwS3ynAQMr1pomyxLYjuAVgRnvOS60BOJ 0cHg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3r4cQhQyT2oUGs5763dlrNDlhr9Bd4ikavofMwiFrD9EES49TW 4s8Y83TSJo5VuPz0QH353bM= X-Google-Smtp-Source: AMsMyM6HYo0JpR8QPdAr7/y53lBNtABCWodQjQyWKBDD2eM9Ej6y9LVP9Y2BU+bbUYVj3YPRs/67JA== X-Received: by 2002:a9d:5e8e:0:b0:65a:275c:7979 with SMTP id f14-20020a9d5e8e000000b0065a275c7979mr12718103otl.3.1667400066397; Wed, 02 Nov 2022 07:41:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:550:b0:354:d7cd:c5e5 with SMTP id i16-20020a056808055000b00354d7cdc5e5ls4746762oig.3.-pod-prod-gmail; Wed, 02 Nov 2022 07:41:03 -0700 (PDT) X-Received: by 2002:a05:6808:1691:b0:351:48da:62e0 with SMTP id bb17-20020a056808169100b0035148da62e0mr13664726oib.98.1667400063703; Wed, 02 Nov 2022 07:41:03 -0700 (PDT) In-Reply-To: <877evjd5yg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: harsh-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@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.io gmane.text.pandoc:31674 Archived-At: ------=_Part_2680_1424492008.1667400062721 Content-Type: multipart/alternative; boundary="----=_Part_2681_1417748854.1667400062721" ------=_Part_2681_1417748854.1667400062721 Content-Type: text/plain; charset="UTF-8" Hey folks, Do we have any schema validation now, I would like to use it in my custom script which creates pandoc JSON eventually to convert into different formats (HTML. DOCX...). Of course, a way to go is run pandoc command and we can get first erroneous object in json and continuing till they are all resolved. Was hoping to have better solution, if there was any other way Thanks in advance! On Wednesday, 25 October 2017 at 13:18:43 UTC+5:30 Albert Krewinkel wrote: > 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/ > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8d53751b-a59c-43fb-a7e1-4f5079903e28n%40googlegroups.com. ------=_Part_2681_1417748854.1667400062721 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey folks, 
Do we have any schema validation now, I would like to = use it in my custom script which creates pandoc JSON eventually to convert = into different formats (HTML. DOCX...).

Of course,= a way to go is run pandoc command and we can get first erroneous object in= json and continuing till they are all resolved.
Was hoping to ha= ve better solution, if there was any other way 
 
=
Thanks in advance!

On Wednesday, 25 October 2017 at 13:18:4= 3 UTC+5:30 Albert Krewinkel wrote:
John MACFARLANE <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> 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. Tha= t
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.ie= tf.org/doc/draft-ietf-cbor-cddl/

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/8d53751b-a59c-43fb-a7e1-4f5079903e28n%40googlegroups.= com.
------=_Part_2681_1417748854.1667400062721-- ------=_Part_2680_1424492008.1667400062721--