.. include:: /Includes.rst.txt .. _bugfix-1792156125: ================================================== Bugfix: The API contract fits a small memory limit ================================================== Description =========== The merged API contract at ``/api/v1/openapi.json`` repeated every shared schema, parameter and response wherever it was used and grew to about 70 MB. On a server with 128 MB of PHP memory, the contract, ``/api/v1/info`` and the assistant failed with an out-of-memory error. The contract now holds each shared part once under ``components`` and refers to it from where it is used; it is below 2 MB. ``/api/v1/info`` reads the API version without merging the contract, and the assistant derives the input schemas of its tools once per contract. Impact ====== The contract, the API information and the assistant work on servers with a small memory limit. Clients reading the contract follow its ``#/components/…`` references, as OpenAPI tools do. .. index:: API, package:adsum-core