Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Update schematics #8

Closed
wants to merge 3 commits into from
Closed

Conversation

tobigue
Copy link

@tobigue tobigue commented Dec 10, 2013

  • schematics 0.6.0 is not able to validate models holding dictionaries with keys including . or $
  • current version is already 0.9-4

Note that the models of schematics 0.9-4 are not compatible with the models of schematics 0.6.0, so this will be a non backwards-compatible change for most projects using supercell, so maybe we need a new 0.x (beta) version for this.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 37d11fc on tobigue:update/schematics into bd19e9c on truemped:master.

@@ -139,4 +139,4 @@ def provide(self, model, handler):

.. seealso:: :py:mod:`supercell.api.provider.ProviderBase.provide`
'''
handler.write(model.validate())
handler.write(model.to_primitive())
Copy link
Owner

Choose a reason for hiding this comment

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

This means we are not validating the output anymore. Is this intended? I would rather keep the model.validate() line?!

@tobigue
Copy link
Author

tobigue commented Dec 11, 2013

added model validation

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 9e28327 on tobigue:update/schematics into bd19e9c on truemped:master.

truemped pushed a commit that referenced this pull request Dec 11, 2013
Validate model before returning

Fixes #7, #8
@truemped
Copy link
Owner

Merged in 14e630b

@truemped truemped closed this Dec 11, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants