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
describe how one can protect from cyclical objects starting an infini… (#3447)
* describe how one can protect from cyclical objects starting an infinite loop
* correct erroneous file deletions
* Update readme
---------
Co-authored-by: Jan Dockx <Jan_Dockx@peopleware.be>
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
Copy file name to clipboardexpand all lines: README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1957,7 +1957,9 @@ Thanks to [ggoodman](https://github.com/ggoodman) for suggesting this.
1957
1957
1958
1958
### Cyclical objects
1959
1959
1960
-
Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop.
1960
+
Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop in some cases.
1961
+
1962
+
> To detect cyclical objects before they cause problems, consider [this approach](https://gist.github.com/colinhacks/d35825e505e635df27cc950776c5500b).
Copy file name to clipboardexpand all lines: deno/lib/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1957,7 +1957,9 @@ Thanks to [ggoodman](https://github.com/ggoodman) for suggesting this.
1957
1957
1958
1958
### Cyclical objects
1959
1959
1960
-
Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop.
1960
+
Despite supporting recursive schemas, passing cyclical data into Zod will cause an infinite loop in some cases.
1961
+
1962
+
> To detect cyclical objects before they cause problems, consider [this approach](https://gist.github.com/colinhacks/d35825e505e635df27cc950776c5500b).
0 commit comments