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

improving schema #232

Merged
merged 2 commits into from Jul 31, 2018
Merged

improving schema #232

merged 2 commits into from Jul 31, 2018

Conversation

samuelcolvin
Copy link
Member

fix #213

@codecov
Copy link

codecov bot commented Jul 20, 2018

Codecov Report

Merging #232 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #232   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines        1396   1416   +20     
  Branches      257    264    +7     
=====================================
+ Hits         1396   1416   +20

@samuelcolvin
Copy link
Member Author

@Gr1N let me know what you think. I believe this is ready to be released.

I'm away on holiday from the end of today until the 30th of July, so will probably need to wait until then to release.

'item_types': [sf.type_schema(by_alias) for sf in self.sub_fields],
}
else:
assert self.shape is Shape.SINGLETON, self.shape
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to use asserts in production code?

@Gr1N
Copy link
Contributor

Gr1N commented Jul 23, 2018

Tested in my projects, it's great! Have a good holidays!

@samuelcolvin samuelcolvin merged commit e0d8d96 into master Jul 31, 2018
@samuelcolvin samuelcolvin deleted the schema-take-2 branch July 31, 2018 08:55
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.

Failed to create schema with optional fields
2 participants