This package provides TypeScript definitions for the JSON Schema specification. JSON Schema allows you to describe the structure and requirements of your JSON data, enabling validation and automated tooling. Using @types/json-schema, you gain type safety and autocompletion when working with JSON Schemas in your TypeScript projects. It defines interfaces and types for keywords like type, properties, required, and more, ensuring correct usage and improved code quality. This package is commonly used for API request/response validation and data serialization.
The @types/json-schema npm package has seen an inconsistent release frequency. Initial releases occurred in 2017 and 2018 with versions 4.0.0, 6.0.0, 6.0.1, 7.0.0 and 7.0.1. Version 7 saw continued updates through 2023, with a few months seeing multiple releases like in 2019 and 2022. There have been no releases in 2024 or 2025. The latest version is 7.0.15, released in November 2023.
@types/json-schema downloads show impressive growth, peaking in June 2025 at 245 million. While monthly downloads generally increased throughout 2024 and 2025, reaching highs above 200 million, September 2025 has notably fewer downloads, likely due to incomplete data for the month.