File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 4
4
* Fixed detecting when infinity is reached with multipleOf
5
5
* Fixed that min/max items/lenght/properties can be float
6
6
* Fixed that everything with empty `not` is invalid
7
+ * Fixed missing re import when using regex pattern
7
8
* Improved regexp for email format to comfort test suite
8
9
* Improved regexp for date format to comfort test suite
9
10
* Improved regexp for ipv4 format to comfort test suite
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ def generate_format(self):
271
271
self ._generate_format (format_ , format_ + '_re_pattern' , format_regex )
272
272
# Format regex is used only in meta schemas.
273
273
elif format_ == 'regex' :
274
+ self ._extra_imports_lines = ['import re' ]
274
275
with self .l ('try:' , optimize = False ):
275
276
self .l ('re.compile({variable})' )
276
277
with self .l ('except Exception:' ):
You can’t perform that action at this time.
0 commit comments