Hey folks,
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/