Limitations & FAQ
Current limitations
NestBruno reflects what is statically visible in decorators. Not modelled:
- Name-based decorator matching — aliased imports (
Controller as C), namespace imports (common.Get) and custom decorators (@MyGet) are not recognized. - Top-level classes only — controller inheritance is not followed.
- Static prefix and versioning only —
setGlobalPrefixand URI versioning are composed from the bootstrap when statically provable (Phase 12);RouterModule, dynamic bootstrap expressions, and header/media-type versioning strategies do not appear in URLs. - Sources over 256 KiB are skipped (reported as an error).
- No field-level merge — any user edit locks the whole request; a route change on an edited request is a conflict, not a merge.
seqis user-owned after creation. - Nothing is deleted while any source file failed to analyze.
syncreads the whole collection each run;watchkeeps an in-memory index but does not watch the collection (your Bruno edits are caught by write-time verification).- Not generated:
@Allroutes, unresolved/array paths, paths with?,#, whitespace or{{. Body examples are skeletons, not full validation schemas. DTO resolution has boundaries — see DTO Resolution for the full supported subset (same-file DTOs must not useexport; Zod chains must start atz.objector a schema constant and use only statically provable transformations;createZodDtoclasses must live in an imported module). - Watch mode dependency invalidation is index-based — editing an imported DTO file re-analyzes exactly the controllers whose last analysis recorded an import of it (added 2026-11-10). A file that no analysis ever recorded as a dependency is not watched as one; its importers pick the change up when the controller itself changes (the safe fallback).
sync --stageddependency scope — cross-file imports resolve from the captured Git index snapshot only; dependencies that were never staged into the index (or whose entries are conflicted or non-regular) are not resolvable and degrade to the conservative unknown shape.- No environment or
folder.bru—baseUrlmust be defined by you. - Output verified with Bruno's parser library, not by opening the desktop app; Windows/macOS are exercised in CI but were developed on Linux; watch end-to-end tests are Unix-only.
FAQ
Does NestBruno run my application? No. Static analysis only — your TypeScript is never executed (see Safety).
Will it overwrite the requests I edited? No. An edited request is detected by its content hash and becomes a conflict. Delete the file (or its stamp line) to adopt the regenerated version.
What happens to requests of removed routes? Unmodified generated requests are deleted; modified ones become conflicts; anything unknown is preserved.
Can I hand-write requests in the same collection? Yes. Files without a NestBruno stamp are preserved untouched, forever.
Why is @Query generated as a disabled parameter? So the parameter is visible and editable in Bruno but no invented value is ever sent. Fill it in and enable it.
Why and no environment file? Environments are user-owned; NestBruno creates none. Define baseUrl in Bruno, or set base_url in nestbruno.toml.
Does it watch node_modules? No — never watched, never scanned.
Is the output deterministic? Yes: identical source and configuration produce byte-identical files, so the collection is Git-diff friendly.
What does exit code 4 mean? "Finished, but incomplete": at least one file could not be read/parsed. Fix the files named by error: diagnostics — until then, no destructive operation runs.
Where are the development details? In the repository: docs/architecture.md, docs/phases/, and the Phases overview.