Skip to content

Commit 0ce4b5e

Browse files
authored
Merge pull request #671 from postmanlabs/hotfix/fix-example-calculation
[Hotfix] Fix example calculation
2 parents 01caef0 + f4c26fe commit 0ce4b5e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/schemaUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ module.exports = {
294294
numberOfRefs = (specString.match(/\$ref/g) || []).length;
295295

296296
// Number of times `example` is present
297-
numberOfExamples = (specString.match(/\$example/g) || []).length;
297+
numberOfExamples = (specString.match(/example/g) || []).length;
298298
}
299299

300300
return {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-to-postmanv2",
3-
"version": "4.7.0",
3+
"version": "4.7.1",
44
"description": "Convert a given OpenAPI specification to Postman Collection v2.0",
55
"homepage": "https://github.com/postmanlabs/openapi-to-postman",
66
"bugs": "https://github.com/postmanlabs/openapi-to-postman/issues",

0 commit comments

Comments
 (0)