feat(api): Add OpenAPI visualizer
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 53s
Build Docker Images / lint (push) Failing after 10s
Build Docker Images / check (push) Failing after 10s
Build Docker Images / tests (push) Failing after 6s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / build (push) Failing after 5s
Mirror to Codeberg / Mirror (push) Failing after 0s
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Nix Build / check (push) Failing after 5s

This commit is contained in:
Jesse Wierzbinski 2025-03-24 15:25:40 +01:00
parent 65e2e19ff1
commit c674a1309c
No known key found for this signature in database
32 changed files with 772 additions and 732 deletions

View file

@ -45,7 +45,7 @@ export const Role = z
example: "https://example.com/role-icon.png",
}),
})
.openapi({
.openapi("Role", {
description:
"Information about a role in the system, as well as its permissions.",
});
@ -72,7 +72,7 @@ export const NoteReaction = z
example: true,
}),
})
.openapi({
.openapi("NoteReaction", {
description: "Information about a reaction to a note.",
});
@ -134,6 +134,6 @@ export const Challenge = z
example: "1234567890",
}),
})
.openapi({
.openapi("Challenge", {
description: "A cryptographic challenge to solve. Used for Captchas.",
});