-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add recursiveModuleScan option to scanner
The module scanning now correctly respects: - Default scan depth (1 level) with `deepScanRoutes` - Full recursive scanning with `recursiveModuleScan` - Custom depth limits with `maxScanDepth`
- Loading branch information
Showing
11 changed files
with
321 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ApiTags } from '../../../../lib'; | ||
|
||
@ApiTags('depth1-dogs') | ||
@Controller('depth1-dogs') | ||
export class Depth1DogsController { | ||
@Get() | ||
findAll() { | ||
return 'Depth1 Dogs'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { Depth1DogsController } from './depth1-dogs.controller'; | ||
import { Depth2DogsModule } from '../depth2-dogs/depth2-dogs.module'; | ||
|
||
@Module({ | ||
imports: [Depth2DogsModule], | ||
controllers: [Depth1DogsController] | ||
}) | ||
export class Depth1DogsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ApiTags } from '../../../../lib'; | ||
|
||
@ApiTags('depth2-dogs') | ||
@Controller('depth2-dogs') | ||
export class Depth2DogsController { | ||
@Get() | ||
findAll() { | ||
return 'Depth2 Dogs'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { Depth2DogsController } from './depth2-dogs.controller'; | ||
import { Depth3DogsModule } from '../depth3-dogs/depth3-dogs.module'; | ||
|
||
@Module({ | ||
imports: [Depth3DogsModule], | ||
controllers: [Depth2DogsController] | ||
}) | ||
export class Depth2DogsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ApiTags } from '../../../../lib'; | ||
|
||
@ApiTags('depth3-dogs') | ||
@Controller('depth3-dogs') | ||
export class Depth3DogsController { | ||
@Get() | ||
findAll() { | ||
return 'Depth3 Dogs'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { Depth3DogsController } from './depth3-dogs.controller'; | ||
|
||
@Module({ | ||
controllers: [Depth3DogsController] | ||
}) | ||
export class Depth3DogsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ApiTags } from '../../../lib'; | ||
|
||
@ApiTags('dogs') | ||
@Controller('dogs') | ||
export class DogsController { | ||
@Get() | ||
findAll() { | ||
return 'Dogs'; | ||
} | ||
|
||
@Get('puppies') | ||
findPuppies() { | ||
return 'Puppies'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { DogsController } from './dogs.controller'; | ||
import { Depth1DogsModule } from './depth1-dogs/depth1-dogs.module'; | ||
|
||
@Module({ | ||
imports: [Depth1DogsModule], | ||
controllers: [DogsController] | ||
}) | ||
export class DogsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters