Context
PR #375 intentionally reverts #295 to restore the published v0.78 raw-request / parsed-response BaseModel contract before redesigning nested coercion. The exact rollback also restores several pre-#295 converter behaviors that deserve independent investigation and regression coverage.
These concerns must not be fixed by widening global coercion or changing BaseModel#[] / #to_h away from raw caller-owned values. Each should be reproduced against the published contract and solved narrowly.
Follow-up behaviors
Required coverage
For each behavior, add a minimal runtime-level regression and at least one representative generated-model test where applicable. Include order permutations for collection/union error state, symbol/string discriminator forms where relevant, and assertions covering raw request access separately from parsed response materialization.
Related
Context
PR #375 intentionally reverts #295 to restore the published v0.78 raw-request / parsed-response
BaseModelcontract before redesigning nested coercion. The exact rollback also restores several pre-#295 converter behaviors that deserve independent investigation and regression coverage.These concerns must not be fixed by widening global coercion or changing
BaseModel#[]/#to_haway from raw caller-owned values. Each should be reproduced against the published contract and solved narrowly.Follow-up behaviors
max_output_tokens: :inf).nilvalues without recording a conversion error; distinguishoptional(omittable) fromnil?: true(nullable) deliberately.BaseModelunchanged, retaining identity and out-of-band state such aslast_response.ArrayOfandHashOf, independent of element order.ArrayOf/HashOfmatchers agree with their coercion and generated type contracts.Required coverage
For each behavior, add a minimal runtime-level regression and at least one representative generated-model test where applicable. Include order permutations for collection/union error state, symbol/string discriminator forms where relevant, and assertions covering raw request access separately from parsed response materialization.
Related