Skip to content

Commit b940eef

Browse files
committed
Use file path for schema test instead of URI
1 parent 1750806 commit b940eef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/schema/schema.test.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ defineVocabulary(oasBaseVocab, {
2121
await registerSchema("./src/schemas/validation/meta.yaml");
2222
await registerSchema("./src/schemas/validation/dialect.yaml");
2323
await registerSchema("./src/schemas/validation/schema.yaml");
24-
await registerSchema("./src/schemas/validation/schema-base.yaml");
2524
const fixtures = './tests/schema';
2625

2726
describe("v3.1", () => {
@@ -31,7 +30,7 @@ describe("v3.1", () => {
3130
.forEach((entry) => {
3231
test(entry.name, async () => {
3332
const instance = parseYamlFromFile(`${fixtures}/pass/${entry.name}`);
34-
await expect(instance).to.matchJsonSchema("https://spec.openapis.org/oas/3.1/schema-base/WORK-IN-PROGRESS");
33+
await expect(instance).to.matchJsonSchema("./src/schemas/validation/schema-base.yaml");
3534
});
3635
});
3736
});
@@ -42,7 +41,7 @@ describe("v3.1", () => {
4241
.forEach((entry) => {
4342
test(entry.name, async () => {
4443
const instance = parseYamlFromFile(`${fixtures}/fail/${entry.name}`);
45-
await expect(instance).to.not.matchJsonSchema("https://spec.openapis.org/oas/3.1/schema-base/WORK-IN-PROGRESS");
44+
await expect(instance).to.not.matchJsonSchema("./src/schemas/validation/schema-base.yaml");
4645
});
4746
});
4847
});

0 commit comments

Comments
 (0)