diff --git a/declarations/functions/request/utils/fastestValidator/constructFVContent.ts b/declarations/functions/request/utils/fastestValidator/constructFVContent.ts index a5f85fe6..a2a81f62 100644 --- a/declarations/functions/request/utils/fastestValidator/constructFVContent.ts +++ b/declarations/functions/request/utils/fastestValidator/constructFVContent.ts @@ -3,7 +3,10 @@ import { exObIterator } from "../tsMorph/exObIterator.ts"; import { getImpSourceFile } from "../tsMorph/getImpSourceFile.ts"; import { constructFVModels } from "./constructFVModels.ts"; -export async function constructFVContents(sourceFile: SourceFile) { +export async function constructFVContents(entryPoint: SourceFile) { + //find lesan source file + const sourceFile = getImpSourceFile(entryPoint, "serveLesan"); + //get object iterator in mod.ts const objectIterator = sourceFile.getFirstDescendantByKindOrThrow( SyntaxKind.ElementAccessExpression diff --git a/declarations/functions/response/utils/constructResponseContent.ts b/declarations/functions/response/utils/constructResponseContent.ts index e299881c..ebade187 100644 --- a/declarations/functions/response/utils/constructResponseContent.ts +++ b/declarations/functions/response/utils/constructResponseContent.ts @@ -3,10 +3,13 @@ import { constructResponseModel } from "./constructResponseModel.ts"; import { getImpSourceFile, exObIterator } from "../../request/utils/mod.ts"; export function constructResponseContent( - sourceFile: SourceFile, + entryPoint: SourceFile, createdSourceFile: SourceFile, withDetails: boolean = true ) { + //find lesan source file + const sourceFile = getImpSourceFile(entryPoint, "serveLesan"); + //get object iterator in mod.ts const objectIterator = sourceFile.getFirstDescendantByKindOrThrow( SyntaxKind.ElementAccessExpression