Skip to content

Commit

Permalink
Merge pull request #63 from superglue-ai/glu-193-mesh
Browse files Browse the repository at this point in the history
add auth part to positions in doc extraction
  • Loading branch information
stefanfaistenauer authored Mar 1, 2025
2 parents 1db66b9 + f587255 commit 9ac9176
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/utils/documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export function postProcessLargeDoc(documentation: string, endpointPath: string)

// Find all occurrences of the search term
const positions: number[] = [];

let authPos = docLower.indexOf("securityschemes") || docLower.indexOf("authorization");
if(authPos !== -1) {
positions.push(authPos);
}

let pos = docLower.indexOf(searchTerm);
while (pos !== -1) {
positions.push(pos);
Expand Down

0 comments on commit 9ac9176

Please sign in to comment.