Skip to content

Commit 4091871

Browse files
committed
Fixes missed typescript error
1 parent b09ebc5 commit 4091871

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,9 @@ describe("convertJsonSchemaToZod", () => {
373373
});
374374

375375
it("should handle object const values", () => {
376-
const jsonSchema = {
376+
const jsonSchema: JSONSchema.BaseSchema = {
377377
$schema: "https://json-schema.org/draft/2020-12/schema",
378+
// @ts-expect-error: @TODO: Resolve, for some reason, the spec and the schema do not align on this
378379
const: { key: "value" },
379380
};
380381

@@ -393,8 +394,9 @@ describe("convertJsonSchemaToZod", () => {
393394
});
394395

395396
it("should handle array const values", () => {
396-
const jsonSchema = {
397+
const jsonSchema: JSONSchema.BaseSchema = {
397398
$schema: "https://json-schema.org/draft/2020-12/schema",
399+
// @ts-expect-error: @TODO: Resolve, for some reason, the spec and the schema do not align on this
398400
const: [1, 2, 3],
399401
};
400402

0 commit comments

Comments
 (0)