OpenFolia

Importformat

Die Felder der import.json eines Import-Pakets, aus ihrem JSON-Schema.

Diese Referenz ist auf Englisch: Sie wird aus dem JSON-Schema der import.json erzeugt, das nur auf Englisch geschrieben ist. Zur englischen Seite: Import format.

Content from another system reaches the platform as an import bundle: a ZIP archive with import.json at its root (the modules, manuals and a report, described below) and the files it refers to under assets/. A converter run outside the platform makes the bundle; the import checks it against the target repository and says what is wrong, item by item, before anything is written. The JSON Schema of import.json is published with the content model as @openfolia/content-model/import-format.schema.json.

The format's guide, with examples: import-format.md.

import.json at the root of an import bundle (a ZIP with import.json and assets/<sha256>). See docs/import-format.md in @openfolia/content-model.

FieldTypeRequiredDefaultDescription
formatVersion1yes
sourceobject
source.systemstring (at most 200)yes
source.exportedAtstring (at most 200)
source.descriptionstring (at most 1000)
modulesobject[]yes
modules[].schemaVersion1yes
modules[].idstring (at most 100)yes
modules[].metaobjectyes
modules[].meta.titlestringyes
modules[].meta.typestring (at most 64)yes
modules[].meta.langstringyes
modules[].meta.audiencestring (at most 64)
modules[].meta.facetsobject{}
modules[].meta.facets.<key>string (at most 64)[]
modules[].meta.keywordsstring (at most 64)[]
modules[].meta.sourceobject
modules[].meta.source.systemstringyes
modules[].meta.source.idstringyes
modules[].meta.deprecatedobject
modules[].meta.deprecated.reasonstring (at most 500)yes
modules[].meta.deprecated.replacedBystring (at most 100)
modules[].blocksobject[]yes
modules[].blocks[].type"paragraph" | "section" | "list" | "procedure" | "table" | "image" | "attachment" | "safety" | "admonition" | "faq" | "variant" | "moduleRef" | "literal" | "passthrough" | "pageBreak"yes
modules[].blocks[].idstring (at most 64)yes
modules[].blocks[].contentobject[]yes
modules[].blocks[].content[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].content[].textstring | object[]yes
modules[].blocks[].content[].marksobject[]
modules[].blocks[].content[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].content[].marks[].hrefstring (uri)yes
modules[].blocks[].content[].marks[].termIdstring (at most 100)yes
modules[].blocks[].content[].namestring (at most 64)yes
modules[].blocks[].content[].modulestring (at most 100)yes
modules[].blocks[].content[].blockstring (at most 64)
modules[].blocks[].content[].text[].type"text"yes
modules[].blocks[].content[].text[].textstringyes
modules[].blocks[].content[].text[].marksobject[]
modules[].blocks[].content[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].content[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].content[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].content[].keysstring[]yes
modules[].blocks[].content[].calloutstring (at most 64)yes
modules[].blocks[].content[].keystring (at most 64)yes
modules[].blocks[].titleobject[]yes
modules[].blocks[].title[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].title[].textstring | object[]yes
modules[].blocks[].title[].marksobject[]
modules[].blocks[].title[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].title[].marks[].hrefstring (uri)yes
modules[].blocks[].title[].marks[].termIdstring (at most 100)yes
modules[].blocks[].title[].namestring (at most 64)yes
modules[].blocks[].title[].modulestring (at most 100)yes
modules[].blocks[].title[].blockstring (at most 64)
modules[].blocks[].title[].text[].type"text"yes
modules[].blocks[].title[].text[].textstringyes
modules[].blocks[].title[].text[].marksobject[]
modules[].blocks[].title[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].title[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].title[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].title[].keysstring[]yes
modules[].blocks[].title[].calloutstring (at most 64)yes
modules[].blocks[].title[].keystring (at most 64)yes
modules[].blocks[].blocksobject[]yes
modules[].blocks[].orderedbooleanyes
modules[].blocks[].itemsobject[]yes
modules[].blocks[].items[].idstring (at most 64)yes
modules[].blocks[].items[].contentobject[]yes
modules[].blocks[].items[].content[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].items[].content[].textstring | object[]yes
modules[].blocks[].items[].content[].marksobject[]
modules[].blocks[].items[].content[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].items[].content[].marks[].hrefstring (uri)yes
modules[].blocks[].items[].content[].marks[].termIdstring (at most 100)yes
modules[].blocks[].items[].content[].namestring (at most 64)yes
modules[].blocks[].items[].content[].modulestring (at most 100)yes
modules[].blocks[].items[].content[].blockstring (at most 64)
modules[].blocks[].items[].content[].text[].type"text"yes
modules[].blocks[].items[].content[].text[].textstringyes
modules[].blocks[].items[].content[].text[].marksobject[]
modules[].blocks[].items[].content[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].items[].content[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].items[].content[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].items[].content[].keysstring[]yes
modules[].blocks[].items[].content[].calloutstring (at most 64)yes
modules[].blocks[].items[].content[].keystring (at most 64)yes
modules[].blocks[].items[].blocksobject[]yes
modules[].blocks[].stepsobject[]yes
modules[].blocks[].steps[].idstring (at most 64)yes
modules[].blocks[].steps[].contentobject[]yes
modules[].blocks[].steps[].content[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].steps[].content[].textstring | object[]yes
modules[].blocks[].steps[].content[].marksobject[]
modules[].blocks[].steps[].content[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].steps[].content[].marks[].hrefstring (uri)yes
modules[].blocks[].steps[].content[].marks[].termIdstring (at most 100)yes
modules[].blocks[].steps[].content[].namestring (at most 64)yes
modules[].blocks[].steps[].content[].modulestring (at most 100)yes
modules[].blocks[].steps[].content[].blockstring (at most 64)
modules[].blocks[].steps[].content[].text[].type"text"yes
modules[].blocks[].steps[].content[].text[].textstringyes
modules[].blocks[].steps[].content[].text[].marksobject[]
modules[].blocks[].steps[].content[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].steps[].content[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].steps[].content[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].steps[].content[].keysstring[]yes
modules[].blocks[].steps[].content[].calloutstring (at most 64)yes
modules[].blocks[].steps[].content[].keystring (at most 64)yes
modules[].blocks[].steps[].blocksobject[]yes
modules[].blocks[].columnsobject[]yes
modules[].blocks[].columns[].widthinteger (0 to 9007199254740991)yes
modules[].blocks[].columns[].align"left" | "center" | "right"
modules[].blocks[].headerbooleanyes
modules[].blocks[].rowsobject[]yes
modules[].blocks[].rows[].cellsobject[]yes
modules[].blocks[].rows[].cells[].colspaninteger (1 to 100)
modules[].blocks[].rows[].cells[].rowspaninteger (1 to 100)
modules[].blocks[].rows[].cells[].blocksobject[]yes
modules[].blocks[].assetstringyes
modules[].blocks[].altstringyes
modules[].blocks[].widthnumber (0 to 100)
modules[].blocks[].calloutsobject[]
modules[].blocks[].callouts[].idstring (at most 64)yes
modules[].blocks[].callouts[].anchorobjectyes
modules[].blocks[].callouts[].anchor.xnumber (0 to 1)yes
modules[].blocks[].callouts[].anchor.ynumber (0 to 1)yes
modules[].blocks[].callouts[].labelobject
modules[].blocks[].callouts[].label.xnumber (0 to 1)yes
modules[].blocks[].callouts[].label.ynumber (0 to 1)yes
modules[].blocks[].callouts[].legendobject[]yes
modules[].blocks[].callouts[].legend[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].callouts[].legend[].textstring | object[]yes
modules[].blocks[].callouts[].legend[].marksobject[]
modules[].blocks[].callouts[].legend[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].callouts[].legend[].marks[].hrefstring (uri)yes
modules[].blocks[].callouts[].legend[].marks[].termIdstring (at most 100)yes
modules[].blocks[].callouts[].legend[].namestring (at most 64)yes
modules[].blocks[].callouts[].legend[].modulestring (at most 100)yes
modules[].blocks[].callouts[].legend[].blockstring (at most 64)
modules[].blocks[].callouts[].legend[].text[].type"text"yes
modules[].blocks[].callouts[].legend[].text[].textstringyes
modules[].blocks[].callouts[].legend[].text[].marksobject[]
modules[].blocks[].callouts[].legend[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].callouts[].legend[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].callouts[].legend[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].callouts[].legend[].keysstring[]yes
modules[].blocks[].callouts[].legend[].calloutstring (at most 64)yes
modules[].blocks[].callouts[].legend[].keystring (at most 64)yes
modules[].blocks[].callouts[].whenobject
modules[].blocks[].callouts[].when.op"all" | "any" | "not" | "in" | "cmp"yes
modules[].blocks[].callouts[].when.ofobject[] | objectyes
modules[].blocks[].callouts[].when.attrstring (at most 64)yes
modules[].blocks[].callouts[].when.valuesstring[]yes
modules[].blocks[].callouts[].when.cmp"<" | "<=" | ">" | ">="yes
modules[].blocks[].callouts[].when.valuestringyes
modules[].blocks[].callouts[].stylestring (at most 64)
modules[].blocks[].calloutOrder"reading" | "manual"
modules[].blocks[].calloutLegend"below" | "beside" | "none"
modules[].blocks[].namestring (at most 200)yes
modules[].blocks[].descriptionstring (at most 1000)
modules[].blocks[].fileNamestring (at most 255)yes
modules[].blocks[].mediaTypestringyes
modules[].blocks[].sizeinteger (0 to 9007199254740991)yes
modules[].blocks[].severity"danger" | "warning" | "caution" | "notice"yes
modules[].blocks[].hazardobject[]yes
modules[].blocks[].hazard[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].hazard[].textstring | object[]yes
modules[].blocks[].hazard[].marksobject[]
modules[].blocks[].hazard[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].hazard[].marks[].hrefstring (uri)yes
modules[].blocks[].hazard[].marks[].termIdstring (at most 100)yes
modules[].blocks[].hazard[].namestring (at most 64)yes
modules[].blocks[].hazard[].modulestring (at most 100)yes
modules[].blocks[].hazard[].blockstring (at most 64)
modules[].blocks[].hazard[].text[].type"text"yes
modules[].blocks[].hazard[].text[].textstringyes
modules[].blocks[].hazard[].text[].marksobject[]
modules[].blocks[].hazard[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].hazard[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].hazard[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].hazard[].keysstring[]yes
modules[].blocks[].hazard[].calloutstring (at most 64)yes
modules[].blocks[].hazard[].keystring (at most 64)yes
modules[].blocks[].symbolsstring (at most 64)[]yes
modules[].blocks[].kind"note" | "tip" | "important"yes
modules[].blocks[].questionobject[]yes
modules[].blocks[].question[].type"text" | "attribute" | "xref" | "kbd" | "calloutRef" | "hardBreak" | "placeholder"yes
modules[].blocks[].question[].textstring | object[]yes
modules[].blocks[].question[].marksobject[]
modules[].blocks[].question[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].question[].marks[].hrefstring (uri)yes
modules[].blocks[].question[].marks[].termIdstring (at most 100)yes
modules[].blocks[].question[].namestring (at most 64)yes
modules[].blocks[].question[].modulestring (at most 100)yes
modules[].blocks[].question[].blockstring (at most 64)
modules[].blocks[].question[].text[].type"text"yes
modules[].blocks[].question[].text[].textstringyes
modules[].blocks[].question[].text[].marksobject[]
modules[].blocks[].question[].text[].marks[].type"strong" | "emphasis" | "code" | "sub" | "sup" | "ui" | "link" | "term"yes
modules[].blocks[].question[].text[].marks[].hrefstring (uri)yes
modules[].blocks[].question[].text[].marks[].termIdstring (at most 100)yes
modules[].blocks[].question[].keysstring[]yes
modules[].blocks[].question[].calloutstring (at most 64)yes
modules[].blocks[].question[].keystring (at most 64)yes
modules[].blocks[].whenobjectyes
modules[].blocks[].when.op"all" | "any" | "not" | "in" | "cmp"yes
modules[].blocks[].when.ofobject[] | objectyes
modules[].blocks[].when.attrstring (at most 64)yes
modules[].blocks[].when.valuesstring[]yes
modules[].blocks[].when.cmp"<" | "<=" | ">" | ">="yes
modules[].blocks[].when.valuestringyes
modules[].blocks[].modulestring (at most 100)yes
modules[].blocks[].blockstring (at most 64)
modules[].blocks[].textstringyes
modules[].blocks[].languagestring
modules[].blocks[].formatstringyes
modules[].blocks[].rawstringyes
manualsobject[][]
manuals[].schemaVersion1yes
manuals[].idstring (at most 100)yes
manuals[].titlestring | objectyes
manuals[].audiencestring (at most 64)
manuals[].deprecatedobject
manuals[].deprecated.reasonstring (at most 500)yes
manuals[].deprecated.replacedBystring (at most 100)
manuals[].glossaryboolean
manuals[].designstring (at most 100)
manuals[].coverImageobject
manuals[].coverImage.defaultobject
manuals[].coverImage.default.assetstringyes
manuals[].coverImage.default.altstring (at most 500) | objectyes
manuals[].coverImage.variantsobject[][]
manuals[].coverImage.variants[].assetstringyes
manuals[].coverImage.variants[].altstring (at most 500) | objectyes
manuals[].coverImage.variants[].variantobjectyes
manuals[].variantsobject[]yes
manuals[].attributesobject{}
manuals[].attributes.<key>string | object[]
manuals[].entriesobject[]yes
manuals[].entries[].modulestring (at most 100)yes
manuals[].entries[].whenobject
manuals[].entries[].when.op"all" | "any" | "not" | "in" | "cmp"yes
manuals[].entries[].when.ofobject[] | objectyes
manuals[].entries[].when.attrstring (at most 64)yes
manuals[].entries[].when.valuesstring[]yes
manuals[].entries[].when.cmp"<" | "<=" | ">" | ">="yes
manuals[].entries[].when.valuestringyes
manuals[].entries[].titlestring | objectyes
manuals[].entries[].entriesobject[]yes
reportobject[][]
report[].sourceIdstring (at most 500)yes
report[].sourceKindstring (at most 100)
report[].messagestring (at most 4000)yes
report[].modulestring (at most 100)
report[].blockstring (at most 64)