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.