Skip to content

Commit 864f8ba

Browse files
authored
Merge pull request #209 from lob/GC-2518/remove-validation
GC-2518/fixes letters tracking event validation
2 parents e135691 + bb027f8 commit 864f8ba

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lob_python/model/letter.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,15 @@ class Letter(ModelNormal):
9797
}
9898

9999
validations = {
100-
('tracking_events',): {
101-
'max_items': 0,
100+
('template_id',): {
101+
'regex': {
102+
'pattern': r'^tmpl_[a-zA-Z0-9]+$', # noqa: E501
103+
},
104+
},
105+
('template_version_id',): {
106+
'regex': {
107+
'pattern': r'^vrsn_[a-zA-Z0-9]+$', # noqa: E501
108+
},
102109
},
103110
}
104111

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools import setup, find_packages # noqa: H301
1212

1313
NAME = "lob-python"
14-
VERSION = "5.1.2"
14+
VERSION = "5.1.3"
1515
# To install the library, run the following
1616
#
1717
# python setup.py install

0 commit comments

Comments
 (0)