First of all, thanks for the great package!
I noticed that the current Base64 validation uses:
var rxBase64 = regexp.MustCompile(`^[a-zA-Z0-9+/_-]+=*$`)
This rejects an empty string.
However, according to RFC 4648 an empty string is a valid Base64 encoding representing zero bytes, and Go’s standard library also accepts it.
Since Huma maps []byte to contentEncoding: base64, allowing "" here might make sense.
First of all, thanks for the great package!
I noticed that the current Base64 validation uses:
This rejects an empty string.
However, according to RFC 4648 an empty string is a valid Base64 encoding representing zero bytes, and Go’s standard library also accepts it.
Since Huma maps []byte to contentEncoding: base64, allowing "" here might make sense.