Learn R Programming

aisdk (version 1.1.0)

z_number: Create Number Schema

Description

Create a JSON Schema for number (floating point) type.

Usage

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

Value

A list representing JSON Schema for number.

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_number(description = "Temperature value", minimum = -100, maximum = 100)

Run the code above in your browser using DataLab