Skip to content

Commit 73a4c76

Browse files
committed
fix an issue with schemas in subdirectories
allow id property
1 parent dd47437 commit 73a4c76

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)