Quickstart
import { getOpenApiObject } from '@quik/openapi';
const spec = getOpenApiObject();
getOpenApiObject() returns a cached document and auto-populates the cache the first time it is called (it is
also refreshed once automatically in onBeforeBoot).
Notes
@quik/openapiregisters theIQApiDocsfeature during modulesetup(); the generated document is retrieved elsewhere in the framework viagetApiDocs()from@quik/core(e.g.getApiDocs().getApiJson({ mode: 'swagger-ui' })for a Swagger UI compatible projection).- Call
cacheOpenAPIObject()to force-refresh the cached document after registering new hooks or routes at runtime. - Extend the generated document with
OpenAPIHooks(components, paths, tags, security, webhooks parser hooks) rather than mutating the cached object directly.