Skip to content

Commit

Permalink
chore: make rome 12 validation work
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed Mar 29, 2023
1 parent 98916f0 commit eed75f6
Show file tree
Hide file tree
Showing 12 changed files with 2,623 additions and 2,681 deletions.
2 changes: 1 addition & 1 deletion bin/validate-api-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!filename) {
}

validator.validate(filename).then((result) => {
console.log(JSON.stringify(result, null, 2));
console.log(JSON.stringify(result, null, "\t"));
if (!result.valid) {
exit(1);
}
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export class Validator {
this.ajvOptions = ajvOptions;
this.ajvValidators = {};
this.externalRefs = {};
return this;
}

static supportedVersions = openApiVersions;
Expand Down
22 changes: 11 additions & 11 deletions rome.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"linter": {
"enabled": true,
"ignore": ["coverage","schemas","schemas.orig"],
"rules": {
"recommended": true
}
},
"formatter": {
"ignore": ["coverage","schemas","schemas.orig"]
}
}
"linter": {
"enabled": true,
"ignore": ["coverage", "schemas", "schemas.orig", "dummy.json"],
"rules": {
"recommended": true
}
},
"formatter": {
"ignore": ["coverage", "schemas", "schemas.orig", "dummy.json"]
}
}
2 changes: 1 addition & 1 deletion test/convert-3.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ pointers.$dynamicRef.forEach((item) => {
obj.$ref = dynamicAnchors[ref];
});

writeFileSync(`${destFilePath}`, JSON.stringify(schema, null, 2));
writeFileSync(`${destFilePath}`, JSON.stringify(schema, null, "\t"));
console.log(`Written converted schema to ${destFilePath}`);
console.log(`$id: ${schema.$id}`);

0 comments on commit eed75f6

Please sign in to comment.