Skip to contents

Delegates to deckifyr schema in the bundled Python engine. This one is fully functional today: it dumps the pydantic-generated JSON Schema for design, layouts, or presentation.

Usage

deck_schema(document = c("design", "layouts", "presentation"))

Arguments

document

One of "design", "layouts", or "presentation".

Value

A parsed list representing the document type's JSON Schema.

Details

For IDE YAML tooling (e.g. VS Code's YAML extension, via a # yaml-language-server: $schema=... comment or a yaml.schemas setting) that needs a real file rather than this function's return value, the same schemas also ship as static files at system.file("python", "deckifyr", "schemas", paste0(document, ".schema.json"), package = "deckifyr") (issue #49).

Examples

if (FALSE) { # \dontrun{
schema <- deck_schema("design")
schema$title
} # }