Skip to content

Commit 3526dda

Browse files
authored
Merge pull request webpack#5981 from webpack/lint/bugfix-schema-lint
fix an issue with schemas in subdirectories
2 parents dd47437 + 73a4c76 commit 3526dda

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/Schemas.lint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const glob = require("glob");
77
const rootDir = path.resolve(__dirname, "..");
88

99
describe("Schemas", () => {
10-
const schemas = glob.sync("schemas/**.json", {
10+
const schemas = glob.sync("schemas/**/*.json", {
1111
cwd: rootDir
1212
});
1313

@@ -38,6 +38,7 @@ describe("Schemas", () => {
3838
const allowedProperties = [
3939
"definitions",
4040
"$ref",
41+
"id",
4142
"items",
4243
"properties",
4344
"additionalProperties",

0 commit comments

Comments
 (0)