The WebSearchActionSearch schema has query listed in its required array, but the field description marks it as [DEPRECATED] and the API has stopped including it in responses:
WebSearchActionSearch:
properties:
query:
type: string
description: "[DEPRECATED] The search query."
queries:
type: array
...
required:
- type
- query # ← still here
This causes strict decoders (e.g. generated Swift clients via swift-openapi-generator) to fail with a keyNotFound error when a web search call event arrives, because query is absent from the JSON payload while the generated struct treats it as a non-optional field.
Expected: query should be removed from required since it is deprecated and no longer present in API responses. queries appears to be its replacement.
Observed error (Swift):
DecodingError.keyNotFound: Key 'query' not found in keyed decoding container.
Path: item.action.
The
WebSearchActionSearchschema hasquerylisted in itsrequiredarray, but the field description marks it as[DEPRECATED]and the API has stopped including it in responses:This causes strict decoders (e.g. generated Swift clients via swift-openapi-generator) to fail with a
keyNotFounderror when a web search call event arrives, becausequeryis absent from the JSON payload while the generated struct treats it as a non-optional field.Expected:
queryshould be removed fromrequiredsince it is deprecated and no longer present in API responses.queriesappears to be its replacement.Observed error (Swift):