Skip to content

Commit

Permalink
fix(resource): Corrected create operationId (#3)
Browse files Browse the repository at this point in the history
Removed stray tag close.
  • Loading branch information
clintonb authored Oct 25, 2023
1 parent 3848272 commit ae6efd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/voriteam/nest-schematics.git"
},
"version": "1.0.1",
"version": "1.0.2",
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/resource/files/ts/__name__.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { <%= singular(classify(name)) %>Dto, Create<%= singular(classify(name))
export class <%= classify(name) %>Controller {
constructor(private readonly <%= lowercased(name) %>Service: <%= classify(name) %>Service) {}<% if (type === 'rest' && crud) { %>

@ApiOperation({ operationId: 'create<%= singular(classify(name)) %> %>' })
@ApiOperation({ operationId: 'create<%= singular(classify(name)) %>' })
@ApiCreatedResponse({ type: <%= singular(classify(name)) %>Dto })
@ApiBadRequestResponse()
@Post()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/resource/resource.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ import { UserDto, CreateUserDto, UpdateUserDto } from './dto/user.dto';
export class UsersController {
constructor(private readonly usersService: UsersService) {}
@ApiOperation({ operationId: 'createUser %>' })
@ApiOperation({ operationId: 'createUser' })
@ApiCreatedResponse({ type: UserDto })
@ApiBadRequestResponse()
@Post()
Expand Down

0 comments on commit ae6efd0

Please sign in to comment.