Mikael Ståldal
05/23/2023, 2:39 PMroutes += "/foo" / Path.regex("[0-9a-fA-F]{64}").of("bar", "Hex encoded value") meta { /* ... */ }
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()
.Andrew O'Hara
05/24/2023, 1:53 PMclass UserCode private constructor(value: String) : StringValue(value) {
companion object : StringValueFactory<UserCode>(::UserCode, "\\d{6}".regex)
}
and then make a lens with Path.value(UserCode).of("user_code")