Back to Explore

ThomasAribart/json-schema-to-ts

GitHub
1 watchersOpen source

Last release:

Infer TS types directly from JSON schemas using the `FromSchema` type. Useful for keeping TypeScript types consistent with schema definitions, reducing duplication when you already use JSON schemas for validation or API contracts.

Project status

  • The source appears actively maintained, with an upstream push on 2026-05-09, which is relatively recent compared to today (2026-08-11).
  • The evidence provided for detailed update notes only goes up to v3.1.1 in 2024-08-29 (then v3.1.0 in 2024-05-04, v3.0.1 in 2024-03-10), so the exact update cadence since then is unclear from the supplied summaries.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.1.1

    v3.1.1 primarily updates repository automation, including automatically syncing README sponsors and improving GitHub Actions workflows. The code diff also reveals TypeScript/Deno typing changes related to JSON Schema handling and a Deno-side dependency update, which are not mentioned in the release notes.

    BreakingFeatures
  • v3.1.0

    v3.1.0 adds type inference support for the JSON Schema object keyword `unevaluatedProperties`, and updates the README with examples and clarifications. The code changes also include deeper internal adjustments to schema merging and updated JSON schema typing, plus dependency upgrades that were not mentioned in the release notes.

    Features
  • v3.0.1

    v3.0.1 primarily refactors the type layer to remove the external `json-schema` dependency. Release notes mention dependency removal and minor documentation/lint cleanup, but the code diff shows a much larger public type API refactor and a new parsing option that changes inferred required properties.

    Features
  • v3.0.0

    This release changes the inferred TypeScript type for JSON Schema object properties that specify a `default` value. By default, such properties are now treated as required in the resulting `FromSchema` types.

    Breaking
  • v2.12.0

    v2.12.0 adds a documentation FAQ explaining how to apply FromSchema when using generics, and updates the README to link to it. On the build side, it switches the type compilation step from using ttsc to using tsc plus tsc-alias for handling TypeScript path aliases.

  • v2.11.0

    v2.11.0 primarily refactors the library's TypeScript type definitions, including schema typing and parsing internals, and adds a large amount of JSDoc. The release notes also mention a dependency bump for @babel/traverse and a removal of deep writable/readonly helpers.

  • v2.10.0

    v2.10.0 primarily includes dependency bumps (semver, word-wrap, tough-cookie) and documentation-oriented changes (notably adding JSDoc). The code diff also shows several tooling and CI-related adjustments (format checking, ESLint JSDoc plugin configuration) plus regeneration of Deno type definitions.

  • v2.9.2

    Release v2.9.2 release notes only mention a small terminology/casing change. However, the actual code diff shows a much larger set of TypeScript type system refactors, including changes to the public type-export surface and significant rewrites of the array/tuple parsing type logic.

  • v2.9.1

    v2.9.1 release notes only claim a CI/build fix to support building the project with a previous TypeScript version. The actual diff shows changes to GitHub Actions that alter how and when a specific TypeScript version is installed during CI, including introducing a new “default” mode where no TypeScript override happens.

  • v2.9.0

    v2.9.0 release notes only mention finalizing the release workflow. The code diff, however, also includes substantial updates to the Deno generated TypeScript definition file (builds/deno/index.d.ts), plus changes to GitHub Actions workflow steps related to npm publishing and GitHub output handling.

    Breaking