The admin console's API client is generated by ng-openapi-gen, so generating it no longer needs Java #203

Open
opened 2026-10-31 12:42:25 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-21
  • Priority: medium (first step of #202)
  • Agent: console-coder
  • Depends on: none
  • Decisions: none

Why

See #202.

What changes

Follow nj-design.md "WP NJ-3", side-by-side shape:

  1. git mv src/angular/src/app/api-client src/angular/src/app/api-client-legacy in its own commit.
  2. Rewrite the 276 import specifiers to the legacy path (exact matches only).
  3. Add ng-openapi-gen at an exact version, with config src/angular/ng-openapi-gen.json. Options from the NJ-1 record: promises:false, services:true, indexFile:true, enumStyle:pascal, skipJsonSuffix:true.
  4. Delete src/angular/openapitools.json and remove @openapitools/openapi-generator-cli.
  5. Update eslint.config.js, .prettierignore and app.config.ts (both clients for now).

Acceptance

  • Angular gate (npm ci, npm test, lint, format:check, npm run build) with the spec count unchanged.
  • After npm run build, git status --short -- src/angular/src/app/api-client is empty.
  • Generation with a Java shim first on PATH leaves the shim log empty.
  • grep -r openapi-generator src/angular --exclude-dir=node_modules --exclude-dir=api-client-legacy finds nothing.
  • Initial bundle size before/after is reported.

Source

nj-design.md "WP NJ-3", sections 3 and 5.

- **Draft:** BUG-21 - **Priority:** medium (first step of #202) - **Agent:** console-coder - **Depends on:** none - **Decisions:** none ### Why See #202. ### What changes Follow `nj-design.md` "WP NJ-3", side-by-side shape: 1. `git mv src/angular/src/app/api-client src/angular/src/app/api-client-legacy` in its own commit. 2. Rewrite the 276 import specifiers to the legacy path (exact matches only). 3. Add `ng-openapi-gen` at an exact version, with config `src/angular/ng-openapi-gen.json`. Options from the NJ-1 record: `promises:false`, `services:true`, `indexFile:true`, `enumStyle:pascal`, `skipJsonSuffix:true`. 4. Delete `src/angular/openapitools.json` and remove `@openapitools/openapi-generator-cli`. 5. Update `eslint.config.js`, `.prettierignore` and `app.config.ts` (both clients for now). ### Acceptance - [ ] Angular gate (`npm ci`, `npm test`, lint, format:check, `npm run build`) with the spec count unchanged. - [ ] After `npm run build`, `git status --short -- src/angular/src/app/api-client` is empty. - [ ] Generation with a Java shim first on `PATH` leaves the shim log empty. - [ ] `grep -r openapi-generator src/angular --exclude-dir=node_modules --exclude-dir=api-client-legacy` finds nothing. - [ ] Initial bundle size before/after is reported. ### Source `nj-design.md` "WP NJ-3", sections 3 and 5.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#203
No description provided.