All Versions
26
Latest Version
Avg Release Cycle
168 days
Latest Release
-

Changelog History
Page 2

  • v0.9.1 Changes

    July 07, 2015

    πŸš€ Released on July 7 2015

    • πŸ›  Fix: 'required' is always evaluated, independent of eventual missing dependencies. This changes the previous behaviour whereas a required field with dependencies would only be reported as missing if all dependencies were met. A missing required field will always be reported. Also see the discussion in https://github.com/pyeve/eve/pull/665.
  • v0.9 Changes

    June 24, 2015

    πŸš€ Released on June 24 2015. Codename: 'Mastrolindo'.

    • πŸ†• New: 'oneof' rule which provides a list of definitions in which only one should validate (C.D. Clark III).
    • πŸ†• New: 'noneof' rule which provides a list of definitions that should all not validate (C.D. Clark III).
    • πŸ†• New: 'anyof' rule accepts a list of definitions and checks that one definition validates (C.D. Clark III).
    • πŸ†• New: 'allof' rule validates if if all definitions validate (C.D. Clark III).
    • πŸ†• New: 'validator.validated' takes a document as argument and returns a validated document or 'None' if validation failed (Frank Sachsenheim).
    • πŸ†• New: PyPy support (Frank Sachsenheim).
    • πŸ†• New: Type coercion (Brett).
    • πŸ†• New: Added 'propertyschema' validation rule (Frank Sachsenheim).

    • πŸ”„ Change: Use 'str.format' in error messages so if someone wants to override them does not get an exception if arguments are not passed. Closes :issue:105. (Brett)

    • πŸ”„ Change: 'keyschema' renamed to 'valueschema', print a deprecation warning (Frank Sachsenheim).

    • πŸ”„ Change: 'type' can also be a list of types (Frank Sachsenheim).

    • πŸ›  Fix: useages of 'document' to 'self.document' in '_validate' (Frank Sachsenheim).

    • πŸ›  Fix: when 'items' is applied to a list, field name is used as key for 'validator.errors', and offending field indexes are used as keys for field errors ({'a_list_of_strings': {1: 'not a string'}}) 'type' can be a list of valid types.

    • πŸ›  Fix: Ensure that additional **kwargs of a subclass persist through validation (Frank Sachsenheim).

    • πŸ›  Fix: improve failure message when testing against multiple types (Frank Sachsenheim).

    • πŸ›  Fix: ignore 'keyschema' when not a mapping (Frank Sachsenheim).

    • πŸ›  Fix: ignore 'schema' when not a sequence (Frank Sachsenheim).

    • πŸ›  Fix: allow_unknown can also be set for nested dicts. Closes :issue:75. (Tobias Betz)

    • πŸ›  Fix: raise SchemaError when an unallowed 'type' is used in conjunction with 'schema' rule (Tobias Betz).

    • πŸ“„ Docs: added section that points out that YAML, JSON, etc. can be used to define schemas (C.D. Clark III).

    • πŸ“„ Docs: Improve 'allow_unknown' documentation (Frank Sachsenheim).

  • v0.8.1 Changes

    March 13, 2015

    πŸš€ Released on Mar 16 2015.

    • πŸ›  Fix: dependency on a sub-document field does not work. Closes :issue:64.
    • πŸ›  Fix: readonly validation should happen before any other validation. Closes :issue:63.
    • πŸ›  Fix: allow_unknown does not apply to sub-dictionaries in a list. Closes :issue:67.
    • πŸ›  Fix: two tests being ignored because of name typo.
    • πŸ›  Fix: update mode does not ignore required fields in subdocuments. Closes :issue:72.
    • πŸ›  Fix: allow_unknown does not respect custom rules. Closes :issue:66.
    • πŸ›  Fix: typo in docstrings (Riccardo).
  • v0.8 Changes

    πŸš€ Released on Jan 7 2015.

    • πŸ‘ 'dependencies' also supports dependency values.
    • 'allow_unknown' can also be set to a validation schema, in which case unknown fields will be validated against it. Closes pyeve/eve:issue:405.
    • πŸ†• New function-based custom validation mode (Luo Peng).
    • Fields with empty definitions in schema were reported as non-existent. Now they are considered as valid, whatever their value is (Jaroslav Semančík).
    • If dependencies are precised for a 'required' field, then the presence of the field is only validated if all dependencies are present (Trong Hieu HA).
    • πŸ“š Documentation typo (Nikita Vlaznev :issue:55).
    • [CI] Add travis_retry to pip install in case of network issues (Helgi Þormar ÞorbjΓΆrnsson :issue:49)
  • v0.7.2 Changes

    πŸš€ Released on Jun 19 2014.

    • Successfully validate int as float type (Florian Rathgeber).
  • v0.7.1 Changes

    πŸš€ Released on Jun 17 2014.

    • Validation schemas are now validated up-front. When you pass a Schema to the Validator it will be validated against the supported ruleset (Paul Weaver). Closes :issue:39.
    • Custom validators also have access to a special 'self.document' variable that allows validation of a field to happen in context of the rest of the document (Josh Villbrandt).
    • Validator options like 'allow_unknown' and 'ignore_none_values' are now taken into consideration when validating sub-dictionaries. Closes :issue:40.
  • v0.7 Changes

    πŸš€ Released on May 16 2014.

    • πŸ‘ Python 3.4 is now supported.
    • πŸ‘ tox support.
    • βž• Added 'dependencies' validation rule (Lujeni).
    • βž• Added 'keyschema' validation rule (Florian Rathgeber).
    • βž• Added 'regex' validation rule. Closes :issue:29.
    • βž• Added 'set' as a core data type. Closes :issue:31.
    • Not-nullable fields are validated independetly of their type definition (Jaroslav Semančík).
    • Python trove classifiers added to setup.py. Closes :issue:32.
    • 'min' and 'max' now apply to floats and numbers too. Closes :issue:30.
  • v0.6 Changes

    πŸš€ Released on February 10 2014

    • βž• Added 'number' data type, which validates against both float and integer values (Brandon Aubie).
    • βž• Added support for running tests with py.test
    • πŸ›  Fix non-blocking problem introduced with 0.5 (Martin Ortbauer).
    • πŸ›  Fix bug when _error() is calld twice for a field (Jaroslav Semančík).
    • More precise error message in rule 'schema' validation (Jaroslav Semančík).
    • πŸ‘‰ Use 'allowed' field for integer just like for string (Peter Demin).
  • v0.5 Changes

    πŸš€ Released on December 4 2013

    • 'validator.errors' now returns a dictionary where keys are document fields and values are lists of validation errors for the field.
    • Validator instances are now callable. Instead of validated = validator.validate(document) you can now choose to do 'validated = validator(document)' (Eelke Hermens).
  • v0.4.0 Changes

    πŸš€ Released on September 24 2013.

    • πŸš€ 'validate_update' is deprecated and will be removed with next release. Use 'validate' with 'update=True' instead. Closes :issue:21.
    • πŸ›  Fixed a minor encoding issue which made installing on Windows/Python3 impossible. Closes :issue:19 (Arsh Singh).
    • πŸ›  Fix documentation typo (Daniele Pizzolli).
    • πŸ‘» 'type' validation is always performed first (only exception being 'nullable'). On failure, subsequent rules on the same field are skipped. Closes :issue:18.