From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31935 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, 28 Dec 2022 01:44:17 -0800 (PST) Message-ID: <4e6dd89d-1dd0-40bb-a760-e3468c5b2403n@googlegroups.com> References: <87bmkwdcdr.fsf@zeitkraut.de> <20171024164746.GC90469@protagoras> <20171024165310.GA94787@protagoras> <877evjd5yg.fsf@zeitkraut.de> <8d53751b-a59c-43fb-a7e1-4f5079903e28n@googlegroups.com> <87pme55qyx.fsf@zeitkraut.de> <81054dc7-a893-4f84-9ce4-ea90f997b12fn@googlegroups.com> <87leot5otd.fsf@zeitkraut.de> <874ju8wn22.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_23618_982216529.1672220657229" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38317"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD75NRVM24GBB447WCOQMGQEO3WOC3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 28 10:44:24 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f64.google.com ([209.85.160.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pASz1-0009io-8C for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 28 Dec 2022 10:44:23 +0100 Original-Received: by mail-oa1-f64.google.com with SMTP id 586e51a60fabf-14ff323772fsf2860395fac.18 for ; Wed, 28 Dec 2022 01:44:23 -0800 (PST) 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=shEmjxRHevUgfRLwZLHQEqDHfzdz+X8Kcdskft5Oavs=; b=eBfnAAzcj/g+q3dn9g5UhT+53c+DrxLU0V5A5qPVhDzNIYmXA+TZcCkLaHUCuRgPFg HSoUtmfdzVA8xNyuYFpnD8tv7V/Ho4vyxR1xq61njlHN7qJPBBeSDJ4J6VMNK6T6+lqp hjwzAJKW6HsX5xW17Lh5BICfyukVEPn9klYiIf2LHjkFmgXA0OTP56R8oj35V8XJ7jiJ w+XRyPoRr+xQ3SIX6h8t06ILTIJazgcIspprXS/cDm39lQcVyLqqy/xF5szREntMqWPg U1AB5+wdAq3O0AZbpOJbno2237StY+mu7Jn9NXXZ6mhY5H9NCXlErwQSlvuD2LmCamXS EU9A== 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=shEmjxRHevUgfRLwZLHQEqDHfzdz+X8Kcdskft5Oavs=; b=OvFq8TJFc5/AmgciUoesU+wKx0V+XNN84dQAeFayvelEv06SupjPrONDYKcVO6YTjj +KbVUVOiep5T6ZlegEmkZ0wr/+N0sAxSfNJsfr3D3MHQSLQ0e93GgMfNM39FNX8YggFs DGgFtFIXfDYcfKmOE4sMzyAYAOpZMyGg0KlYPNM8rEceEUbdBF5YSuQQ0VwrK3c59Zsy EQBQyQNcAYnCqkCLbXmdx1mAF9dF51azlVu48XM7MrcqYIcNc9AfU/gfnWqQQcxN1mKS VjBUehnxprBmGtuO41TldTL7ACA2X0ENhXpQbRMMUbH7bjEyfCGqypxaic0vWWC4VaO3 qRYg== 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=shEmjxRHevUgfRLwZLHQEqDHfzdz+X8Kcdskft5Oavs=; b=iqGSPFM4cF4taLk8x2NbgsZNbQdDYuIcyqxBrXeIePJKJlsKp+st0XncWhP/Tkj+Vd ifbNLnvhT/0TsKuqcZUeBoHzj7ljnxT28ftAft+7PgFDYunzv8N1cLqCaYXcpsH1K66z VFsjkr2nKC/04/WMoRARs/uG5lBrvOAiJNOInvd9VfqO7dFTjMafgpawnMki0CU/Th2r 97IjKsHGMDgmvjtIGcPcOwC0OvOb9Qs6jrXtuhSVLqEYruSIDAmIYw5naYwbAvwBrmLC TpYLtNJidMUW3oRMKs3WFBUcdZGZum/n1XBLMI/owlvo3UbplQGy7ZQkj7y2T3k9viPu UtMQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2koMpM7wlVKeRmEkeVfFn6lsa2UKKxCipbQKSq6le/2Zf67MHrLY rMs7qiAIqsjLrTX4FGKXBZw= X-Google-Smtp-Source: AMrXdXvasl2QaRmPLzQOuZHd3T+vftK9GgWoOQ7QKzaby9kiXILRhe/Kv7kyoXjoKQk16eD0FrwB1w== X-Received: by 2002:a05:6808:1524:b0:35b:4bd8:6833 with SMTP id u36-20020a056808152400b0035b4bd86833mr1064898oiw.104.1672220661888; Wed, 28 Dec 2022 01:44:21 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:503:0:b0:363:b56:297 with SMTP id 3-20020aca0503000000b003630b560297ls4315598oif.1.-pod-prod-gmail; Wed, 28 Dec 2022 01:44:18 -0800 (PST) X-Received: by 2002:a05:6808:17a8:b0:360:fc79:275 with SMTP id bg40-20020a05680817a800b00360fc790275mr1353884oib.28.1672220658416; Wed, 28 Dec 2022 01:44:18 -0800 (PST) In-Reply-To: <874ju8wn22.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:31935 Archived-At: ------=_Part_23618_982216529.1672220657229 Content-Type: multipart/alternative; boundary="----=_Part_23619_1190620971.1672220657229" ------=_Part_23619_1190620971.1672220657229 Content-Type: text/plain; charset="UTF-8" PFA: pandoc AST json schema (pandoc-types 1.22) On Tuesday, 6 December 2022 at 21:18:37 UTC+5:30 Albert Krewinkel wrote: > > John MacFarlane writes: > > > Albert, what program does one use to validate JSON against the schema > > you made before? > > https://gist.github.com/tarleb/bcb4b31e35263fcbc6cf7e533670c1cf > > I think I used some kind of Python library when I did that, but don't > actually remember. It might have been > https://python-jsonschema.readthedocs.io/ > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- 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/4e6dd89d-1dd0-40bb-a760-e3468c5b2403n%40googlegroups.com. ------=_Part_23619_1190620971.1672220657229 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable PFA: pandoc AST json schema (pandoc-types 1.22)


On Tuesday, 6 Dece= mber 2022 at 21:18:37 UTC+5:30 Albert Krewinkel wrote:

John MacFarlane <fiddlo..= .@gmail.com> writes:

> Albert, what program does one use to validate JSON against the sch= ema
> you made before?
> https://gist.github.com/tarleb/bcb4= b31e35263fcbc6cf7e533670c1cf

I think I used some kind of Python library when I did that, but don'= ;t
actually remember. It might have been
https://p= ython-jsonschema.readthedocs.io/


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/4e6dd89d-1dd0-40bb-a760-e3468c5b2403n%40googlegroups.= com.
------=_Part_23619_1190620971.1672220657229-- ------=_Part_23618_982216529.1672220657229 Content-Type: application/json; name=pandoc_schema.json Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pandoc_schema.json X-Attachment-Id: 9b1c81f3-213d-478d-916f-fefa10d587a1 Content-ID: <9b1c81f3-213d-478d-916f-fefa10d587a1> { "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "Attr": { "type": "array", "items": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } }, { "type": "array", "items": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] } } ] }, "Alignment": { "type": "object", "properties": { "t": { "type": "string", "enum": [ "AlignLeft", "AlignRight", "AlignCenter", "AlignDefault" ] } } }, "ColWidth": { "type": "object", "properties": { "t": { "type": "string", "enum": [ "ColWidth" ] }, "c": { "type": "number" } } }, "ColSpec": { "type": "array", "items": [ { "$ref": "#/definitions/Alignment" }, { "$ref": "#/definitions/ColWidth" } ] }, "Cell": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "$ref": "#/definitions/Alignment" }, { "type": "number" }, { "type": "number" }, { "type": "array", "items": { "$ref": "#/definitions/Block" } } ] }, "Row": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Cell" } } ] }, "TableHead": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Row" } } ] }, "TableBody": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "number" }, { "type": "array", "items": { "$ref": "#/definitions/Row" } }, { "type": "array", "items": { "$ref": "#/definitions/Row" } } ] }, "TableFoot": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Row" } } ] }, "ListAttributes": { "type": "array", "items": [ { "type": "integer" }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "DefaultStyle", "Example", "Decimal", "LowerRoman", "UpperRoman", "LowerAlpha", "UpperAlpha" ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "DefaultDelim", "Period", "OneParen", "TwoParens" ] } } } ] }, "Caption": { "type": "array", "items": [ { "type": [ "string", "null" ] }, { "type": "array", "items": { "$ref": "#/definitions/Block" } } ] }, "Target": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] }, "Citation": { "type": "object", "properties": { "citationId": { "type": "string" }, "citationPrefix": { "type": "array", "items": { "$ref": "#/definitions/Inline" } }, "citationSuffix": { "type": "array", "items": { "$ref": "#/definitions/Inline" } }, "citationMode": { "$ref": "#/definitions/CitationMode" }, "citationNoteNum": { "type": "integer" }, "citationHash": { "type": "integer" } } }, "CitationMode": { "type": "object", "properties": { "t": { "type": "string", "enum": [ "AuthorInText", "SuppressAuthor", "NormalCitation" ] } } }, "MathType": { "type": "object", "properties": { "t": { "type": "string", "enum": [ "DisplayMath", "InlineMath" ] } } }, "QuoteType": { "type": "object", "properties": { "t": { "type": "string", "enum": [ "SingleQuote", "DoubleQuote" ] } } }, "Block": { "oneOf": [ { "type": "object", "properties": { "t": { "type": "string", "pattern": "Table" }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "$ref": "#/definitions/Caption" }, { "type": "array", "items": { "$ref": "#/definitions/ColSpec" } }, { "$ref": "#/definitions/TableHead" }, { "type": "array", "items": { "$ref": "#/definitions/TableBody" } }, { "$ref": "#/definitions/TableFoot" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "Plain" }, "c": { "type": "array", "items": { "$ref": "#/definitions/Inline" } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "Para" }, "c": { "type": "array", "items": { "$ref": "#/definitions/Inline" } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "LineBlock" }, "c": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/definitions/Inline" } } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "CodeBlock" }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "string" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "RawBlock" }, "c": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "BlockQuote" }, "c": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "OrderedList" }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/ListAttributes" }, { "type": "array", "items": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "BulletList" }, "c": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "DefinitionList" }, "c": { "type": "array", "items": { "type": "array", "items": [ { "type": "array", "items": { "$ref": "#/definitions/Inline" } }, { "type": "array", "items": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } ] } } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "Header" }, "c": { "type": "array", "items": [ { "type": "integer" }, { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Inline" } } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "HorizontalRule", "Null" ] } } }, { "type": "object", "properties": { "t": { "type": "string", "pattern": "Div" }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Block" } } ] } } } ] }, "Inline": { "anyOf": [ { "type": "object", "properties": { "t": { "type": "string", "pattern": "Str" }, "c": { "type": "string" } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Emph", "Strong", "Strikeout", "Superscript", "Subscript", "SmallCaps" ] }, "c": { "type": "array", "items": { "$ref": "#/definitions/Inline" } } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Quoted" ] }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/QuoteType" }, { "type": "array", "items": { "$ref": "#/definitions/Inline" } } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Cite" ] }, "c": { "type": "array", "items": [ { "type": "array", "items": { "$ref": "#/definitions/Citation" } }, { "type": "array", "items": { "$ref": "#/definitions/Inline" } } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Code" ] }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "string" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Math" ] }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/MathType" }, { "type": "string" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "RawInline" ] }, "c": { "type": "array", "items": [ { "type": "string" }, { "type": "string" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Image", "Link" ] }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Inline" } }, { "$ref": "#/definitions/Target" } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Span" ] }, "c": { "type": "array", "items": [ { "$ref": "#/definitions/Attr" }, { "type": "array", "items": { "$ref": "#/definitions/Inline" } } ] } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Note" ] }, "c": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "Space", "SoftBreak", "LineBreak" ] } } } ] }, "MetaValue": { "oneOf": [ { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaBool" ] }, "c": { "type": "boolean" } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaString" ] }, "c": { "type": "string" } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaList" ] }, "c": { "type": "array", "items": { "$ref": "#/definitions/MetaValue" } } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaMap" ] }, "c": { "type": "object", "additionalProperties": { "$ref": "#/definitions/MetaValue" } } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaBlocks" ] }, "c": { "type": "array", "items": { "$ref": "#/definitions/Block" } } } }, { "type": "object", "properties": { "t": { "type": "string", "enum": [ "MetaInlines" ] }, "c": { "type": "array", "items": { "$ref": "#/definitions/Inline" } } } } ] }, "Meta": { "type": "object", "additionalProperties": { "$ref": "#/definitions/MetaValue" } } }, "title": "pandoc", "type": "object", "properties": { "blocks": { "type": "array", "items": { "$ref": "#/definitions/Block" } }, "meta": { "$ref": "#/definitions/Meta" }, "pandoc-api-version": { "type": "array", "items": { "type": "number" } } } } ------=_Part_23618_982216529.1672220657229--