Skip to content

Commit ac07533

Browse files
committed
Use v1 tests
1 parent 9d9c315 commit ac07533

File tree

185 files changed

+283
-11885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+283
-11885
lines changed

README.md

Lines changed: 2 additions & 2 deletions

annotations/annotated-instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Instance from "../lib/instance.js";
22
import { getKeywordId } from "../lib/keywords.js";
33

44

5-
const defaultDialectId = "https://json-schema.org/validation";
5+
const defaultDialectId = "https://json-schema.org/v1";
66

77
export const annotation = (node, keyword, dialect = defaultDialectId) => {
88
const keywordUri = getKeywordId(keyword, dialect);

annotations/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isCompatible } from "./test-utils.js";
44
import { toAbsoluteIri } from "@hyperjump/uri";
55
import { annotate } from "./index.js";
66
import { registerSchema, unregisterSchema } from "../lib/index.js";
7-
import "../stable/index.js";
7+
import "../v1/index.js";
88
import "../draft-2020-12/index.js";
99
import "../draft-2019-09/index.js";
1010
import "../draft-07/index.js";
@@ -98,7 +98,7 @@ const testRunner = (version: number, dialect: string) => {
9898
};
9999

100100
describe("annotations", () => {
101-
testRunner(9999, "https://json-schema.org/validation");
101+
testRunner(9999, "https://json-schema.org/v1");
102102
testRunner(2020, "https://json-schema.org/draft/2020-12/schema");
103103
testRunner(2019, "https://json-schema.org/draft/2019-09/schema");
104104
testRunner(7, "http://json-schema.org/draft-07/schema");

bundle/file-schemas.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect, beforeAll, afterAll } from "vitest";
22
import { registerSchema, unregisterSchema } from "../lib/index.js";
3-
import "../stable/index.js";
3+
import "../v1/index.js";
44
import "../draft-2020-12/index.js";
55
import { bundle } from "./index.js";
66

bundle/generate-snapshots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { writeFile, mkdir, rm } from "node:fs/promises";
22
import { isCompatible, md5, loadSchemas, testSuite, unloadSchemas } from "./test-utils.js";
33
import { AnnotationsPlugin, compile, DetailedOutputPlugin, getSchema, Validation } from "../lib/experimental.js";
4-
import "../stable/index.js";
4+
import "../v1/index.js";
55
import "../draft-2020-12/index.js";
66
import "../draft-2019-09/index.js";
77
import "../draft-07/index.js";
@@ -51,7 +51,7 @@ const snapshotGenerator = async (version, dialect) => {
5151
(async function () {
5252
await rm("./bundle/snapshots", { recursive: true });
5353
await mkdir("./bundle/snapshots");
54-
await snapshotGenerator(9999, "https://json-schema.org/validation");
54+
await snapshotGenerator(9999, "https://json-schema.org/v1");
5555
await snapshotGenerator(2020, "https://json-schema.org/draft/2020-12/schema");
5656
await snapshotGenerator(2019, "https://json-schema.org/draft/2019-09/schema");
5757
await snapshotGenerator(7, "http://json-schema.org/draft-07/schema");

bundle/options.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, it, expect, beforeAll, afterAll } from "vitest";
22
import { bundle } from "./index.js";
33
import { registerSchema, unregisterSchema } from "../lib/index.js";
44
import { getKeywordName } from "../lib/experimental.js";
5-
import "../stable/index.js";
5+
import "../v1/index.js";
66
import "../draft-2020-12/index.js";
77
import "../draft-2019-09/index.js";
88
import "../draft-07/index.js";
@@ -86,7 +86,7 @@ const testRunner = (dialect: string) => {
8686
};
8787

8888
describe("bundle", () => {
89-
testRunner("https://json-schema.org/validation");
89+
testRunner("https://json-schema.org/v1");
9090
testRunner("https://json-schema.org/draft/2020-12/schema");
9191
testRunner("https://json-schema.org/draft/2019-09/schema");
9292
testRunner("http://json-schema.org/draft-07/schema");

0 commit comments

Comments
 (0)