Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 14, 2024
1 parent 4f9a07c commit e5fc117
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 2 additions & 0 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit e5fc117

Please sign in to comment.