Skip to content

Commit 0249ce4

Browse files
committed
fix: pascal case
1 parent b293edf commit 0249ce4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/openApi/v2/parser/getModelProperties.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Model } from '../../../client/interfaces/Model';
22
import { getPattern } from '../../../utils/getPattern';
3-
import { toPascalCase } from '../../../utils/toPascalCase';
43
import type { OpenApi } from '../interfaces/OpenApi';
54
import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
65
import { escapeName } from './escapeName';
@@ -21,8 +20,8 @@ export const getModelProperties = (openApi: OpenApi, definition: OpenApiSchema,
2120
models.push({
2221
name: escapeName(propertyName),
2322
export: 'reference',
24-
type: toPascalCase(model.type),
25-
base: toPascalCase(model.base),
23+
type: model.type,
24+
base: model.base,
2625
template: model.template,
2726
link: null,
2827
description: property.description || null,
@@ -44,7 +43,7 @@ export const getModelProperties = (openApi: OpenApi, definition: OpenApiSchema,
4443
maxProperties: property.maxProperties,
4544
minProperties: property.minProperties,
4645
pattern: getPattern(property.pattern),
47-
imports: model.imports.map(toPascalCase),
46+
imports: model.imports,
4847
enum: [],
4948
enums: [],
5049
properties: [],

0 commit comments

Comments
 (0)