From c203787424e4e307a2bae0dc53f5853c74036595 Mon Sep 17 00:00:00 2001 From: gsdv Date: Mon, 11 May 2026 09:52:23 -0500 Subject: [PATCH] Using number for NumberSchema min/max/default, not integer. --- schema/2025-11-25/schema.json | 6 +++--- schema/2025-11-25/schema.ts | 9 +++++++++ schema/draft/schema.json | 6 +++--- schema/draft/schema.ts | 9 +++++++++ 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/schema/2025-11-25/schema.json b/schema/2025-11-25/schema.json index 9d2e662a2..c722dd45b 100644 --- a/schema/2025-11-25/schema.json +++ b/schema/2025-11-25/schema.json @@ -2107,16 +2107,16 @@ "NumberSchema": { "properties": { "default": { - "type": "integer" + "type": "number" }, "description": { "type": "string" }, "maximum": { - "type": "integer" + "type": "number" }, "minimum": { - "type": "integer" + "type": "number" }, "title": { "type": "string" diff --git a/schema/2025-11-25/schema.ts b/schema/2025-11-25/schema.ts index 332c3f0ed..d25f76222 100644 --- a/schema/2025-11-25/schema.ts +++ b/schema/2025-11-25/schema.ts @@ -2264,8 +2264,17 @@ export interface NumberSchema { type: "number" | "integer"; title?: string; description?: string; + /** + * @TJS-type number + */ minimum?: number; + /** + * @TJS-type number + */ maximum?: number; + /** + * @TJS-type number + */ default?: number; } diff --git a/schema/draft/schema.json b/schema/draft/schema.json index ee072e523..eb93b6839 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -2515,16 +2515,16 @@ "NumberSchema": { "properties": { "default": { - "type": "integer" + "type": "number" }, "description": { "type": "string" }, "maximum": { - "type": "integer" + "type": "number" }, "minimum": { - "type": "integer" + "type": "number" }, "title": { "type": "string" diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts index 37dc8b889..d103fbb5c 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -3024,8 +3024,17 @@ export interface NumberSchema { type: "number" | "integer"; title?: string; description?: string; + /** + * @TJS-type number + */ minimum?: number; + /** + * @TJS-type number + */ maximum?: number; + /** + * @TJS-type number + */ default?: number; }