We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
name
pascalCase(originalName)
1 parent 1f39cea commit 7d9bf95Copy full SHA for 7d9bf95
packages/mock/src/faker/resolvers/value.ts
@@ -86,7 +86,7 @@ export function resolveMockValue({
86
allowOverride,
87
}: ResolveMockValueOptions): MockDefinition & { type?: string } {
88
if (isReference(schema)) {
89
- const { originalName, refPaths } = getRefInfo(schema.$ref, context);
+ const { name, refPaths } = getRefInfo(schema.$ref, context);
90
91
const schemaRef = Array.isArray(refPaths)
92
? (prop(
@@ -98,7 +98,7 @@ export function resolveMockValue({
98
99
const newSchema = {
100
...schemaRef,
101
- name: pascal(originalName),
+ name,
102
path: schema.path,
103
isRef: true,
104
required: [...(schemaRef?.required ?? []), ...(schema.required ?? [])],
0 commit comments