File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 394394 "content" : {
395395 "multipart/form-data" : {
396396 "schema" : {
397- "$ref" : " #/components/schemas/Body_upload_file_tests_upload_post"
397+ "$ref" : " #/components/schemas/Body_upload_file_tests_upload_post" ,
398+ "title" : " Body_upload_file_tests_upload_post" ,
399+ "required" : [
400+ " some_file" ,
401+ " some_object" ,
402+ " some_nullable_object" ,
403+ " some_required_number"
404+ ],
405+ "properties" : {
406+ }
398407 }
399408 }
400409 },
Original file line number Diff line number Diff line change 4040
4141def get_example (base_type ):
4242 schema = base_type .model_json_schema ()
43- print (json .dumps (schema .get ("examples" , []), indent = 4 ))
4443 if "examples" in schema :
4544 return schema ["examples" ][0 ]
4645 if "$defs" in schema :
@@ -71,7 +70,6 @@ def deannotate_type(t):
7170])
7271def test_type (ref_or_type , get_example_fn ):
7372 base_type = None
74- print (deannotate_type (ref_or_type ))
7573 for maybe_annotated_type in get_args (deannotate_type (ref_or_type )):
7674 each_type = deannotate_type (maybe_annotated_type )
7775 if each_type is not Reference :
You can’t perform that action at this time.
0 commit comments