Right now, I see no way to directly set the Type of the error as the interface StatusError doesn't include a method, and huma.NewError also doesn't accept a type parameter! Maybe there is something obvious that I'm missing, but right now, I'm passing a custom error type to NewError just to set this field!
@danielgtaylor WDYT of maybe creating a NewErrorWithType or adding a method for StatusError to set the type?
Right now, I see no way to directly set the
Typeof the error as the interfaceStatusErrordoesn't include a method, andhuma.NewErroralso doesn't accept atypeparameter! Maybe there is something obvious that I'm missing, but right now, I'm passing a custom error type toNewErrorjust to set this field!@danielgtaylor WDYT of maybe creating a
NewErrorWithTypeor adding a method forStatusErrorto set the type?