What's broken?
The JSON schema is wrong (incorrect type, constraint, or field)
Where in the spec or docs?
What should happen?
NumberSchema 'maximum'/ 'minimum' should be number type in JSON schema
What actually happens?
NumberSchema 'maximum'/ 'minimum' is of type integer JSON schema
Anything else?
JSON Schema:
TS Schema:
It might be happening as we are using the script to generate JSON schema and converting all numbers to integer.
|
`npx typescript-json-schema --defaultNumberType integer --required --skipLibCheck "${schemaTs}" "*"` |
On similar line, Why we have integer in JSON schema as there is no integer type in JSON ? (Shouldn't everything be number)
What's broken?
The JSON schema is wrong (incorrect type, constraint, or field)
Where in the spec or docs?
modelcontextprotocol/schema/2025-11-25/schema.json
Line 2115 in 91a643c
What should happen?
NumberSchema 'maximum'/ 'minimum' should be number type in JSON schema
What actually happens?
NumberSchema 'maximum'/ 'minimum' is of type integer JSON schema
Anything else?
JSON Schema:
modelcontextprotocol/schema/2025-11-25/schema.json
Line 2115 in 91a643c
TS Schema:
modelcontextprotocol/schema/2025-11-25/schema.ts
Line 2267 in 91a643c
It might be happening as we are using the script to generate JSON schema and converting all numbers to integer.
modelcontextprotocol/scripts/generate-schemas.ts
Line 64 in 91a643c
On similar line, Why we have integer in JSON schema as there is no integer type in JSON ? (Shouldn't everything be number)