{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://paperspec.scient.ing/schemas/runs.schema.json", "title": "Inline runs", "description": "The runs of a sentence, cell, reference, authors or keywords node; spec/03-nodes.md.", "$defs": { "printed": { "description": "The run's text as the paper prints it, kept by an emend correction (spec/03 §3.5, spec/11 §11.1).", "type": "string", "minLength": 1 } }, "type": "array", "minItems": 1, "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "const": "text" }, "text": { "type": "string", "minLength": 1 }, "style": { "type": "array", "items": { "enum": [ "em", "strong", "sup", "sub", "sc", "mono" ] }, "minItems": 1, "uniqueItems": true }, "printed": { "$ref": "#/$defs/printed" } }, "required": [ "kind", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "math" }, "notation": { "enum": [ "tex", "typst" ] }, "source": { "type": "string", "minLength": 1 }, "form": { "$ref": "common.schema.json#/$defs/mathForm" } }, "required": [ "kind", "notation", "source" ], "additionalProperties": false, "if": { "required": [ "form" ] }, "then": { "properties": { "notation": { "const": "tex" } } } }, { "type": "object", "properties": { "kind": { "const": "cite" }, "refs": { "type": "array", "items": { "$ref": "common.schema.json#/$defs/nodeId" }, "uniqueItems": true }, "text": { "type": "string", "minLength": 1 }, "printed": { "$ref": "#/$defs/printed" } }, "required": [ "kind", "refs", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "xref" }, "target": { "anyOf": [ { "$ref": "common.schema.json#/$defs/nodeId" }, { "$ref": "common.schema.json#/$defs/address" }, { "type": "null" } ] }, "text": { "type": "string", "minLength": 1 }, "printed": { "$ref": "#/$defs/printed" } }, "required": [ "kind", "target", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "fnmark" }, "footnote": { "anyOf": [ { "$ref": "common.schema.json#/$defs/nodeId" }, { "type": "null" } ] }, "text": { "type": "string", "minLength": 1 }, "printed": { "$ref": "#/$defs/printed" } }, "required": [ "kind", "footnote", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "link" }, "url": { "$ref": "common.schema.json#/$defs/url" }, "text": { "type": "string", "minLength": 1 }, "printed": { "$ref": "#/$defs/printed" } }, "required": [ "kind", "url", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "const": "equation" }, "node": { "$ref": "common.schema.json#/$defs/nodeId" } }, "required": [ "kind", "node" ], "additionalProperties": false } ] } }