Skip to main content
Module

x/fun/mod.ts>json_schema.JsonSchemaNumber

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

Represents number(float or integer) in JSON Schema

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