openapi-php-sdk icon indicating copy to clipboard operation
openapi-php-sdk copied to clipboard

Symfony Messenger: Async job serialization error

Open francescobianco opened this issue 1 year ago • 0 comments

Labels: bug, symfony, async, serialization Context: Symfony Messenger + Doctrine transport

Description: When dispatching an async job that includes the Openapi client instance, serialization fails with: Serialization of 'Openapi\Client\Api\CompanyApi' is not allowed.

Expected: SDK client should be stateless and re-creatable from configuration, or marked as non-serializable.

Impact: Breaks async pipelines and queued jobs using Openapi calls.

francescobianco avatar Nov 09 '25 16:11 francescobianco