Skip to content

Fix property setting bug when typ is dict - #109

Merged
cwacek merged 1 commit into
cwacek:masterfrom
mbroomfield-r7:fix/oneof-type-bug
Nov 28, 2017
Merged

cwacek merged 1 commit into
cwacek:masterfrom
mbroomfield-r7:fix/oneof-type-bug

Conversation

@mbroomfield-r7

Copy link
Copy Markdown
Contributor

Fixed a bug where a StopIteration exception would be raised because of
improper filtering on the validators.SCHEMA_TYPE_MAPPING when
searching for a property's type definition.

Added a regression test for the bug. The test uses a schema where a property's type was defined in a oneOf.
This hits the code path of the bug.

Fixed a bug where a StopIteration exception would be raised because of
improper filtering on the `validators.SCHEMA_TYPE_MAPPING` when
searching for a property's type definition.

Added a regression test for the bug. The test uses a schema where a property's `type` was defined in a `oneOf`.
This hits the code path of the bug.
@@ -0,0 +1,27 @@
import pytest

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'pytest' imported but unused

@cwacek
cwacek merged commit 6fbced7 into cwacek:master Nov 28, 2017
@mbroomfield-r7

Copy link
Copy Markdown
Contributor Author

Woo! Thanks for the merge! :)
@cwacek out of curiosity, when do you plan to do your next release?

@mbroomfield-r7

Copy link
Copy Markdown
Contributor Author

Friendly ping @cwacek, just wondering when we can see a patch release for this. <3

@cwacek

cwacek commented Dec 4, 2017 via email

Copy link
Copy Markdown
Owner

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.

3 participants