In spite of enabling the regex and unicode features:
error: invalid regex: regex parse error:
^(\d{1,5}|\d{1,5}-\d{1,5})$
^^
error: Unicode-aware Perl class not found (make sure the unicode-perl feature is enabled)
--> openapi/src/models/listener_config_ports_inner.rs:21:20
|
21 | pattern("^(\\d{1,5}|\\d{1,5}-\\d{1,5})$"),
The error goes away when I enable phonenumber, I'm assuming because phonenumber depends on regex with default features.
Maybe unicode should enable some of the unicode-* features of regex?