swagger2openapi
Advanced tools
Comparing version 3.2.8 to 3.2.9
@@ -1284,3 +1284,3 @@ // @ts-check | ||
let server = {}; | ||
server.url = (s ? s+':' : '') + '//' + swagger.host + (swagger.basePath ? swagger.basePath : '/'); | ||
server.url = (s ? s+':' : '') + '//' + swagger.host + (swagger.basePath ? swagger.basePath : ''); | ||
extractServerParameters(server); | ||
@@ -1287,0 +1287,0 @@ if (!openapi.servers) openapi.servers = []; |
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
const readfiles = require('node-readfiles'); | ||
const should = require('should/as-function'); | ||
const yaml = require('js-yaml'); | ||
@@ -167,4 +168,4 @@ | ||
let resultStr2 = yaml.safeDump(result, { lineWidth: -1, noRefs: true }); | ||
resultStr.should.not.be.exactly('{}','Result should not be empty'); | ||
resultStr.should.equal(resultStr2,'Result should have no object identity ref_s'); | ||
should(resultStr).not.be.exactly('{}','Result should not be empty'); | ||
should(resultStr).equal(resultStr2,'Result should have no object identity ref_s'); | ||
} | ||
@@ -171,0 +172,0 @@ |
{ | ||
"name": "swagger2openapi", | ||
"version": "3.2.8", | ||
"version": "3.2.9", | ||
"description": "Convert Swagger 2.0 definitions to OpenApi 3.0 and validate", | ||
@@ -38,5 +38,5 @@ "main": "index.js", | ||
"oas-kit-common": "^1.0.3", | ||
"oas-resolver": "^1.0.8", | ||
"oas-schema-walker": "^1.0.4", | ||
"oas-validator": "^1.1.7", | ||
"oas-resolver": "^1.0.9", | ||
"oas-schema-walker": "^1.1.0", | ||
"oas-validator": "^1.1.8", | ||
"reftools": "^1.0.2", | ||
@@ -63,3 +63,3 @@ "yargs": "^11.0.0" | ||
}, | ||
"gitHead": "3cd5907e4b7e18384495f60e5929330e94cabe04" | ||
"gitHead": "c0080cde40d45cde9a972918668aec899b49834b" | ||
} |
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
92261
2080
Updatedoas-resolver@^1.0.9
Updatedoas-schema-walker@^1.1.0
Updatedoas-validator@^1.1.8