| codebook_schema_helpers | R Documentation |
These light wrappers reuse foundryR's existing strict JSON Schema constructors while following the measurement-layer codebook vocabulary.
type_boolean(desc = NULL)
type_enum(desc = NULL, values)
type_number(desc = NULL)
type_string(desc = NULL)
desc |
Character. Optional field description. |
values |
Character vector of allowed values for |
A JSON Schema fragment represented as an R list.
type_boolean("Whether AI could materially assist the task")
type_enum("Priority label", values = c("low", "medium", "high"))
type_number("Confidence score")
type_string("Short rationale")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.