Skip to content

Commit

Permalink
Fix result type
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 14, 2024
1 parent aabf0ad commit 8c6e94d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default async function router(schema: Schema) {
method: Type.Optional(Type.Uppercase(Type.Enum(Doc.HttpMethods))),
url: Type.Optional(Type.String())
}),
res: Type.Object({}),
description: `
List all JSON Schemas in use
With no parameters this API will return a list of all the endpoints that have a form of schema validation
Expand All @@ -33,7 +32,6 @@ export default async function router(schema: Schema) {

await schema.get('/openapi', {
description: 'Return a OpenAPI Schema for the API',
res: Type.Object({})
}, async (req, res) => {
try {
return res.json(schema.docs.base);
Expand Down

0 comments on commit 8c6e94d

Please sign in to comment.