Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other types don't inherit methods added to mixed after update to 0.32 #1156

Closed
noinkling opened this issue Dec 8, 2020 · 1 comment
Closed

Comments

@noinkling
Copy link

noinkling commented Dec 8, 2020

Describe the bug
If I call addMethod on mixed (or MixedSchema), that method isn't available on other schema types (string() for example).

To Reproduce
https://codesandbox.io/s/crazy-allen-wfc5p?file=/src/index.test.js

Expected behavior
The method to be available on any other schema type. This was working up until 0.31.1 but broke in 0.32.0

Platform (please complete the following information):

  • Browser: Chrome
  • Version: 0.32.0 - 0.32.5
@jquense
Copy link
Owner

jquense commented Dec 8, 2020

whoops good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants