`common/json.go` and `relaykit/relayconvert/kitutil/json.go` were two hard-wired copies of the same encoding/json wrapper, so swapping the JSON engine required editing both modules. - kitutil defines a `Codec` interface with a standard-library default and a `SetCodec` hook, mirroring the existing SetLogging host hook; every kitutil JSON helper and relaykit DTO (un)marshal method goes through it - `common/json.go` forwards to kitutil and injects `hostJSONCodec` from init() so tests run on the same engine as production; swapping the engine now touches only this type in the root module - route the remaining direct encoding/json calls inside relaykit (dto/values.go, responses stream validation) through kitutil - add a codec routing test and a host codec conformance test locking the encoding semantics the DTOs depend on Direct encoding/json call sites in the root module are left for a separate cleanup.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| alpha_search_request.go | Loading commit data... | |
| audio.go | Loading commit data... | |
| billing_usage.go | Loading commit data... | |
| billing_usage_test.go | Loading commit data... | |
| channel_settings.go | Loading commit data... | |
| channel_settings_test.go | Loading commit data... | |
| claude.go | Loading commit data... | |
| embedding.go | Loading commit data... | |
| error.go | Loading commit data... | |
| gemini.go | Loading commit data... | |
| gemini_generation_config_test.go | Loading commit data... | |
| gemini_isstream_test.go | Loading commit data... | |
| gemini_response_test.go | Loading commit data... | |
| notify.go | Loading commit data... | |
| openai_compaction.go | Loading commit data... | |
| openai_image.go | Loading commit data... | |
| openai_request.go | Loading commit data... | |
| openai_request_zero_value_test.go | Loading commit data... | |
| openai_response.go | Loading commit data... | |
| openai_responses_compaction_request.go | Loading commit data... | |
| openai_video.go | Loading commit data... | |
| playground.go | Loading commit data... | |
| pricing.go | Loading commit data... | |
| ratio_sync.go | Loading commit data... | |
| realtime.go | Loading commit data... | |
| reasoning_state.go | Loading commit data... | |
| request_common.go | Loading commit data... | |
| rerank.go | Loading commit data... | |
| sensitive.go | Loading commit data... | |
| usage_merge.go | Loading commit data... | |
| usage_merge_test.go | Loading commit data... | |
| user_settings.go | Loading commit data... | |
| values.go | Loading commit data... |