Skip to content

Commit

Permalink
implemented schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cletqui committed Jul 11, 2024
1 parent f7ba24d commit 166e910
Show file tree
Hide file tree
Showing 2 changed files with 339 additions and 305 deletions.
6 changes: 3 additions & 3 deletions src/routes/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { swaggerUI } from "@hono/swagger-ui";
import {
ErrorSchema,
ParamsSchema,
RepositorySchema,
MinimalRepositorySchema,
swaggerDoc,
} from "../utils/swagger";
import { handleMaxId } from "../utils/octokit";
Expand All @@ -33,15 +33,15 @@ app.get("/swagger", swaggerUI({ url: `/api/swagger/json`, version: "3.1" }));
/* ROUTES */
const route = createRoute({
method: "get",
path: "/{id}?",
path: "/{id}",
request: {
params: ParamsSchema,
},
responses: {
200: {
content: {
"application/json": {
schema: RepositorySchema,
schema: MinimalRepositorySchema,
},
},
description: "Get a random repository",
Expand Down
Loading

0 comments on commit 166e910

Please sign in to comment.