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
|`circular`|`boolean` or `"ignore"`| Determines whether [circular `$ref` pointers](README.md#circular-refs) are handled.<br><br>If set to `false`, then a `ReferenceError` will be thrown if the schema contains any circular references.<br><br> If set to `"ignore"`, then circular references will simply be ignored. No error will be thrown, but the [`$Refs.circular`](refs.md#circular) property will still be set to `true`. |
80
83
|`excludedPathMatcher`|`(string) => boolean`| A function, called for each path, which can return true to stop this path and all subpaths from being dereferenced further. This is useful in schemas where some subpaths contain literal `$ref` keys that should not be dereferenced. |
84
+
|`onCircular`|`(string) => void`| A function, called immediately after detecting a circular `$ref` with the circular `$ref` in question. |
81
85
|`onDereference`|`(string, JSONSchemaObjectType, JSONSchemaObjectType, string) => void`| A function, called immediately after dereferencing, with: the resolved JSON Schema value, the `$ref` being dereferenced, the object holding the dereferenced prop, the dereferenced prop name. |
0 commit comments