You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tree): account for resolveInlineRef behavior when $ref has siblings (#25)
* fix(tree): account for resolveInlineRef behavior when $ref has siblings
* feat(walker): adds a max depth option for refs
---------
Co-authored-by: Daniel A. White <[email protected]>
Copy file name to clipboardExpand all lines: src/tree/types.ts
+3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,10 @@ import type { SchemaFragment } from '../types';
2
2
3
3
exporttypeSchemaTreeOptions={
4
4
mergeAllOf: boolean;
5
+
/** Resolves references to the schemas. If providing a custom implementation, it must return the same object reference for the same reference string. */
5
6
refResolver: SchemaTreeRefDereferenceFn|null;
7
+
/** Controls the level of recursion of refs. Prevents overly complex trees and running out of stack depth. */
/** Resolves references to the schemas. If providing a custom implementation, it must return the same object reference for the same reference string. */
9
10
resolveRef: WalkerRefResolver|null;
11
+
/** Controls the level of recursion of refs. Prevents overly complex trees and running out of stack depth. */
0 commit comments