public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Harsh Donga <harsh-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Pandoc JSON schema
Date: Wed, 2 Nov 2022 07:41:02 -0700 (PDT)	[thread overview]
Message-ID: <8d53751b-a59c-43fb-a7e1-4f5079903e28n@googlegroups.com> (raw)
In-Reply-To: <877evjd5yg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1968 bytes --]

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 <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. 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.

[-- Attachment #1.2: Type: text/html, Size: 3005 bytes --]

  parent reply	other threads:[~2022-11-02 14:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 11:16 Albert Krewinkel
     [not found] ` <87bmkwdcdr.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2017-10-24 16:47   ` John MACFARLANE
2017-10-24 16:53     ` John MACFARLANE
2017-10-25  7:47       ` Albert Krewinkel
     [not found]         ` <877evjd5yg.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-02 14:41           ` Harsh Donga [this message]
     [not found]             ` <8d53751b-a59c-43fb-a7e1-4f5079903e28n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-02 15:11               ` Albert Krewinkel
     [not found]                 ` <87pme55qyx.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-02 15:24                   ` Harsh Donga
     [not found]                     ` <81054dc7-a893-4f84-9ce4-ea90f997b12fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-02 15:58                       ` Albert Krewinkel
     [not found]                         ` <87leot5otd.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-12-06  1:04                           ` John MacFarlane
     [not found]                             ` <AC7F0C0B-122B-4BF6-BC02-81FC4BA4B37C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-12-06 15:44                               ` Albert Krewinkel
     [not found]                                 ` <874ju8wn22.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-12-28  9:44                                   ` Harsh Donga
     [not found]                                     ` <4e6dd89d-1dd0-40bb-a760-e3468c5b2403n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-12-29 20:37                                       ` John MacFarlane
     [not found]                                         ` <CE12DC92-2BD1-429F-B266-EF9D3231A982-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-19  9:32                                           ` Jörn K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d53751b-a59c-43fb-a7e1-4f5079903e28n@googlegroups.com \
    --to=harsh-7+afw328pe6p1wguecwpqti2o/jbrioy@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).