Skip to contents

Generate a JSON snippet to patch missing schema properties

Usage

make_schema_patch_snippet(missing_names, default_type = "string")

Arguments

missing_names

Character vector of properties to add.

default_type

One of "string", "number", "integer", "boolean", "object", "array".

Value

A pretty JSON fragment you can paste under "properties" in your schema.

Examples

if (FALSE) { # \dontrun{
d <- check_settings_doc_coverage()
cat(make_schema_patch_snippet(d$missing))
} # }