Skip to content

chore(deps-dev): Bump json-schema-to-typescript from 15.0.4 to 16.0.0 - #22

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/json-schema-to-typescript-16.0.0
Open

chore(deps-dev): Bump json-schema-to-typescript from 15.0.4 to 16.0.0#22
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/json-schema-to-typescript-16.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown

Bumps json-schema-to-typescript from 15.0.4 to 16.0.0.

Changelog

Sourced from json-schema-to-typescript's changelog.

16.0.0

This release collects the fixes and small features merged since 15.0.4. Several of them correct types that were previously emitted wrong, so existing schemas may generate different output; hence the major version.

New:

  • e3c7776 Feat: Support OpenAPI 3.0 nullable: true, including next to a $ref; such schemas now emit T | null (#755, fixes #410)
  • ab31f41 Feat: Support draft-3 / Swagger 2 property-level required: true; such properties are now emitted as required (#756, fixes #440, #6)
  • 111c187 Feat: Resolve draft-07 named-anchor $refs ("#name" matching a sibling $id: "#name") instead of crashing (#744, fixes #220)

May change emitted types for existing schemas:

  • efceb64 Bugfix: Multiple patternProperties (or patternProperties with additionalProperties: false) are folded into one index signature typed as the union of their value types, instead of being dropped (#754, fixes #160, #315)
  • b84b3da Bugfix: allOf members made up only of unsupported keywords (eg. if/then, not) no longer add a stray {[k: string]: unknown} to the intersection (#743, fixes #369)
  • d8618e5 Bugfix: properties/patternProperties on a nested schema were dropped when combined with oneOf/anyOf/allOf; they are now intersected with the compound type (#708, fixes #630)
  • 4eee0f1 Bugfix: $refs to definitions with dotted names (eg. #/definitions/v1.ManagedFieldsEntry) were truncated at the first dot (V1); the full name is now used (V1ManagedFieldsEntry) (#705, fixes #645)
  • 7a3dd8e Bugfix: Nested arrays with minItems/maxItems are capped by the cumulative product of their bounds against maxItems, falling back to an unbounded array instead of hanging or emitting enormous tuple unions (#703, fixes #690)
  • 34a692c Bugfix: type: null (the JSON null value) is treated as type: "null" instead of as an untyped object (#702, fixes #667)
  • 0f9d309 Bugfix: unreachableDefinitions now declares definitions even when declareExternallyReferenced is off (#706, fixes #652)
  • 1900e1f Bugfix: With inferStringEnumKeysFromValues, a const is emitted as a literal type again rather than a single-member enum (#701, fixes #666)
  • 606e359 Bugfix: A schema with an array type and properties (eg. type: ['object', 'null']) at the root or as an untitled definition compiled to A & (A | null), making the non-object members unreachable; it now emits A | null (#753, supersedes #672)
  • c73ea75 Bugfix: An empty schema inside allOf (eg. allOf: [{$ref: '#/definitions/User'}, {}]) collapsed the whole intersection to unknown; the empty member is now dropped and User is kept (#752, fixes #654)
  • 9c50776 Bugfix: The description of an inline items schema is no longer dropped; it is added to the JSDoc of the array's declaration as an Items: ... paragraph (#751, fixes #660)

Fixes for crashes and output that did not compile:

  • b25c768 Bugfix: A root-level $ref to a definition that is itself only a $ref no longer crashes with "Refs should have been resolved by the resolver!" (#741, fixes #740)
  • b25c768 Bugfix: A root-level $ref to a definition that refers back to itself (directly or through items/properties) compiles instead of crashing with the same error (#741, fixes #132, #730). The referenced definition is still emitted as its own interface alongside the root type
  • 107dd42 Bugfix: Index signatures from patternProperties/additionalProperties are widened to cover sibling named properties, so the interface typechecks (TS2411). Index signatures that already typechecked are emitted type-equivalent to before (#704, fixes #671)
  • a2234d3 Bugfix: inferStringEnumKeysFromValues no longer produces invalid enum members for non-string, empty or digit-leading values (#694, fixes #657)
  • 377c6a1 Bugfix: A named enum (tsEnumNames) in a position with no name no longer emits a nameless enum declaration; it degrades to a union of literals (#693, fixes #691)
  • c44faed Bugfix: Generated type names can no longer start with a digit or collapse to an empty name (#698, fixes #640)
  • 8d8a141 Bugfix: Recursive schemas that reach the generator without a name (a self-referencing $ref with a sibling keyword such as description, a recursive oneOf under components/schemas, an untitled recursive schema in another file) are given a generated type name instead of overflowing the stack. Schemas that compiled before are unchanged, except that an anonymous recursive union with a {}/true member now keeps its alias (same type, one extra export type) (#760, fixes #482, #614)

Other:

  • bf06bbb Bugfix (CLI): Piping a schema on stdin no longer prints a DEP0187 deprecation warning on Node 24 (#750)
  • 3abde40 Perf: compile() no longer scans every definition once per parsed node; schemas with thousands of definitions compile much faster (schemastore's CloudFormation schema: ~54 s -> ~3 s). Generated output is unchanged (#759)
  • b88891c Perf: Formatting large, mostly quote-free outputs is several times faster (prettier is told the output is a .d.ts, so it skips its JSX-detection scan); a caller's own style.filepath still wins. Generated output is unchanged (#758)
  • 16c2e77 Bugfix (CLI): relative $refs are resolved against each schema file's own directory rather than process.cwd(), so a schema passed by path from another directory finds its siblings; an explicit --cwd still wins (#742, fixes #324, #680)
  • 9219636 Updated runtime dependencies: js-yaml 4 -> 5 (YAML files parse as before, #689), prettier ^3.9 (short unions that fit on one line are no longer wrapped; users on the existing ^3.2.5 range may already see this), @​apidevtools/json-schema-ref-parser ^11.9 (#686)
  • a5834aa Removed the is-glob dependency (#643)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [json-schema-to-typescript](https://github.com/bcherny/json-schema-to-typescript) from 15.0.4 to 16.0.0.
- [Changelog](https://github.com/bcherny/json-schema-to-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcherny/json-schema-to-typescript/commits)

---
updated-dependencies:
- dependency-name: json-schema-to-typescript
  dependency-version: 16.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Sep 2, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants