Refs: #52
Styling a parameter whose object schema contains a nested object failed
with a bare "unsupported type Header", which gives no hint that the spec
itself defines no wire format for this. OpenAPI style-based serialization
covers only primitives, arrays, and flat objects; complex values are meant
to use the parameter's content form (e.g. `content: application/json`).
When a struct or map reaches primitiveToString without satisfying any of
the serialization escape hatches, the error now says exactly that and
points at declaring the parameter with `content: application/json` (or
mapping the schema to a Go type implementing fmt.Stringer). Behavior is
otherwise unchanged: nested objects still fail to serialize, by design.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Refs: #52
Styling a parameter whose object schema contains a nested object failed with a bare "unsupported type Header", which gives no hint that the spec itself defines no wire format for this. OpenAPI style-based serialization covers only primitives, arrays, and flat objects; complex values are meant to use the parameter's content form (e.g. content: application/json).
When a struct or map reaches primitiveToString without satisfying any of the serialization escape hatches, the error now says exactly that and points at declaring the parameter with content: application/json (or mapping the schema to a Go type implementing fmt.Stringer). Behavior is otherwise unchanged: nested objects still fail to serialize, by design.