Learn R Programming

aisdk (version 1.1.0)

z_integer: Create Integer Schema

Description

Create a JSON Schema for integer type.

Usage

z_integer(
  description = NULL,
  nullable = FALSE,
  default = NULL,
  minimum = NULL,
  maximum = NULL
)

Value

A list representing JSON Schema for integer.

Arguments

description

Optional description of the field.

nullable

If TRUE, allows null values.

default

Optional default value.

minimum

Optional minimum value.

maximum

Optional maximum value.

Examples

Run this code
z_integer(description = "Number of items", minimum = 0)

Run the code above in your browser using DataLab