Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
7 contributors

Users who have contributed to this file

@tusharmakkar08 @svisser @alecthomas @zackmorris @efficiosoft @odedfos @ngaya-ll
148 lines (111 sloc) 6.85 KB

Changelog

[0.11.7]

Changes

  • #378: Allow extend() of a Schema to return a subclass of a Schema as well.

New:

  • #364: Accept description for Inclusive instances.
  • #373: Accept msg for Maybe instances.
  • #382: Added support for default values in Inclusive instances.

Fixes:

  • #371: Fixed DeprecationWarning related to collections.Mapping.
  • #377: Preserve Unicode strings when passed to utility functions (e.g., Lower(), Upper()).
  • #380: Fixed regression with Any and required flag.

[0.11.5]

  • Fixed issue with opening README file in setup.py.

[0.11.4]

  • Removed use of pypandoc as Markdown is now supported by setup().

[0.11.3] and [0.11.2]

Changes:

  • #349: Support Python 3.7.
  • #343: Drop support for Python 3.3.

New:

  • #342: Add support for sets and frozensets.

Fixes:

  • #332: Fix Python 3.x compatibility for setup.py when pypandoc is installed.
  • #348: Include path in AnyInvalid errors.
  • #351: Fix Date behaviour when a custom format is specified.

[0.11.1] and [0.11.0]

Changes:

  • #293: Support Python 3.6.
  • #294: Drop support for Python 2.6, 3.1 and 3.2.
  • #318: Allow to use nested schema and allow any validator to be compiled.
  • #324: Default values MUST now pass validation just as any regular value. This is a backward incompatible change if a schema uses default values that don't pass validation against the specified schema.
  • #328: Modify __lt__ in Marker class to allow comparison with non Marker objects, such as str and int.

New:

  • #307: Add description field to Marker instances.
  • #311: Add Schema.infer method for basic schema inference.
  • #314: Add SomeOf validator.

Fixes:

  • #279: Treat Python 2 old-style classes like types when validating.
  • #280: Make IsDir(), IsFile() and PathExists() consistent between different Python versions.
  • #290: Use absolute imports to avoid import conflicts.
  • #291: Fix Coerce validator to catch decimal.InvalidOperation.
  • #298: Make Schema([]) usage consistent with Schema({}).
  • #303: Allow partial validation when using validate decorator.
  • #316: Make Schema.__eq__ deterministic.
  • #319: Replace implementation of Maybe(s) with Any(None, s) to allow it to be compiled.

[0.10.5]

  • #278: Unicode translation to python 2 issue fixed.

[0.10.2]

Changes:

  • #195: Range raises RangeInvalid when testing math.nan.
  • #215: {} and [] now always evaluate as is, instead of as any dict or any list. To specify a free-form list, use list instead of []. To specify a free-form dict, use dict instead of Schema({}, extra=ALLOW_EXTRA).
  • #224: Change the encoding of keys in error messages from Unicode to UTF-8.

New:

  • #185: Add argument validation decorator.
  • #199: Add Unordered.
  • #200: Add Equal.
  • #207: Add Number.
  • #210: Add Schema equality check.
  • #212: Add coveralls.
  • #227: Improve Marker management in Schema.
  • #232: Add Maybe.
  • #234: Add Date.
  • #236, #237, and #238: Add script for updating gh-pages.
  • #256: Add support for OrderedDict validation.
  • #258: Add Contains.

Fixes:

  • #197: ExactSequence checks sequences are the same length.
  • #201: Empty lists are evaluated as is.
  • #205: Filepath validators correctly handle None.
  • #206: Handle non-subscriptable types in humanize_error.
  • #231: Validate namedtuple as a tuple.
  • #235: Update docstring.
  • #249: Update documentation.
  • #262: Fix a performance issue of exponential complexity where all of the dict keys were matched against all keys in the schema. This resulted in O(n*m) complexity where n is the number of keys in the dict being validated and m is the number of keys in the schema. The fix ensures that each key in the dict is matched against the relevant schema keys only. It now works in O(n).
  • #266: Remove setuptools as a dependency.

0.9.3 (2016-08-03)

Changelog not kept for 0.9.3 and earlier releases.

You can’t perform that action at this time.