Skip to content

WebSearchActionSearch.query is marked required but deprecated and no longer sent by the API #544

Description

@nezhyborets

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions