openapi-jsonschema-parameters
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -8,3 +8,4 @@ import { IJsonSchema, OpenAPI } from 'openapi-types'; | ||
query?: IJsonSchema; | ||
cookie?: IJsonSchema; | ||
} | ||
export declare function convertParametersToJSONSchema(parameters: OpenAPI.Parameters): OpenAPIParametersAsJSONSchema; |
@@ -22,2 +22,3 @@ "use strict"; | ||
var querySchema = getSchema(parameters, 'query'); | ||
var cookieSchema = getSchema(parameters, 'cookie'); | ||
if (bodySchema) { | ||
@@ -38,2 +39,5 @@ parametersSchema.body = bodySchema; | ||
} | ||
if (cookieSchema) { | ||
parametersSchema.cookie = cookieSchema; | ||
} | ||
return parametersSchema; | ||
@@ -40,0 +44,0 @@ } |
{ | ||
"name": "openapi-jsonschema-parameters", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Converts openapi parameters to a jsonschema format.", | ||
@@ -30,3 +30,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "ce870adee618fc84d7d3683fe0847abe609b3277" | ||
"gitHead": "983a1c79e54e9bcef6eea43fe22615591c919aa1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17773
189