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 the bug oneOf method on number schema emits type number instead of union of literals. Though if schema is string then emitted type is perfectly correct.
Describe the bug
oneOf
method onnumber
schema emits typenumber
instead of union of literals. Though if schema isstring
then emitted type is perfectly correct.To Reproduce
Expected behavior
oneOf
's emmited type should be union of literals. E.g. type ofNumberOneOf
in example above should be1 | 2 | 3
.Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: