ts-json-schema-generator
2.9.0 · 4 Mar 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed
2.9.0 is the newest release of 2.x.
In short
8 new14 fixed183 internal
Release note
:tada: This release contains work from new contributors! :tada:
Thanks for all your work!
:heart: Alex (@alexchexes)
:heart: Valentyne Stigloher (@pixunil)
:heart: Cal (@CalLavicka)
:heart: James Vaughan (@jamesbvaughan)
:heart: Orta Therox (@orta)
:heart: Sam Sudar (@srsudar)
:heart: Aaron Madlon-Kay (@amake)
:heart: Arya Emami (@aryaemami59)
:heart: Julian Bez (@webjunkie)
:heart: Neal Granger (@10xjs)
Enhancement
node:test #2413 (@arthurfiorette)
Simplify parsing variadic arg (and support -t X Y and -t X -t Y patterns) #2416 (@domoritz)
Add
NewExpressionparser #2346 (@jamesbvaughan)Add --full-description option to include full comment in schema #2224 (@alexchexes)
parser: Support SpreadElement in array literals #2269 (@alexchexes)
Bug Fix
Error "has multiple definitions" with discriminate unions #1836 (@webjunkie)
Remove
removeCommentsfromtsconfig.json#2443 (@aryaemami59)Generic index access constraint case (#542) #2421 (@10xjs @amake)
Follow up for node:test pr #2419 (@arthurfiorette)
Narrow AnyType to StringType in mapped types #2412 (@srsudar)
Mapped number types in Record syntax (#2418) #2418 (@srsudar)
Crashes and incomplete schema generation when mapped/intersection helpers are used with
--additional-propertiesoption #2305 (@alexchexes)Fix promise with generic type arguments #2291 (@CalLavicka)
Prune unreachable definitions when
--type "*"is used with multiple exports #2284 (@alexchexes @arthurfiorette)Crash when a union includes
symbol#2282 (@alexchexes)Correctly generate anyOf on unions with string and boolean constant #2208 (@pixunil)
Fully unwrap union aliases in mapped keys to avoid generating incorrect additionalProperties #2232 (@alexchexes)
Avoid incorrect additionalProperties for Pick<..., AliasLiteralUnion> #2230 (@alexchexes)