powered by
Create a JSON Schema for string enum type.
z_enum(values, description = NULL, nullable = FALSE, default = NULL)
A list representing JSON Schema for enum.
Character vector of allowed values.
Optional description of the field.
If TRUE, allows null values.
Optional default value.
z_enum(c("celsius", "fahrenheit"), description = "Temperature unit")
Run the code above in your browser using DataLab