Closed sinclairzx81 closed 9 months ago
This PR updates the Default Value function to ensure that the default annotation is cloned on assignment. Previously, the default annotation was assigned by reference, causing subsequent operations on the value to mutate the annotation.
Default
Reference: https://github.com/sinclairzx81/typebox/issues/726
This PR updates the
Default
Value function to ensure that the default annotation is cloned on assignment. Previously, the default annotation was assigned by reference, causing subsequent operations on the value to mutate the annotation.Reference: https://github.com/sinclairzx81/typebox/issues/726