Learn R Programming

aisdk (version 1.1.0)

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 code
z_array(z_string(), description = "List of names")

Run the code above in your browser using DataLab