Releases: cwacek/python-jsonschema-objects
Releases · cwacek/python-jsonschema-objects
Version 0.2.4
Bugfixes:
- Removes an extraneous str method from classbuilder (h/t edwardcwang)
- Ensures 'strict' is passed for definitions as well as main schema classes (h/t neyguvj)
Version 0.2.3
Bugfixes
- Fixes an issue where top level array item constraints weren't actually converted to class wrappers.
Other Things
- Added a section to the README explaining how to create multiple top-level objects.
Version 0.2.2
Bugfixes
- Fixes an issue with opening schema files on systems without a default UTF encoding (#65)
- Updates equality comparisons to check class type before making assumptions about what methods exist (#72)
- Moves requirements into setup.py to better support library use. Also loosens specification of jsonschema as a requirement to allow more versions. (#69)
Version 0.2.1
Bugfixes
- Fixes a bug where calling build_classes twice could cause a fatal error due to re-use of the schema object
Version 0.2.0
This is a minor version change because of relatively significant changes to array handling. Prior to now, arrays objects were handled a little weirdly in that they were stored as native python lists with an associated validator object. This resulted in all sorts of unexpected behavior, with nested arrays being returned without their validators under certain circumstances. This resolves the issue by converting all arrays to first-class object wrappers (and renaming the wrapper to ArrayWrapper instead of ArrayValidator).
Version 0.1.1
Bugfixes:
- Parameters that start with underscores no longer get lost if schemas are updated (h/t @schuyler-glympse)
- Adjusted the type checking resolution order to make sure booleans don't accidentally get accepted because of Python truthiness (h/t @blr246)
- Use JSONSchema to validate input schemas before attempting to build objects from them, to avoid the creation of inscrutable errors
- Fix a number of issues with array validation and serialization (esp. with nested arrays)
Version 0.1.0
This is a mostly bug free and feature complete release. Bumping to 0.1.0 to indicate that it's not a complete basketcase (as indicated by only patch level releases)
Major omissions from the jsonschema specification are support for recursive definitions and the anyOf
property.
Changes:
- Bugfix: Support oneOf in array types (#56)
- Feature: Support retrieval of generated classes by full reference URI (#55)
- Feature: Added support for 'patternProperties'
- Feature: Added ability to specify that generated wrappers should be "strict" at build time
- Bugfix: Fixed a few typing issues for python 3.5
- Bugfix: Made property settings robust to inheritance.
Thanks to @blr246, @itielshwartz for their contributions.
0.0.23-1
Version 0.0.23
- Fixes a couple issues around list item comparisons and formatting (#8)
- Adds Trove classifiers
Version 0.0.19-2
Hotfix #42