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

[schema] Ensure that members declaration is an array #1145

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Jan 2, 2019

When a schema declaration has a fields declaration (for instance) that is assumed to be an array, we blindly try to iterate over it. This PR introduces an array check and falls back to filling the problems with a member declaration error.

@rexxars rexxars requested a review from bjoerge January 2, 2019 09:38
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

👏

Copy link
Contributor

@thomax thomax left a comment

Choose a reason for hiding this comment

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

👍

@rexxars rexxars merged commit 2b7f011 into next Jan 2, 2019
@rexxars rexxars deleted the schema-validation-members-array branch January 2, 2019 12:42
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

3 participants