---
title: "Bugfix: The API contract fits a small memory limit"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:bugfix-1792156125@main"
source: "Changelog/1.0.0/Bugfix-1792156125-CompactApiContract.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Bugfix: The API contract fits a small memory limit {#bugfix-1792156125}

## Description {#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 {#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.
