Skip to content

Commit

Permalink
chore: fix plugin zod
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Jan 21, 2024
1 parent 16a2952 commit 95387b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/swagger-zod/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const definePlugin = createPlugin<PluginOptions>((options) => {
return path.resolve(root, output.path, baseName)
},
resolveName(name, type) {
const resolvedName = camelCase(name, { suffix: 'schema', isFile: type === 'file' })
const resolvedName = camelCase(name, { suffix: type ? 'schema' : undefined, isFile: type === 'file' })

if (type) {
return transformers?.name?.(resolvedName, type) || resolvedName
Expand Down

0 comments on commit 95387b2

Please sign in to comment.