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

FIxing "string schema cannot be cast to array schema" #84

Merged
merged 6 commits into from
Feb 28, 2024

Conversation

ramilsngular
Copy link
Contributor

The cast was being tried without checking the incoming type.

I'm proposing a lazy evaluation using "instanceof". I think I didn't break anything, since the tests pass.

jemacineiras
jemacineiras previously approved these changes Feb 10, 2024
Copy link
Contributor

@jemacineiras jemacineiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a missing version bump, right?

@jemacineiras jemacineiras merged commit b279f55 into main Feb 28, 2024
6 checks passed
@jemacineiras jemacineiras deleted the StringSchema-cannot-be-cast-to-ArraySchema branch February 28, 2024 08:45
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 this pull request may close these issues.

2 participants