z_integer: Create Integer Schema

View source: R/schema.R

z_integerR Documentation

Create Integer Schema

Description

Create a JSON Schema for integer type.

Usage

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

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.

Value

A list representing JSON Schema for integer.

Examples

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

aisdk documentation built on May 29, 2026, 9:07 a.m.