mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
Increase code coverage for core packages (#12872)
This commit is contained in:
@@ -556,7 +556,7 @@ export function hasCycleInSchema(schema: object): boolean {
|
||||
|
||||
if ('$ref' in node && typeof node.$ref === 'string') {
|
||||
const ref = node.$ref;
|
||||
if (ref === '#/' || pathRefs.has(ref)) {
|
||||
if (ref === '#' || ref === '#/' || pathRefs.has(ref)) {
|
||||
// A ref to just '#/' is always a cycle.
|
||||
return true; // Cycle detected!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user