FAQ | This is a LIVE service | Changelog

fix: openapi generator axios typescript temporary patch for axios 1.19.0 incompatibility

Part of: https://gitlab.developers.cam.ac.uk/uis/devops/iam/admin/-/issues/417

axios 1.19.0 (published 2026-07-29) defaults request<T, R>()'s R to a non-exported unique symbol branded type, which breaks TypeScript declaration emit (TS2527) in the generated client's createRequestFunction — every openapi:build:typescript-axios / openapi:docs:typescript-axios run now fails, since the generated package.json floats axios: ^1.6.1. The fix is merged upstream (openapi-generator#24526) but not yet in any release, and our shared CI templates pin the generator at v7.10.0.

Changes:

  • Bump OPENAPI_GENERATOR_OPENAPI_GENERATOR_IMAGE to v7.23.0, the release the upstream fix follows on from.
  • Generate the TypeScript client using common.mustache carrying the same two-line fix (explicit Promise<R> annotation and cast).

Both are stopgaps to remove once the shared CI templates pin a generator release containing the fix.

This is based on the local repo fix https://gitlab.developers.cam.ac.uk/uis/devops/digital-admissions/admissions-portal/ap-emails/-/merge_requests/97

Merge request reports

Loading