mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
change getMetaData function to be async and add tests
This commit is contained in:
8
index.js
8
index.js
@@ -18,13 +18,9 @@ module.exports = {
|
||||
return schema.validationResult;
|
||||
},
|
||||
|
||||
getMetaData: function (input) {
|
||||
getMetaData: function (input, cb) {
|
||||
var schema = new SchemaPack(input);
|
||||
if (schema.metaData) {
|
||||
return schema.metaData;
|
||||
}
|
||||
|
||||
return schema.validationResult;
|
||||
schema.getMetaData(cb);
|
||||
},
|
||||
|
||||
mergeAndValidate: function (input, cb) {
|
||||
|
||||
Reference in New Issue
Block a user