v0.4.11: Three search/validation bug fixes
Three search/validation bug fixes
All three fixes address field-test findings on the live OpenFEC API.
Fixed:
-
openfec_search_legal — respondent, regulatory_citation, and statutory_citation now satisfy the hasFilter gate on their own; previously returned missing_filter when used without query/type/ao_number/case_number (#7)
-
candidate/committee ID validation — removed field-level .regex() from six search tools; handler validators (validateCandidateId, validateCommitteeId) now fire as sole enforcement, surfacing the friendly format message instead of the raw Zod regex pattern. Also resolves a JSON-Schema pattern/runtime case-sensitivity mismatch. (#8)
-
openfec_lookup_elections summary mode — independent_expenditures from /elections/summary/ is now annotated with a caveat flagging it as an unreconciled upstream aggregate; directs to openfec_search_expenditures mode:by_candidate for verified per-committee totals (#9)
Dependency bumps:
@types/node^25.9.1 -> ^25.9.2
265 tests pass; bun run devcheck clean.