Skip to content

v0.0.3

Choose a tag to compare

@mohsen1 mohsen1 released this 11 Dec 19:09
· 300 commits to master since this release

Sync API

/*
 * Converts Swagger 1.2 specs file to Swagger 2.0 specs.
 * @param resourceListing {object} - root Swagger 1.2 document where it has a
 *  list of all paths
 * @param apiDeclarations {array} - a list of all resources listed in 
 * resourceListing. Array of objects
 * @returns {object} - Fully converted Swagger 2.0 document
*/
module.exports = function convert(resourceListing, apiDeclarations) {