Skip to content

Commit

Permalink
Merge pull request #54 from GiovanniCardamone/dev
Browse files Browse the repository at this point in the history
1.0.18
  • Loading branch information
GiovanniCardamone authored Sep 28, 2020
2 parents 4004e0b + 5f601d8 commit c0400fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-autoroutes",
"version": "1.0.17",
"version": "1.0.18",
"description": "Map directory structure to routes",
"main": "dist/index.js",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ interface Response<> {
}
}

interface Security {
[key: string]: []
}

interface StrictAnyRoute extends AnyRoute {
schema: {
summary?: string
description?: string
security?: Security[]
tags?: string[]

body?: JsonSchema
querystring?: JsonSchema
params?: JsonSchema
Expand Down

0 comments on commit c0400fe

Please sign in to comment.