but I can't get it to match anything, and no corresponding schema is included in the generated OpenAPI JSON doc.
Mikael Ståldal
05/24/2023, 9:08 AM
Ah, it seems like I need to wrap the regex with
()
.
a
Andrew O'Hara
05/24/2023, 1:53 PM
Makes sense. I was confused too.
An alternative is to use a values4k class with regex validation. Values4k is a third-party lib, but http4k has built-in support for it. For example: