Bugfix: The API contract fits a small memory limit
Description
The merged API contract at /api/ 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/ 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/ 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 #/ references, as OpenAPI tools do.