Updates to tests, adding system tests, lint warning fixes

This commit is contained in:
abhijitkane
2019-06-05 12:54:47 +05:30
parent b4c14ba22a
commit c8553fb0f8
11 changed files with 462 additions and 23 deletions

View File

@@ -115,7 +115,7 @@ module.exports = {
* something that can be added to the collection
* TODO: Figure out better description
* @param {object} serverVariables - Object containing the server variables at the root/path-item level
* @param {string} keyName
* @param {string} keyName - an additional key to add the serverUrl to the variable list
* @param {string} serverUrl - URL from the server object
* @returns {object} modified collection after the addition of the server variables
*/
@@ -518,8 +518,8 @@ module.exports = {
/**
* Gets helper object based on the root spec and the operation.security object
* @param {*} openapi
* @param {Array<object>} securitySet
* @param {*} openapi - the json object representing the OAS spec
* @param {Array<object>} securitySet - the security object at an operation level
* @returns {object} The authHelper to use while constructing the Postman Request. This is
* not directly supported in the SDK - the caller needs to determine the header/body based on the return
* value
@@ -587,6 +587,7 @@ module.exports = {
hasComputedType = true;
return false;
}
return true;
});
// if no JSON or XML, take whatever we have
@@ -777,7 +778,8 @@ module.exports = {
* Handles array/object/string param types
* @param {*} param - the param object, as defined in
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject
* @param {any} paramValue
* @param {any} paramValue - the value to use (from schema or example) for the given param.
* This will be exploded/parsed according to the param type
* @returns {array} parameters. One param with type=array might lead to multiple params
* in the return value
* The styles are documented at