Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 1f863d8

Browse files
committed
remove #
1 parent 4973493 commit 1f863d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/internal/OpenApiTools/TypeNodeContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const generatePath = (entryPoint: string, currentPoint: string, referencePath: s
2020
const base = Path.dirname(from).replace(Path.sep, "/");
2121
const result = Path.posix.relative(base, referencePath); // remoteの場合? localの場合 referencePath.split("/")
2222
const pathArray = result.split("/");
23+
if (pathArray[0] === "#") pathArray.shift();
2324
return {
2425
pathArray,
2526
base,

0 commit comments

Comments
 (0)