mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Added support for internal $ref resolution in validation flows
This commit is contained in:
@@ -447,6 +447,14 @@ class SchemaPack {
|
||||
pathVar.value = _.get(mappedPathVar, 'value', pathVar.value);
|
||||
});
|
||||
|
||||
// resolve $ref in all parameter objects if present
|
||||
_.forEach(_.get(matchedPath, 'path.parameters'), (param) => {
|
||||
if (param.hasOwnProperty('$ref')) {
|
||||
_.assign(param, schemaUtils.getRefObject(param.$ref, componentsAndPaths, options));
|
||||
_.unset(param, '$ref');
|
||||
}
|
||||
});
|
||||
|
||||
matchedEndpoints.push(matchedPath.jsonPath);
|
||||
// 3. validation involves checking these individual properties
|
||||
async.parallel({
|
||||
|
||||
Reference in New Issue
Block a user