| z_enum | R Documentation |
Create a JSON Schema for string enum type.
z_enum(values, description = NULL, nullable = FALSE, default = NULL)
values |
Character vector of allowed values. |
description |
Optional description of the field. |
nullable |
If TRUE, allows null values. |
default |
Optional default value. |
A list representing JSON Schema for enum.
z_enum(c("celsius", "fahrenheit"), description = "Temperature unit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.