feat: enhance name formatting functions to include PascalCase conversion
This commit is contained in:
@@ -3,7 +3,7 @@ import path from 'path';
|
||||
import mustache from 'mustache';
|
||||
import { logStep, logSuccess, logDetail } from '../utils/logger';
|
||||
import { mapSwaggerTypeToTs } from '../utils/type-mapper';
|
||||
import { toCamelCase } from '../utils/name-formatter';
|
||||
import { toCamelCase, toPascalCase } from '../utils/name-formatter';
|
||||
import { resolveMockValue } from '../utils/mock-value-resolver';
|
||||
import type {
|
||||
SwaggerAnalysis,
|
||||
@@ -362,7 +362,7 @@ export function generateCleanArchitecture(
|
||||
apis: [
|
||||
{
|
||||
operations: {
|
||||
classname: tag,
|
||||
classname: toPascalCase(tag),
|
||||
classFilename: toCamelCase(tag),
|
||||
classVarName: toCamelCase(tag),
|
||||
constantName: tag.toUpperCase().replace(/[^A-Z0-9]/g, '_'),
|
||||
|
||||
Reference in New Issue
Block a user