mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-06 04:21:03 +00:00
Update src/index.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user