File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments