@scalar/fastify-api-reference 1.25.41 → 1.25.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/fastifyApiReference.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +1 -1
- package/dist/js/standalone.js +11771 -11577
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19812,7 +19812,7 @@ const fastifyApiReference = fp(
|
|
|
19812
19812
|
const spec = getLoadedSpecIfAvailable();
|
|
19813
19813
|
const filename = await getSpecFilenameSlug(spec);
|
|
19814
19814
|
const json = JSON.parse(await spec.toJson());
|
|
19815
|
-
return reply.header("Content-Type", `application/json`).header("Content-Disposition", `filename=${filename}.json`).
|
|
19815
|
+
return reply.header("Content-Type", `application/json`).header("Content-Disposition", `filename=${filename}.json`).send(json);
|
|
19816
19816
|
}
|
|
19817
19817
|
});
|
|
19818
19818
|
const openApiSpecUrlYaml = `${getRoutePrefix(options.routePrefix)}${getOpenApiDocumentEndpoints(options.openApiDocumentEndpoints).yaml}`;
|