Releases: Ultimaker/jsonmodels
Releases · Ultimaker/jsonmodels
2.6.0
Fields support BsonEncodable values
- calling Field.toBsonEncodable returns values which can be encoded to JSON
2.5.1
Fixes a big in which a DerivedListField could not have default values
2.5.0
This PR adds the following features:
- New fields:
- DerivedListField(field) can be used to create a list of custom/validated primitives
- MapField(key_field, value_field) can be used to create a dict based off two other fields
- GenericField() accepts any kind of value, but converts it's contents accordingly
- Fields improvements
- (Derived)ListField accepts an
omit_empty
argument to hide it from the output when no items are given - Validation errors are much more specific and contain metadata
- Automatic model type detection
- (Derived)ListField accepts an
- Json schemas improvements:
- Floats and datetimes now have the correct 'type' and 'format'
- Fields with 'help_text' get a description in the output schema
2.4.0
- Fixing
Length
validator for lists - Adding
item_validators
toListField
- Dockerfile & Jenkinsfile for testing the service in CI
- Improving error messages
- Regex testing improvements
- Custom errors for regex failures