File tree 8 files changed +70
-31
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core
springdoc-openapi-javadoc/src/test/resources/results
springdoc-openapi-webmvc-core/src/test
java/test/org/springdoc/api/v30/app189
8 files changed +70
-31
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public class SpringDocConfigProperties {
184
184
/**
185
185
* convert query param to form data when consumes is multipart/form-data
186
186
*/
187
- private boolean defaultSupportFormData = true ;
187
+ private boolean defaultSupportFormData ;
188
188
189
189
/**
190
190
* The model Converters
Original file line number Diff line number Diff line change 473
473
"type" : " integer" ,
474
474
"format" : " int64"
475
475
}
476
+ },
477
+ {
478
+ "name" : " additionalMetadata" ,
479
+ "in" : " query" ,
480
+ "description" : " Additional data to pass to server" ,
481
+ "required" : false ,
482
+ "schema" : {
483
+ "type" : " string"
484
+ }
476
485
}
477
486
],
478
487
"requestBody" : {
485
494
],
486
495
"type" : " object" ,
487
496
"properties" : {
488
- "additionalMetadata" : {
489
- "description" : " Additional data to pass to server"
490
- },
491
497
"file" : {
492
498
"type" : " string" ,
493
499
"description" : " file detail" ,
Original file line number Diff line number Diff line change 495
495
}
496
496
}
497
497
},
498
- "404 " : {
499
- "description" : " Pet not found " ,
498
+ "200 " : {
499
+ "description" : " successful operation " ,
500
500
"content" : {
501
501
"application/xml" : {
502
502
"schema" : {
510
510
}
511
511
}
512
512
},
513
- "200 " : {
514
- "description" : " successful operation " ,
513
+ "404 " : {
514
+ "description" : " Pet not found " ,
515
515
"content" : {
516
516
"application/xml" : {
517
517
"schema" : {
670
670
"type" : " integer" ,
671
671
"format" : " int64"
672
672
}
673
+ },
674
+ {
675
+ "name" : " additionalMetadata" ,
676
+ "in" : " query" ,
677
+ "description" : " Additional data to pass to server" ,
678
+ "required" : false ,
679
+ "schema" : {
680
+ "type" : " string"
681
+ }
673
682
}
674
683
],
675
684
"requestBody" : {
686
695
"type" : " string" ,
687
696
"description" : " file detail" ,
688
697
"format" : " binary"
689
- },
690
- "additionalMetadata" : {
691
- "description" : " Additional data to pass to server"
692
698
}
693
699
}
694
700
}
854
860
}
855
861
}
856
862
},
857
- "404 " : {
858
- "description" : " Order not found " ,
863
+ "200 " : {
864
+ "description" : " successful operation " ,
859
865
"content" : {
860
866
"application/xml" : {
861
867
"schema" : {
869
875
}
870
876
}
871
877
},
872
- "200 " : {
873
- "description" : " successful operation " ,
878
+ "404 " : {
879
+ "description" : " Order not found " ,
874
880
"content" : {
875
881
"application/xml" : {
876
882
"schema" : {
Original file line number Diff line number Diff line change 25
25
import test .org .springdoc .api .v30 .AbstractSpringDocV30Test ;
26
26
27
27
import org .springframework .boot .autoconfigure .SpringBootApplication ;
28
+ import org .springframework .test .context .TestPropertySource ;
28
29
30
+
31
+ @ TestPropertySource (properties = "springdoc.default-support-form-data=true" )
29
32
public class SpringDocApp189Test extends AbstractSpringDocV30Test {
30
33
31
34
@ SpringBootApplication
Original file line number Diff line number Diff line change 331
331
"type" : " integer" ,
332
332
"format" : " int64"
333
333
}
334
+ },
335
+ {
336
+ "name" : " additionalMetadata" ,
337
+ "in" : " query" ,
338
+ "description" : " Additional data to pass to server" ,
339
+ "required" : false ,
340
+ "schema" : {
341
+ "type" : " string"
342
+ }
334
343
}
335
344
],
336
345
"requestBody" : {
346
355
"type" : " string" ,
347
356
"description" : " file detail" ,
348
357
"format" : " binary"
349
- },
350
- "additionalMetadata" : {
351
- "description" : " Additional data to pass to server"
352
358
}
353
359
}
354
360
}
Original file line number Diff line number Diff line change 655
655
"type" : " integer" ,
656
656
"format" : " int64"
657
657
}
658
+ },
659
+ {
660
+ "name" : " additionalMetadata" ,
661
+ "in" : " query" ,
662
+ "description" : " Additional data to pass to server" ,
663
+ "required" : false ,
664
+ "schema" : {
665
+ "type" : " string"
666
+ }
658
667
}
659
668
],
660
669
"requestBody" : {
670
679
"type" : " string" ,
671
680
"description" : " file detail" ,
672
681
"format" : " binary"
673
- },
674
- "additionalMetadata" : {
675
- "description" : " Additional data to pass to server"
676
682
}
677
683
}
678
684
}
835
841
}
836
842
}
837
843
},
838
- "200 " : {
839
- "description" : " successful operation " ,
844
+ "404 " : {
845
+ "description" : " Order not found " ,
840
846
"content" : {
841
847
"application/xml" : {
842
848
"schema" : {
850
856
}
851
857
}
852
858
},
853
- "404 " : {
854
- "description" : " Order not found " ,
859
+ "200 " : {
860
+ "description" : " successful operation " ,
855
861
"content" : {
856
862
"application/xml" : {
857
863
"schema" : {
Original file line number Diff line number Diff line change 331
331
"type" : " integer" ,
332
332
"format" : " int64"
333
333
}
334
+ },
335
+ {
336
+ "name" : " additionalMetadata" ,
337
+ "in" : " query" ,
338
+ "description" : " Additional data to pass to server" ,
339
+ "required" : false ,
340
+ "schema" : {
341
+ "type" : " string"
342
+ }
334
343
}
335
344
],
336
345
"requestBody" : {
346
355
"type" : " string" ,
347
356
"description" : " file detail" ,
348
357
"format" : " binary"
349
- },
350
- "additionalMetadata" : {
351
- "description" : " Additional data to pass to server"
352
358
}
353
359
}
354
360
}
Original file line number Diff line number Diff line change 631
631
"type" : " integer" ,
632
632
"format" : " int64"
633
633
}
634
+ },
635
+ {
636
+ "name" : " additionalMetadata" ,
637
+ "in" : " query" ,
638
+ "description" : " Additional data to pass to server" ,
639
+ "required" : false ,
640
+ "schema" : {
641
+ "type" : " string"
642
+ }
634
643
}
635
644
],
636
645
"requestBody" : {
643
652
"type" : " string" ,
644
653
"format" : " binary" ,
645
654
"description" : " file detail"
646
- },
647
- "additionalMetadata" : {
648
- "description" : " Additional data to pass to server"
649
655
}
650
656
},
651
657
"required" : [
You can’t perform that action at this time.
0 commit comments