Skip to content

Commit 519156a

Browse files
authored
Merge pull request #26 from JaredCE/fix-bug-report-url
Fix bug report url
2 parents f497639 + e3506d7 commit 519156a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-for-openapi",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Converts a regular JSON Schema to a compatible OpenAPI 3.0.X Schema Object",
55
"keywords": [
66
"json",

src/Convertor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Convertor {
114114
for (const reportDetail of report) {
115115
try {
116116
this.closingTheCircle(this.schema, reportDetail.duplicate, {
117-
description: `This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v${packageData.version} - please open an issue at: ${packageData.bugs}`,
117+
description: `This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v${packageData.version} - please open an issue at: ${packageData.bugs.url}`,
118118
});
119119
} catch (err) {
120120
console.error(err);

test/src/Convertor.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ describe("Convertor", () => {
951951
result.schemas.basic.properties.user.properties.classes.items
952952
.properties.subRows.items
953953
).to.be.deep.equal({
954-
description: `This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v${packageData.version} - please open an issue at: ${packageData.bugs}`,
954+
description: `This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v${packageData.version} - please open an issue at: ${packageData.bugs.url}`,
955955
});
956956

957957
// console.log(JSON.stringify(result));

0 commit comments

Comments
 (0)