Skip to content

Releases: Ultimaker/jsonmodels

2.6.0

29 Oct 14:53
c2dca8e
Compare
Choose a tag to compare

Fields support BsonEncodable values

  • calling Field.toBsonEncodable returns values which can be encoded to JSON

2.5.1

25 Mar 14:11
1c58b81
Compare
Choose a tag to compare

Fixes a big in which a DerivedListField could not have default values

2.5.0

26 Feb 16:01
149001f
Compare
Choose a tag to compare

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
  • 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

09 Oct 15:10
4a8c1f4
Compare
Choose a tag to compare
  • Fixing Length validator for lists
  • Adding item_validators to ListField
  • Dockerfile & Jenkinsfile for testing the service in CI
  • Improving error messages
  • Regex testing improvements
  • Custom errors for regex failures