Skip to content

Latest commit

 

History

History
129 lines (76 loc) · 2.78 KB

CHANGELOG.md

File metadata and controls

129 lines (76 loc) · 2.78 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.2.2

Added

  • add nstr validator #63

Fixed

  • support Python 3.10 ~ 3.12 #61
  • fix some typing hints #61
  • fix int validator default max value #62

1.2.1

Added

  • add bytes validator
  • add typing hints for public APIs

Changed

  • support T.enum with enum class parameter

1.2.0

Added

  • add union validator. #36
  • support dynamic dict validator. #38
  • add timedelta validator. #39
  • add enum validator. #40
  • add slug validator. #41
  • add fqdn validator. #41
  • support nested model class. #7520d96
  • str validator accept int objects, and support match parameter. #38
  • dict validator support slim parameter. #47
  • add maxlen parameter to dict, url, and create_re_validator. #a64640

Changed

  • replaced custom enum validator with builtin enum validator.

Deprecated

  • create_enum_validator functon is deprecated, use builtin enum validator instead.

1.1.3

Added

  • fields function support dict schema, eg: T.dict({...}). #32

Changed

  • Change behavior from deepcopy to copy when use dict and list validator without inner validator, improve performance. #31
  • Deprecate Python 3.4, Add Python 3.8 to CI #33

1.1.2

Added

  • Support pure Python mode. #30

1.1.1 - 2019-06-01

Added

  • Add ModelInvalid exception, support get error datails when modelclass invalid. #28 #28

1.1.0 - 2019-03-23

Added

  • Support control validator accept and output type, add object parameter. #22 #24
  • Add accept_object parameter to str validator. #24
  • Handle invalid values more flexibly. #23 #25
  • Add invalid_to and invalid_to_default parameter. #25
  • Add field and value attributes to ValidrError #25

Changed

  • validator decorator now use accept and output to control data types, string argument is deprecated. #24

1.0.6 - 2018-10-16

Fixed

  • Fix list unique check slow #17,#21
  • Fix install error when system encoding not UTF-8 #19

1.0.4 - 2018-08-02

Added

  • Add is_string and validator attributes to validator

1.0.3 - 2018-07-03

Changed

  • Support set and frozenset as schema slice keys
  • Support create model with dict as position argument
  • Fix copy custom validator

1.0.0 - 2018-06-29

Added

  • A Python based schema and validators, easy to write schema with fewer mistakes
  • Model class, similar to dataclass in python 3.7

Changed

  • Not compatible with previous schema!

0.14.1 - 2017-05-25

This is the last version of old schema syntax.

Added

  • A JSON String based schema and validators, works for an internal web application