Skip to content

Commit f1075ec

Browse files
committed
docs(openapi-metadata): cleanup doc
1 parent 0e5b748 commit f1075ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/openapi-metadata/examples.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import { generateScalarUI } from "openapi-metadata/ui";
1515

1616
const app = express();
1717

18+
const document = await generateDocument(yourConfiguration);
19+
1820
app.get("/api", async (req, res) => {
19-
const document = await generateDocument(yourConfiguration);
2021
res.send(JSON.stringify(document));
2122
});
2223

@@ -35,8 +36,9 @@ import { generateScalarUI } from "openapi-metadata/ui";
3536

3637
const app = Fastify();
3738

39+
const document = await generateDocument(yourConfiguration);
40+
3841
app.get("/api", async () => {
39-
const document = await generateDocument(yourConfiguration);
4042
return document;
4143
});
4244

docs/openapi-metadata/integrations.md

Whitespace-only changes.

0 commit comments

Comments
 (0)