Observed on 0.14.0, still present on main.
ContentBlock is annotated @JsonTypeInfo(use = Id.NAME, property = "type") and the concrete records (TextContent, ImageContent, ...) also declare a @JsonProperty("type") String type component. Serializing a session/prompt request therefore emits the key twice:
"prompt":[{"type":"text","type":"text","text":"hello"}]
Strict JSON parsers reject duplicate keys; lenient ones silently take the first or last value. Emit the discriminator once (or drop the record component).
Observed on 0.14.0, still present on main.
ContentBlockis annotated@JsonTypeInfo(use = Id.NAME, property = "type")and the concrete records (TextContent,ImageContent, ...) also declare a@JsonProperty("type") String typecomponent. Serializing asession/promptrequest therefore emits the key twice:Strict JSON parsers reject duplicate keys; lenient ones silently take the first or last value. Emit the discriminator once (or drop the record component).