z_array: Create Array Schema
Description
Create a JSON Schema for array type.
Usage
z_array(
items,
description = NULL,
nullable = FALSE,
default = NULL,
min_items = NULL,
max_items = NULL
)
Value
A list representing JSON Schema for array.
Arguments
- items
Schema for array items (created by z_* functions).
- description
Optional description of the field.
- nullable
If TRUE, allows null values.
- default
Optional default value.
- min_items
Optional minimum number of items.
- max_items
Optional maximum number of items.
Examples
Run this codez_array(z_string(), description = "List of names")
Run the code above in your browser using DataLab