@@ -560,18 +560,72 @@ def fn(a: FileData) -> list[FileData]:
560
560
},
561
561
},
562
562
"required" : [],
563
+ "default" : {
564
+ "type" : "object" ,
565
+ "properties" : {
566
+ "url" : {
567
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
568
+ "default" : None ,
569
+ },
570
+ "version" : {
571
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
572
+ "default" : None ,
573
+ },
574
+ "record_locator" : {
575
+ "anyOf" : [
576
+ {
577
+ "type" : "object" ,
578
+ "items" : {"key" : {"type" : "string" }, "value" : {}},
579
+ },
580
+ {"type" : "null" },
581
+ ],
582
+ "default" : None ,
583
+ },
584
+ "date_created" : {
585
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
586
+ "default" : None ,
587
+ },
588
+ "date_modified" : {
589
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
590
+ "default" : None ,
591
+ },
592
+ "date_processed" : {
593
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
594
+ "default" : None ,
595
+ },
596
+ "permissions_data" : {
597
+ "anyOf" : [
598
+ {
599
+ "type" : "array" ,
600
+ "items" : {
601
+ "type" : "object" ,
602
+ "items" : {"key" : {"type" : "string" }, "value" : {}},
603
+ },
604
+ },
605
+ {"type" : "null" },
606
+ ],
607
+ "default" : None ,
608
+ },
609
+ "filesize_bytes" : {
610
+ "anyOf" : [{"type" : "integer" }, {"type" : "null" }],
611
+ "default" : None ,
612
+ },
613
+ },
614
+ "required" : [],
615
+ },
563
616
},
564
617
"additional_metadata" : {
565
618
"type" : "object" ,
566
619
"items" : {"key" : {"type" : "string" }, "value" : {}},
620
+ "default" : {},
567
621
},
568
622
"reprocess" : {"type" : "boolean" , "default" : False },
569
623
"local_download_path" : {
570
624
"anyOf" : [{"type" : "string" }, {"type" : "null" }],
571
625
"default" : None ,
572
626
},
573
627
},
574
- "required" : ["identifier" , "connector_type" , "metadata" , "additional_metadata" ],
628
+ "required" : ["identifier" , "connector_type" ],
575
629
}
576
630
},
577
631
}
@@ -657,20 +711,73 @@ def fn(a: FileData) -> list[FileData]:
657
711
},
658
712
},
659
713
"required" : [],
714
+ "default" : {
715
+ "type" : "object" ,
716
+ "properties" : {
717
+ "url" : {
718
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
719
+ "default" : None ,
720
+ },
721
+ "version" : {
722
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
723
+ "default" : None ,
724
+ },
725
+ "record_locator" : {
726
+ "anyOf" : [
727
+ {
728
+ "type" : "object" ,
729
+ "items" : {"key" : {"type" : "string" }, "value" : {}},
730
+ },
731
+ {"type" : "null" },
732
+ ],
733
+ "default" : None ,
734
+ },
735
+ "date_created" : {
736
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
737
+ "default" : None ,
738
+ },
739
+ "date_modified" : {
740
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
741
+ "default" : None ,
742
+ },
743
+ "date_processed" : {
744
+ "anyOf" : [{"type" : "string" }, {"type" : "null" }],
745
+ "default" : None ,
746
+ },
747
+ "permissions_data" : {
748
+ "anyOf" : [
749
+ {
750
+ "type" : "array" ,
751
+ "items" : {
752
+ "type" : "object" ,
753
+ "items" : {"key" : {"type" : "string" }, "value" : {}},
754
+ },
755
+ },
756
+ {"type" : "null" },
757
+ ],
758
+ "default" : None ,
759
+ },
760
+ "filesize_bytes" : {
761
+ "anyOf" : [{"type" : "integer" }, {"type" : "null" }],
762
+ "default" : None ,
763
+ },
764
+ },
765
+ "required" : [],
766
+ },
660
767
},
661
768
"additional_metadata" : {
662
769
"type" : "object" ,
663
770
"items" : {"key" : {"type" : "string" }, "value" : {}},
771
+ "default" : {},
664
772
},
665
773
"reprocess" : {"type" : "boolean" , "default" : False },
666
774
"local_download_path" : {
667
775
"anyOf" : [{"type" : "string" }, {"type" : "null" }],
668
776
"default" : None ,
669
777
},
670
778
},
671
- "required" : ["identifier" , "connector_type" , "metadata" , "additional_metadata" ],
779
+ "required" : ["identifier" , "connector_type" ],
672
780
},
673
781
}
674
-
675
782
assert output_schema == expected_output_schema
676
783
assert is_valid_response_dict (output_schema )
0 commit comments