fix: respect Binder interface for primitive types in BindStringToObject by vikstrous · Pull Request #86 · oapi-codegen/runtime

@vikstrous @claude

Previously, the Binder interface was only checked within the struct case
of the type switch, causing primitive types (strings, ints, etc.) that
implement Binder to bypass their custom binding logic. This fix moves
the Binder check to the beginning of BindStringToObject, ensuring all
types implementing Binder use their custom Bind method, regardless of
their underlying type. The redundant check in the struct case has been
removed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

mromaszewicz

@vikstrous2