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

Added safe check for avoiding type errors in case of empty schemas. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VShingala
Copy link

@VShingala VShingala commented Nov 18, 2020

While using this module for transforming to schema from certain JSON data, I was getting TypeError: Cannot read property 'type' of null due to the schema being null in some cases.

This PR adds a safe check before proceeding further that schemas are not empty (null/undefined).

@Arsfiqball
Copy link

This really saved my day. Is this project still maintained?

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.

None yet

2 participants