Closes: oapi-codegen#134
The exploded form path bound struct-typed query params (e.g. types.Date,
time.Time) via bindParamsToExplodedObject and returned nil when no fields
were present, dropping the required check that the slice and primitive
cases already perform. A missing required date param therefore passed
silently instead of returning a RequiredParameterError.
Honor required in the reflect.Struct case of both
BindQueryParameterWithOptions and BindRawQueryParameter, and add
regression tests for the absent-required case.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Closes: #134
The exploded form path bound struct-typed query params (e.g. types.Date, time.Time) via bindParamsToExplodedObject and returned nil when no fields were present, dropping the required check that the slice and primitive cases already perform. A missing required date param therefore passed silently instead of returning a RequiredParameterError.
Honor required in the reflect.Struct case of both
BindQueryParameterWithOptions and BindRawQueryParameter, and add regression tests for the absent-required case.