Skip to main content
Module

x/enzastdlib/schema/mod.ts>JSONSchemaNumber

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
type alias JSONSchemaNumber
import { type JSONSchemaNumber } from "https://deno.land/x/enzastdlib@v0.0.4/schema/mod.ts";

Represents the JSON Schema structure typing for numbers.

Examples

Example 1

import type { JSONSchemaNumber } from 'https://deno.land/x/enzastdlib/schema/mod.ts';

const MY_NUMBER_SCHEMA = {
    type: 'number',

    minimum: 0,
    maximum: 42,
} as const satisfies JSONSchemaNumber;
definition: JSONSchema201909.Number