Skip to content

Commit 65b25f5

Browse files
committed
fix pathClassNameDefaultName params
1 parent 8db7aa4 commit 65b25f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface ISwaggerOptions {
4040
methodNameMode?: 'operationId' | 'path' | 'shortOperationId' | ((reqProps: IRequestMethod) => string)
4141
classNameMode?: 'parentPath' | 'normal'
4242
/** only effect classNameMode='parentPath' */
43-
PathClassNameDefaultName?: string
43+
pathClassNameDefaultName?: string
4444
outputDir?: string
4545
fileName?: string
4646
remoteUrl?: string

src/baseInterfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface ISwaggerOptions {
66
methodNameMode?: 'operationId' | 'path' | 'shortOperationId' | ((reqProps: IRequestMethod) => string)
77
classNameMode?: 'parentPath' | 'normal'
88
/** only effect classNameMode='parentPath' */
9-
PathClassNameDefaultName?: string
9+
pathClassNameDefaultName?: string
1010
outputDir?: string
1111
fileName?: string
1212
remoteUrl?: string

src/requestCodegen/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function requestCodegen(paths: IPaths, isV3: boolean, options: ISwaggerOp
4646
className = getClassNameByPath(path)
4747
// 空则归类默认类名
4848
if (className === '') {
49-
className = options.PathClassNameDefaultName
49+
className = options.pathClassNameDefaultName
5050
} else {
5151
className = camelcase(className, { pascalCase: true })
5252
}

0 commit comments

Comments
 (0)