Update src/index.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Luke Hagar
2025-11-10 10:54:23 -06:00
committed by GitHub
parent 779e410cb8
commit e1901bbdba

View File

@@ -302,7 +302,7 @@ export const parsers: Record<string, Parser> = {
},
astFormat: "openapi-ast",
locStart: (node: OpenAPINode) => 0,
locEnd: (node: OpenAPINode) => node.content?.length || 0,
locEnd: (_node: OpenAPINode, text: string) => text.length,
},
};