Skip to content

Releases: acacode/swagger-typescript-api

v13.7.2

26 Apr 09:34
Immutable release. Only release title and notes can be modified.
5a2a50e

Choose a tag to compare

Patch Changes

  • 5f6b28a Thanks @js2me! - yet another fix of the issue #1433 (incorrect yaml multiline parsing)

v13.7.1

25 Apr 22:04
Immutable release. Only release title and notes can be modified.
1a7d681

Choose a tag to compare

Patch Changes

  • 189ad98 Thanks @js2me! - fixed normalization external refs in swagger schema

v13.7.0

24 Apr 21:22
Immutable release. Only release title and notes can be modified.
2351c59

Choose a tag to compare

Minor Changes

  • beccbaa Thanks @js2me! - Add typeNameSeparator config option for joining typePrefix, type name,
    and typeSuffix in TypeNameFormatter.

    This separator is primarily effective with disableFormatTypeNames: true,
    or when custom hooks.onFormatTypeName preserves separators without
    normalization.

  • 162739a Thanks @js2me! - Add disableFormatTypeNames option to disable type name formatting
    and normalization in the generator.

    When enabled, generated names keep raw separators (for example,
    Foo_Bar stays Foo_Bar), which prevents collisions caused by
    startCase-based normalization (such as Foo_Bar and FooBar
    both becoming FooBar).

    The option is available in config and via CLI as
    --disable-format-type-names, and is covered by a dedicated
    spec test in tests/spec/disableFormatTypeNames.

Patch Changes

  • #1726 1b60264 Thanks @mlewando-cp! - Dedupe colliding TypeScript identifiers produced by the TypeNameFormatter.

    Two OpenAPI schema keys that differ only in separator placement — e.g.
    Foo_Bar and FooBar — used to collapse to the same identifier via
    startCase + whitespace-strip and emit two export interface FooBar
    declarations (TS2717 whenever the shapes differed).

    TypeNameFormatter now exposes a precommit(rawNames) method the generator
    calls once after loading schema components and before schema parsing. It
    resolves every raw name in two passes — canonical names (raw === formatted
    output) claim their slot first, then non-canonical names suffix-until-free —
    so user-declared identifiers like FooBar1 are preserved regardless of
    source order, and collisions deterministically produce FooBar, FooBar1,
    FooBar2, … References to each schema (including inline generics in route
    handlers) stay consistent with the emitted export interface declarations.

    format() is now a pure cache lookup with a fallback for names discovered
    after precommit (enum keys, extractEnums/extractResponses results). All
    formatting logic is concentrated in a single private computeFormattedName
    helper, so the new behavior composes cleanly with disableFormatTypeNames
    and typeNameSeparator.

    Fixes #1724.

v13.6.11

24 Apr 10:12
Immutable release. Only release title and notes can be modified.
afcf838

Choose a tag to compare

Patch Changes

v13.6.10

16 Apr 10:15
Immutable release. Only release title and notes can be modified.
cfc3592

Choose a tag to compare

Patch Changes

v13.6.9

16 Apr 07:36
Immutable release. Only release title and notes can be modified.
e7a7cb0

Choose a tag to compare

Patch Changes

  • 756f5aa Thanks @js2me! - rich typings and data for parsed route raw data

v13.6.8

09 Apr 21:41
Immutable release. Only release title and notes can be modified.
e2681d2

Choose a tag to compare

Patch Changes

  • 8414b3c Thanks @js2me! - Fix extracted response/error type names colliding with existing schemas. Add tests.

v13.6.7

04 Apr 21:09
Immutable release. Only release title and notes can be modified.
3c9676d

Choose a tag to compare

Patch Changes

v13.6.6

01 Apr 21:27
Immutable release. Only release title and notes can be modified.
3a7ab3c

Choose a tag to compare

Patch Changes

v13.6.5

16 Mar 21:09
Immutable release. Only release title and notes can be modified.
6c7db9a

Choose a tag to compare

Patch Changes