Changelog#

This page has changelogs for all releases of Oblate.

v1.2.1#

  • Fix missing oblate.fields package during installation of v1.2.0.

v1.2.0#

New features#

Improvements#

  • All fields now have relevant attributes to access values passed to constructor.

  • Field accessing now raises a special exception.

  • Schema constructor now raises TypeError if non-mapping type is passed as data.

Bug fixes#

  • Fix SyntaxError in various Union and Literal fields in older Python versions than 3.11.

v1.1.0#

New features#

Improvements#

v1.0.0#

This version brings an entire rewrite of the library. Many features have been removed along with many additions and breaking changes. 0.2.0 and former are not compatible with this version.

For an overview of changes, see this pull request.

v0.2.0#

New features#

  • Add support for partial schemas
    • Add fields.Partial field.

    • Add Schema.is_partial() helper method.

  • Add ValidationError.is_field_error() helper to check whether exception relates to a field.

  • Add Schema.after_init_hook() method that gets called when schema is finished initializing.

  • Add load_key and dump_key parameters to fields.Field to control the field names during serialization/deserialization of data.

  • Add ValidationError.state to allow storing state to an error that can later be accessed.

  • Add include and exclude parameters to Schema.dump().

  • Add raw parameter to Field.validate() and Field.add_validator() to validate raw value.

Improvements#

  • Object fields now support raw data serialization upon setting after initialization.

  • Schema and all fields now have __slots__ defined for performance sake.

  • User defined validators are now ran after field value_* methods by default. Such that, validators now take serialized value instead of raw one. For previous behaviour, raw parameter must be used.

Bug fixes#

  • Fix Schema.dump() returning empty dictionary.

  • Fix fields returning improper values when initializing multiple schemas.

  • Fix unable to set None on nullable fields after initialization.

  • Fix field getting the new value using the setter even when the validations fail.

Documentation#

  • Add “Tutorials” section

v0.1.0#

  • Initial release