From e5fc117376780dac6140f78c257b18f1c4a9baf7 Mon Sep 17 00:00:00 2001 From: ingalls Date: Thu, 14 Mar 2024 11:07:56 -0600 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 4 ++++ lib/api.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa70c8f..a5f9124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ ## Version History +### v10.8.1 + +- :rocket: Add back Type.Any() for api.js + ### v10.8.0 - :rocket: Ignore `Type.Any` or `Type.Unknown` diff --git a/lib/api.ts b/lib/api.ts index 6636927..81e610c 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -9,6 +9,7 @@ export default async function router(schema: Schema) { method: Type.Optional(Type.Uppercase(Type.Enum(Doc.HttpMethods))), url: Type.Optional(Type.String()) }), + res: Type.Any(), 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 @@ -32,6 +33,7 @@ export default async function router(schema: Schema) { await schema.get('/openapi', { description: 'Return a OpenAPI Schema for the API', + res: Type.Any(), }, async (req, res) => { try { return res.json(schema.docs.base);