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

This commit is contained in:
William Cheng
2020-01-20 15:46:13 +08:00
3307 changed files with 122702 additions and 15514 deletions

View File

@@ -190,8 +190,8 @@ public interface FakeApi {
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
* @param number None (required)
* @param _double None (required)
@@ -210,7 +210,7 @@ public interface FakeApi {
* @return Invalid username supplied (status code 400)
* or User not found (status code 404)
*/
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
@Authorization(value = "http_basic_test")
}, tags={ "fake", })
@ApiResponses(value = {

View File

@@ -180,8 +180,8 @@ public interface FakeApiDelegate {
}
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
* @param number None (required)
* @param _double None (required)

View File

@@ -35,8 +35,12 @@ public class BigCat extends Cat {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -33,8 +33,12 @@ public class BigCatAllOf {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -31,8 +31,12 @@ public class EnumArrays {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@@ -65,8 +69,12 @@ public class EnumArrays {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -25,8 +25,12 @@ public enum EnumClass {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -32,8 +32,12 @@ public class EnumTest {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@@ -68,8 +72,12 @@ public class EnumTest {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@@ -102,8 +110,12 @@ public class EnumTest {
this.value = value;
}
@Override
@JsonValue
public Integer getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@@ -136,8 +148,12 @@ public class EnumTest {
this.value = value;
}
@Override
@JsonValue
public Double getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -36,8 +36,12 @@ public class MapTest {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -44,8 +44,12 @@ public class Order {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -25,8 +25,12 @@ public enum OuterEnum {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -52,8 +52,12 @@ public class Pet {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}

View File

@@ -5,7 +5,7 @@ info:
" \'
license:
name: Apache-2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
url: https://www.apache.org/licenses/LICENSE-2.0.html
title: OpenAPI Petstore
version: 1.0.0
servers:
@@ -32,10 +32,10 @@ paths:
description: Pet object that needs to be added to the store
required: true
responses:
200:
"200":
content: {}
description: successful operation
405:
"405":
content: {}
description: Invalid input
security:
@@ -63,16 +63,16 @@ paths:
description: Pet object that needs to be added to the store
required: true
responses:
200:
"200":
content: {}
description: successful operation
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Pet not found
405:
"405":
content: {}
description: Validation exception
security:
@@ -108,7 +108,7 @@ paths:
type: array
style: form
responses:
200:
"200":
content:
application/xml:
schema:
@@ -121,7 +121,7 @@ paths:
$ref: '#/components/schemas/Pet'
type: array
description: successful operation
400:
"400":
content: {}
description: Invalid status value
security:
@@ -152,7 +152,7 @@ paths:
type: array
style: form
responses:
200:
"200":
content:
application/xml:
schema:
@@ -165,7 +165,7 @@ paths:
$ref: '#/components/schemas/Pet'
type: array
description: successful operation
400:
"400":
content: {}
description: Invalid tag value
security:
@@ -194,10 +194,10 @@ paths:
format: int64
type: integer
responses:
200:
"200":
content: {}
description: successful operation
400:
"400":
content: {}
description: Invalid pet value
security:
@@ -222,7 +222,7 @@ paths:
format: int64
type: integer
responses:
200:
"200":
content:
application/xml:
schema:
@@ -231,10 +231,10 @@ paths:
schema:
$ref: '#/components/schemas/Pet'
description: successful operation
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Pet not found
security:
@@ -267,7 +267,7 @@ paths:
description: Updated status of the pet
type: string
responses:
405:
"405":
content: {}
description: Invalid input
security:
@@ -305,7 +305,7 @@ paths:
format: binary
type: string
responses:
200:
"200":
content:
application/json:
schema:
@@ -327,7 +327,7 @@ paths:
description: Returns a map of status codes to quantities
operationId: getInventory
responses:
200:
"200":
content:
application/json:
schema:
@@ -355,7 +355,7 @@ paths:
description: order placed for purchasing the pet
required: true
responses:
200:
"200":
content:
application/xml:
schema:
@@ -364,7 +364,7 @@ paths:
schema:
$ref: '#/components/schemas/Order'
description: successful operation
400:
"400":
content: {}
description: Invalid Order
summary: Place an order for a pet
@@ -388,10 +388,10 @@ paths:
schema:
type: string
responses:
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Order not found
summary: Delete purchase order by ID
@@ -415,7 +415,7 @@ paths:
minimum: 1
type: integer
responses:
200:
"200":
content:
application/xml:
schema:
@@ -424,10 +424,10 @@ paths:
schema:
$ref: '#/components/schemas/Order'
description: successful operation
400:
"400":
content: {}
description: Invalid ID supplied
404:
"404":
content: {}
description: Order not found
summary: Find purchase order by ID
@@ -524,7 +524,7 @@ paths:
schema:
type: string
responses:
200:
"200":
content:
application/xml:
schema:
@@ -544,7 +544,7 @@ paths:
schema:
format: date-time
type: string
400:
"400":
content: {}
description: Invalid username/password supplied
summary: Logs user into the system
@@ -578,10 +578,10 @@ paths:
schema:
type: string
responses:
400:
"400":
content: {}
description: Invalid username supplied
404:
"404":
content: {}
description: User not found
summary: Delete user
@@ -600,7 +600,7 @@ paths:
schema:
type: string
responses:
200:
"200":
content:
application/xml:
schema:
@@ -609,10 +609,10 @@ paths:
schema:
$ref: '#/components/schemas/User'
description: successful operation
400:
"400":
content: {}
description: Invalid username supplied
404:
"404":
content: {}
description: User not found
summary: Get user by user name
@@ -639,10 +639,10 @@ paths:
description: Updated user object
required: true
responses:
400:
"400":
content: {}
description: Invalid user supplied
404:
"404":
content: {}
description: User not found
summary: Updated user
@@ -665,7 +665,7 @@ paths:
description: client model
required: true
responses:
200:
"200":
content:
application/json:
schema:
@@ -722,7 +722,7 @@ paths:
format: int64
type: integer
responses:
400:
"400":
content: {}
description: Someting wrong
summary: Fake endpoint to test group parameters (optional)
@@ -823,10 +823,10 @@ paths:
- (xyz)
type: string
responses:
400:
"400":
content: {}
description: Invalid request
404:
"404":
content: {}
description: Not found
summary: To test enum parameters
@@ -847,7 +847,7 @@ paths:
description: client model
required: true
responses:
200:
"200":
content:
application/json:
schema:
@@ -862,11 +862,11 @@ paths:
x-tags:
- tag: fake
post:
description: |
description: |-
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
假端點
偽のエンドポイント
가짜 엔드 포인트
operationId: testEndpointParameters
requestBody:
content:
@@ -945,19 +945,19 @@ paths:
- pattern_without_delimiter
required: true
responses:
400:
"400":
content: {}
description: Invalid username supplied
404:
"404":
content: {}
description: User not found
security:
- http_basic_test: []
summary: |
summary: |-
Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
假端點
偽のエンドポイント
가짜 엔드 포인트
tags:
- fake
x-contentType: application/x-www-form-urlencoded
@@ -976,7 +976,7 @@ paths:
description: Input number as post body
required: false
responses:
200:
"200":
content:
'*/*':
schema:
@@ -1001,7 +1001,7 @@ paths:
description: Input string as post body
required: false
responses:
200:
"200":
content:
'*/*':
schema:
@@ -1026,7 +1026,7 @@ paths:
description: Input boolean as post body
required: false
responses:
200:
"200":
content:
'*/*':
schema:
@@ -1051,7 +1051,7 @@ paths:
description: Input composite as post body
required: false
responses:
200:
"200":
content:
'*/*':
schema:
@@ -1083,7 +1083,7 @@ paths:
- param2
required: true
responses:
200:
"200":
content: {}
description: successful operation
summary: test json serialization of form data
@@ -1106,7 +1106,7 @@ paths:
description: request body
required: true
responses:
200:
"200":
content: {}
description: successful operation
summary: test inline additionalProperties
@@ -1133,7 +1133,7 @@ paths:
$ref: '#/components/schemas/User'
required: true
responses:
200:
"200":
content: {}
description: Success
tags:
@@ -1170,7 +1170,7 @@ paths:
description: XmlItem Body
required: true
responses:
200:
"200":
content: {}
description: successful operation
summary: creates an XmlItem
@@ -1193,7 +1193,7 @@ paths:
description: client model
required: true
responses:
200:
"200":
content:
application/json:
schema:
@@ -1219,7 +1219,7 @@ paths:
$ref: '#/components/schemas/FileSchemaTestClass'
required: true
responses:
200:
"200":
content: {}
description: Success
tags:
@@ -1277,7 +1277,7 @@ paths:
type: array
style: form
responses:
200:
"200":
content: {}
description: Success
tags:
@@ -1312,7 +1312,7 @@ paths:
- requiredFile
required: true
responses:
200:
"200":
content:
application/json:
schema:
@@ -1524,7 +1524,7 @@ components:
type: integer
property:
type: string
123Number:
"123Number":
readOnly: true
type: integer
required:
@@ -1532,7 +1532,7 @@ components:
type: object
xml:
name: Name
200_response:
"200_response":
description: Model for testing model name starting with number
properties:
name:
@@ -1801,7 +1801,7 @@ components:
type: object
List:
properties:
123-list:
"123-list":
type: string
type: object
Client: