Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kota65535 committed Sep 26, 2023
1 parent 3e9592e commit 7736191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/merger.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Merger {
content = {};
if (parsedTarget.hrefWoHash.includes("*")) {
const matchedFiles = Glob.sync(parsedTarget.hrefWoHash).map((p) =>
Path.relative(Path.dirname(pFile.hrefWoHash), p)
Path.relative(Path.dirname(pFile.hrefWoHash), p),
);
// include multiple files
for (const mf of matchedFiles) {
Expand Down
2 changes: 1 addition & 1 deletion src/ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const REF_TYPES = {
// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameter-object
// https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#media-type-object
return path.match(
`(schema|items|additionalProperties|(schemas|properties|discriminator)\\.${FIELD_PATTERN}|(allOf|oneOf|anyOf)\\.\\d+)$`
`(schema|items|additionalProperties|(schemas|properties|discriminator)\\.${FIELD_PATTERN}|(allOf|oneOf|anyOf)\\.\\d+)$`,
);
},
pathItems: (path) => {
Expand Down
2 changes: 1 addition & 1 deletion test/test_merger.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const runMerger = async (name) => {
// ignore carriage return for cross-platform
assert.equal(
("" + fs.readFileSync(params.output)).replace(/\r/g, ""),
("" + fs.readFileSync(path.join("resources", name, "expected.yaml"))).replace(/\r/g, "")
("" + fs.readFileSync(path.join("resources", name, "expected.yaml"))).replace(/\r/g, ""),
);
};

Expand Down

0 comments on commit 7736191

Please sign in to comment.