oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Support encoding.TextUnmarshaler to bind query params

Open yseto opened this issue 2 years ago • 0 comments

Path parameters now supports encoding.TextUnmarshaler interface. https://github.com/deepmap/oapi-codegen/pull/404

Query parameters do not.

I changed to call UnmarshalText instead of reflect.Set if the destination type implements encoding.TextUnmarshaler

yseto avatar Jul 21 '23 08:07 yseto