koas-core
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -53,3 +53,2 @@ import { PreValidatePropertyFunction, RewriteFunction, ValidatorResult } from 'jsonschema'; | ||
* @param options - Additional jsonschema validation options. | ||
* | ||
* @returns The validator result | ||
@@ -112,5 +111,4 @@ */ | ||
* @param options - Advanced options | ||
* | ||
* @returns Koa middleware that processes requests according the the OpenAPI document. | ||
*/ | ||
export declare function koas(document: OpenAPIV3.Document, middlewares?: Plugin[], { onSchemaValidationError, }?: KoasOptions): Middleware; |
@@ -41,3 +41,2 @@ "use strict"; | ||
* @param options - Advanced options | ||
* | ||
* @returns Koa middleware that processes requests according the the OpenAPI document. | ||
@@ -44,0 +43,0 @@ */ |
@@ -7,3 +7,2 @@ import { OpenAPIV3 } from 'openapi-types'; | ||
* @param url - The URL path to process. | ||
* | ||
* @returns A mapping of parameter names to their extracted values. | ||
@@ -19,5 +18,4 @@ */ | ||
* extracted parameters. | ||
* | ||
* @returns a matcher function for extracting path parameters from a URL path. | ||
*/ | ||
export declare function createMatcher(pathTemplate: string, resolveRef: JSONRefResolver, pathParameters?: (OpenAPIV3.ParameterObject | OpenAPIV3.ReferenceObject)[]): MatcherFunction; |
@@ -11,3 +11,2 @@ "use strict"; | ||
* extracted parameters. | ||
* | ||
* @returns a matcher function for extracting path parameters from a URL path. | ||
@@ -14,0 +13,0 @@ */ |
{ | ||
"name": "koas-core", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"keywords": [ | ||
@@ -29,6 +29,6 @@ "koa", | ||
"dependencies": { | ||
"@types/koa": "^2.11.7", | ||
"@types/koa": "^2.13.4", | ||
"jsonschema": "^1.4.0", | ||
"koa-compose": "^4.1.0", | ||
"openapi-types": "^7.2.3" | ||
"openapi-types": "^9.1.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
20283
495
+ Addedopenapi-types@9.3.1(transitive)
- Removedopenapi-types@7.2.3(transitive)
Updated@types/koa@^2.13.4
Updatedopenapi-types@^9.1.0