forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 4.3.x
This commit is contained in:
@@ -77,7 +77,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake/outer/boolean",
|
||||
produces = { "*/*" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody Boolean body) {
|
||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) @Valid @RequestBody(required = false) Boolean body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake/outer/composite",
|
||||
produces = { "*/*" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) {
|
||||
default ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody(required = false) OuterComposite body) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
@@ -124,7 +124,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake/outer/number",
|
||||
produces = { "*/*" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) {
|
||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody(required = false) BigDecimal body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -143,7 +143,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake/outer/string",
|
||||
produces = { "*/*" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody String body) {
|
||||
default ResponseEntity<String> fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) @Valid @RequestBody(required = false) String body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user