OpenApi.fromApi returns the same cached OpenAPISpec instance for repeated calls with the same API.
Because OpenAPISpec is mutable, any caller can modify the cached object and silently change the specification seen by every subsequent caller. The generated output therefore depends on prior external mutations.
OpenApi.fromApi returns the same cached OpenAPISpec instance for repeated calls with the same API.
Because OpenAPISpec is mutable, any caller can modify the cached object and silently change the specification seen by every subsequent caller. The generated output therefore depends on prior external mutations.