Skip to content

Commit

Permalink
Merge pull request #56 from GiovanniCardamone/dev
Browse files Browse the repository at this point in the history
1.0.20
  • Loading branch information
GiovanniCardamone authored Sep 28, 2020
2 parents 256435a + e7bc2aa commit 358055e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-autoroutes",
"version": "1.0.19",
"version": "1.0.20",
"description": "Map directory structure to routes",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"dependencies": {
"fastify-plugin": "^2.1.1",
"type-jsonschema": "0.0.6"
"type-jsonschema": "0.0.7"
},
"contributors": [
{
Expand Down
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import fastifyPlugin from 'fastify-plugin'
import { FastifyInstance, RouteOptions } from 'fastify'

import { JsonSchema, JsonSchemaProperty } from 'type-jsonschema'
import {
JsonSchema,
JsonSchemaProperty,
ObjectJsonSchemaProperty,
} from 'type-jsonschema'

import process from 'process'
import path from 'path'
Expand Down Expand Up @@ -59,8 +63,8 @@ interface StrictAnyRoute extends AnyRoute {
tags?: string[]

body?: JsonSchemaProperty
querystring?: JsonSchemaProperty
params?: JsonSchemaProperty
querystring?: ObjectJsonSchemaProperty['properties']
params?: ObjectJsonSchemaProperty['properties']
headers?: JsonSchemaProperty
response?: { [key: number]: Response }
}
Expand Down

0 comments on commit 358055e

Please sign in to comment.