Skip to content

Commit 54dd074

Browse files
committed
Pin undici version to work around a bug
1 parent 81ab675 commit 54dd074

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openapi-3-2/json-schema-test-suite.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const addRemotes = (dialectId: string, filePath = `${testSuitePath}/remotes`, ur
4646
.forEach((entry) => {
4747
if (entry.isFile() && entry.name.endsWith(".json")) {
4848
const remote = JSON.parse(fs.readFileSync(`${filePath}/${entry.name}`, "utf8")) as Exclude<OasSchema32, boolean>;
49-
if (!remote.$schema || toAbsoluteIri(remote.$schema as string) === "https://json-schema.org/draft/2020-12/schema") {
49+
if (!remote.$schema || toAbsoluteIri(remote.$schema) === "https://json-schema.org/draft/2020-12/schema") {
5050
registerSchema(remote, `http://localhost:1234${url}/${entry.name}`, dialectId);
5151
}
5252
} else if (entry.isDirectory()) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"json-schema-test-suite": "github:json-schema-org/JSON-Schema-Test-Suite",
6464
"typescript": "*",
6565
"typescript-eslint": "*",
66-
"undici": "*",
66+
"undici": "8.0.2",
6767
"vitest": "*",
6868
"yaml": "*"
6969
},

0 commit comments

Comments
 (0)