Skip to content

Commit

Permalink
Merge pull request #209 from lob/GC-2518/remove-validation
Browse files Browse the repository at this point in the history
GC-2518/fixes letters tracking event validation
  • Loading branch information
juanfriss authored Mar 11, 2024
2 parents e135691 + bb027f8 commit 864f8ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions lob_python/model/letter.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,15 @@ class Letter(ModelNormal):
}

validations = {
('tracking_events',): {
'max_items': 0,
('template_id',): {
'regex': {
'pattern': r'^tmpl_[a-zA-Z0-9]+$', # noqa: E501
},
},
('template_version_id',): {
'regex': {
'pattern': r'^vrsn_[a-zA-Z0-9]+$', # noqa: E501
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "lob-python"
VERSION = "5.1.2"
VERSION = "5.1.3"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit 864f8ba

Please sign in to comment.