Merge remote-tracking branch 'origin/4.2.x' into 5.0.x

This commit is contained in:
William Cheng
2019-08-29 14:48:00 +08:00
2306 changed files with 58113 additions and 19060 deletions

View File

@@ -191,6 +191,16 @@ public interface FakeApi {
}
@ApiOperation(value = "", nickname = "testQueryParameterCollectionFormat", notes = "To test the collection format in query parameters", tags={ "fake", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Success") })
@RequestMapping(value = "/fake/test-query-paramters",
method = RequestMethod.PUT)
default Mono<ResponseEntity<Void>> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List<String> pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List<String> ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List<String> http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List<String> url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List<String> context, ServerWebExchange exchange) {
return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange);
}
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
@Authorization(value = "petstore_auth", scopes = {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),

View File

@@ -218,6 +218,21 @@ public interface FakeApiDelegate {
}
/**
* @see FakeApi#testQueryParameterCollectionFormat
*/
default Mono<ResponseEntity<Void>> testQueryParameterCollectionFormat(List<String> pipe,
List<String> ioutil,
List<String> http,
List<String> url,
List<String> context,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
return result.then(Mono.empty());
}
/**
* @see FakeApi#uploadFileWithRequiredFile
*/

View File

@@ -51,13 +51,13 @@ public class AdditionalPropertiesClass {
private Map<String, Map<String, Object>> mapMapAnytype = null;
@JsonProperty("anytype_1")
private Object anytype1 = null;
private Object anytype1;
@JsonProperty("anytype_2")
private Object anytype2 = null;
private Object anytype2;
@JsonProperty("anytype_3")
private Object anytype3 = null;
private Object anytype3;
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
this.mapString = mapString;

View File

@@ -17,7 +17,7 @@ import javax.validation.constraints.*;
public class FileSchemaTestClass {
@JsonProperty("file")
private java.io.File file = null;
private java.io.File file;
@JsonProperty("files")
@Valid

View File

@@ -23,7 +23,7 @@ public class Pet {
private Long id;
@JsonProperty("category")
private Category category = null;
private Category category;
@JsonProperty("name")
private String name;

View File

@@ -875,6 +875,7 @@ paths:
properties:
integer:
description: None
format: int32
maximum: 100
minimum: 10
type: integer
@@ -1228,6 +1229,62 @@ paths:
x-accepts: application/json
x-tags:
- tag: fake
/fake/test-query-paramters:
put:
description: To test the collection format in query parameters
operationId: testQueryParameterCollectionFormat
parameters:
- explode: false
in: query
name: pipe
required: true
schema:
items:
type: string
type: array
style: form
- in: query
name: ioutil
required: true
schema:
items:
type: string
type: array
- in: query
name: http
required: true
schema:
items:
type: string
type: array
style: spaceDelimited
- explode: false
in: query
name: url
required: true
schema:
items:
type: string
type: array
style: form
- explode: true
in: query
name: context
required: true
schema:
items:
type: string
type: array
style: form
responses:
200:
content: {}
description: Success
tags:
- fake
x-accepts: application/json
x-tags:
- tag: fake
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile