FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: NumberSchema min/max/default should be number, not integer by gsdv · Pull Request #2710 · modelcontextprotocol/modelcontextprotocol · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .json  (1) .mdx  (1) .ts  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion docs/specification/draft/changelog.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ the previous revision, [2025-11-25](/specification/2025-11-25).

## Other schema changes

N/A
1. `schema.json` now correctly reflects that the Typescript definition of wminimum/maximum/default are `number`'s and not just `integers`. This was casued by using the generator using `--defaultNumberType integer` ([PR#2710](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2710)).

## Governance and process updates

Expand Down
6 changes: 3 additions & 3 deletions schema/draft/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions schema/draft/schema.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -3027,8 +3027,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;
}

Expand Down
Loading

Back | FazBrowse Home | New Git URL