File tree 10 files changed +253
-213
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/core
springdoc-openapi-starter-webmvc-api/src/test
java/test/org/springdoc/api/v30/app189
springdoc-openapi-actuator-webmvc-tests/src/test/resources/results
springdoc-openapi-javadoc-tests/src/test/resources/results
springdoc-openapi-native-tests/src/test/java/test/org/springdoc/api/app1
10 files changed +253
-213
lines changed Original file line number Diff line number Diff line change 51
51
* @author bnasslahsen
52
52
*/
53
53
@ Lazy (false )
54
- @ ConditionalOnExpression ("${springdoc.api-docs.enabled:true} and ${springdoc.enable-native-support:true }" )
54
+ @ ConditionalOnExpression ("${springdoc.api-docs.enabled:true} and ${springdoc.enable-native-support:false }" )
55
55
@ ConditionalOnWebApplication
56
56
@ Configuration (proxyBeanMethods = false )
57
57
@ ConditionalOnBean (SpringDocConfiguration .class )
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ public class SpringDocConfigProperties {
214
214
/**
215
215
* The Enable native support.
216
216
*/
217
- private boolean enableNativeSupport = true ;
217
+ private boolean enableNativeSupport = false ;
218
218
219
219
/**
220
220
* The Enable hateoas.
@@ -229,7 +229,7 @@ public class SpringDocConfigProperties {
229
229
/**
230
230
* convert query param to form data when consumes is multipart/form-data
231
231
*/
232
- private boolean defaultSupportFormData = true ;
232
+ private boolean defaultSupportFormData ;
233
233
234
234
/**
235
235
* The Sort converter.
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
+ @ TestPropertySource (properties = "springdoc.default-support-form-data=true" )
29
31
public class SpringDocApp189Test extends AbstractSpringDocV30Test {
30
32
31
33
@ 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 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" : [
803
809
}
804
810
}
805
811
},
806
- "404 " : {
807
- "description" : " Order not found " ,
812
+ "200 " : {
813
+ "description" : " successful operation " ,
808
814
"content" : {
809
815
"application/xml" : {
810
816
"schema" : {
818
824
}
819
825
}
820
826
},
821
- "200 " : {
822
- "description" : " successful operation " ,
827
+ "404 " : {
828
+ "description" : " Order not found " ,
823
829
"content" : {
824
830
"application/xml" : {
825
831
"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
}
You can’t perform that action at this time.
0 commit comments