File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export function schemaIsOrHasReferenceObject(
2424 isReferenceObject ( a ) ||
2525 ( 'properties' in a &&
2626 Object . values ( a . properties ) . some ( schemaIsOrHasReferenceObject ) ) ||
27+ ( 'items' in a && isReferenceObject ( a . items ) ) ||
2728 ( 'anyOf' in a && a . anyOf . some ( schemaIsOrHasReferenceObject ) ) ||
2829 ( 'allOf' in a && a . allOf . some ( schemaIsOrHasReferenceObject ) ) ||
2930 ( 'oneOf' in a && a . oneOf . some ( schemaIsOrHasReferenceObject ) )
@@ -37,6 +38,7 @@ export function schemaIsOrHasReferenceObjectsExclusively(
3738 isReferenceObject ( a ) ||
3839 ( 'properties' in a &&
3940 Object . values ( a . properties ) . every ( schemaIsOrHasReferenceObject ) ) ||
41+ ( 'items' in a && isReferenceObject ( a . items ) ) ||
4042 ( 'anyOf' in a && a . anyOf . every ( schemaIsOrHasReferenceObject ) ) ||
4143 ( 'allOf' in a && a . allOf . every ( schemaIsOrHasReferenceObject ) ) ||
4244 ( 'oneOf' in a && a . oneOf . every ( schemaIsOrHasReferenceObject ) )
You can’t perform that action at this time.
0 commit comments