Skip to content

fix(build): Correctly handle repeated array types #47

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

Merged
merged 3 commits into from
Sep 19, 2017

Conversation

elliotttf
Copy link
Contributor

Fixes #44

The problem with the repeated items in the stringified array was actually repeated types in the items array, not patternProperties specifically.

I have also updated the array item builder to throw an exception if the item in the array does not match the schema's definition. This resolves the problem with empty array items, e.g.

[,{"foo":"1","bar":"foo"}]

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks!!

@mcollina mcollina merged commit 62b52a2 into fastify:master Sep 19, 2017
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.

Weird issue with 0.13.0: multiple tuple item type support
3 participants