Skip to main content
Module

x/fun/json_schema.ts>JsonSchemaNumber

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
type alias JsonSchemaNumber
import { type JsonSchemaNumber } from "https://deno.land/x/fun@v2.0.0-alpha.6/json_schema.ts";

Represents number(float or integer) in JSON Schema

definition: { readonly type: "integer"; readonly enum?: NonEmptyArray<number>; } | { readonly type: "number"; readonly enum?: NonEmptyArray<number>; }