chore(deps): update dependency json-schema-to-typescript to v16 - #1369
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency json-schema-to-typescript to v16#1369renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/json-schema-to-typescript-16.x
branch
8 times, most recently
from
September 2, 2026 11:53
6a2f924 to
58f0a67
Compare
renovate
Bot
force-pushed
the
renovate/json-schema-to-typescript-16.x
branch
from
September 2, 2026 12:04
58f0a67 to
06063b7
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^15.0.4→^16.0.0Release Notes
bcherny/json-schema-to-typescript (json-schema-to-typescript)
v16.0.0Compare Source
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:
e3c7776Feat: Support OpenAPI 3.0nullable: true, including next to a$ref; such schemas now emitT | null(#755, fixes #410)ab31f41Feat: Support draft-3 / Swagger 2 property-levelrequired: true; such properties are now emitted as required (#756, fixes #440, #6)111c187Feat: 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:
efceb64Bugfix: MultiplepatternProperties(orpatternPropertieswithadditionalProperties: false) are folded into one index signature typed as the union of their value types, instead of being dropped (#754, fixes #160, #315)b84b3daBugfix:allOfmembers made up only of unsupported keywords (eg.if/then,not) no longer add a stray{[k: string]: unknown}to the intersection (#743, fixes #369)d8618e5Bugfix:properties/patternPropertieson a nested schema were dropped when combined withoneOf/anyOf/allOf; they are now intersected with the compound type (#708, fixes #630)4eee0f1Bugfix:$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)7a3dd8eBugfix: Nested arrays withminItems/maxItemsare capped by the cumulative product of their bounds againstmaxItems, falling back to an unbounded array instead of hanging or emitting enormous tuple unions (#703, fixes #690)34a692cBugfix:type: null(the JSON null value) is treated astype: "null"instead of as an untyped object (#702, fixes #667)0f9d309Bugfix:unreachableDefinitionsnow declares definitions even whendeclareExternallyReferencedis off (#706, fixes #652)1900e1fBugfix: WithinferStringEnumKeysFromValues, aconstis emitted as a literal type again rather than a single-member enum (#701, fixes #666)606e359Bugfix: A schema with an arraytypeandproperties(eg.type: ['object', 'null']) at the root or as an untitled definition compiled toA & (A | null), making the non-object members unreachable; it now emitsA | null(#753, supersedes #672)c73ea75Bugfix: An empty schema insideallOf(eg.allOf: [{$ref: '#/definitions/User'}, {}]) collapsed the whole intersection tounknown; the empty member is now dropped andUseris kept (#752, fixes #654)9c50776Bugfix: Thedescriptionof an inlineitemsschema is no longer dropped; it is added to the JSDoc of the array's declaration as anItems: ...paragraph (#751, fixes #660)Fixes for crashes and output that did not compile:
b25c768Bugfix: A root-level$refto a definition that is itself only a$refno longer crashes with "Refs should have been resolved by the resolver!" (#741, fixes #740)b25c768Bugfix: A root-level$refto a definition that refers back to itself (directly or throughitems/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 type107dd42Bugfix: Index signatures frompatternProperties/additionalPropertiesare 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)a2234d3Bugfix:inferStringEnumKeysFromValuesno longer produces invalid enum members for non-string, empty or digit-leading values (#694, fixes #657)377c6a1Bugfix: A named enum (tsEnumNames) in a position with no name no longer emits a namelessenumdeclaration; it degrades to a union of literals (#693, fixes #691)c44faedBugfix: Generated type names can no longer start with a digit or collapse to an empty name (#698, fixes #640)8d8a141Bugfix: Recursive schemas that reach the generator without a name (a self-referencing$refwith a sibling keyword such asdescription, a recursiveoneOfundercomponents/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{}/truemember now keeps its alias (same type, one extraexport type) (#760, fixes #482, #614)Other:
bf06bbbBugfix (CLI): Piping a schema on stdin no longer prints aDEP0187deprecation warning on Node 24 (#750)3abde40Perf: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)b88891cPerf: 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 ownstyle.filepathstill wins. Generated output is unchanged (#758)16c2e77Bugfix (CLI): relative$refs are resolved against each schema file's own directory rather thanprocess.cwd(), so a schema passed by path from another directory finds its siblings; an explicit--cwdstill wins (#742, fixes #324, #680)9219636Updated 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.5range may already see this), @apidevtools/json-schema-ref-parser ^11.9 (#686)a5834aaRemoved theis-globdependency (#643)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.