forked from loafle/openapi-generator-original
Fix another batch of spelling typos (#13915)
* Fix typos * Remove repeated words * Minor grammar fixes
This commit is contained in:
@@ -364,7 +364,7 @@ paths:
|
||||
x-accepts: application/json
|
||||
get:
|
||||
description: For valid response try integer IDs with value <= 5 or > 10. Other
|
||||
values will generated exceptions
|
||||
values will generate exceptions
|
||||
operationId: getOrderById
|
||||
parameters:
|
||||
- description: ID of pet that needs to be fetched
|
||||
|
||||
@@ -150,7 +150,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ public class StoreApi {
|
||||
}
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
* @param orderId ID of pet that needs to be fetched (required)
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
@@ -192,7 +192,7 @@ public class StoreApi {
|
||||
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
* @param orderId ID of pet that needs to be fetched (required)
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
|
||||
@@ -63,7 +63,7 @@ public class StoreApiTest {
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
*
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
*
|
||||
* @throws ApiException if the Api call fails
|
||||
*/
|
||||
|
||||
@@ -386,7 +386,7 @@ paths:
|
||||
x-accepts: application/json
|
||||
get:
|
||||
description: For valid response try integer IDs with value <= 5 or > 10. Other
|
||||
values will generated exceptions
|
||||
values will generate exceptions
|
||||
operationId: getOrderById
|
||||
parameters:
|
||||
- description: ID of pet that needs to be fetched
|
||||
@@ -686,7 +686,7 @@ paths:
|
||||
style: form
|
||||
responses:
|
||||
"400":
|
||||
description: Someting wrong
|
||||
description: Something wrong
|
||||
security:
|
||||
- bearer_test: []
|
||||
summary: Fake endpoint to test group parameters (optional)
|
||||
|
||||
@@ -861,7 +861,7 @@ null (empty response body)
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **400** | Someting wrong | - |
|
||||
| **400** | Something wrong | - |
|
||||
|
||||
|
||||
## testInlineAdditionalProperties
|
||||
|
||||
@@ -150,7 +150,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@@ -982,7 +982,7 @@ if (booleanGroup != null)
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 400 </td><td> Someting wrong </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Something wrong </td><td> - </td></tr>
|
||||
</table>
|
||||
|
||||
*/
|
||||
@@ -998,7 +998,7 @@ if (booleanGroup != null)
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 400 </td><td> Someting wrong </td><td> - </td></tr>
|
||||
<tr><td> 400 </td><td> Something wrong </td><td> - </td></tr>
|
||||
</table>
|
||||
|
||||
*/
|
||||
|
||||
@@ -174,7 +174,7 @@ public class StoreApi {
|
||||
}
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
* @param orderId ID of pet that needs to be fetched (required)
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
@@ -192,7 +192,7 @@ public class StoreApi {
|
||||
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
* @param orderId ID of pet that needs to be fetched (required)
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
|
||||
@@ -90,7 +90,7 @@ public class JSONComposedSchemaTest {
|
||||
assertTrue(o.getActualInstance() instanceof AppleReq);
|
||||
BananaReq inst2 = o.getBananaReq(); // should throw ClassCastException
|
||||
});
|
||||
// comment out below as the erorr message can be different due to JDK versions
|
||||
// comment out below as the error message can be different due to JDK versions
|
||||
// org.opentest4j.AssertionFailedError: expected: <class org.openapitools.client.model.AppleReq cannot be cast to class org.openapitools.client.model.BananaReq (org.openapitools.client.model.AppleReq and org.openapitools.client.model.BananaReq are in unnamed module of loader 'app')> but was: <org.openapitools.client.model.AppleReq cannot be cast to org.openapitools.client.model.BananaReq>
|
||||
//Assertions.assertEquals("class org.openapitools.client.model.AppleReq cannot be cast to class org.openapitools.client.model.BananaReq (org.openapitools.client.model.AppleReq and org.openapitools.client.model.BananaReq are in unnamed module of loader 'app')", thrown.getMessage());
|
||||
Assertions.assertNotNull(thrown);
|
||||
@@ -141,7 +141,7 @@ public class JSONComposedSchemaTest {
|
||||
});
|
||||
assertTrue(exception.getMessage().contains("Failed deserialization for FruitReq: 2 classes match result"));
|
||||
// TODO: add a similar unit test where the oneOf child schemas have required properties.
|
||||
// If the implementation is correct, the unmarshaling should take the "required" keyword
|
||||
// If the implementation is correct, the unmarshalling should take the "required" keyword
|
||||
// into consideration, which it is not doing currently.
|
||||
}
|
||||
{
|
||||
@@ -232,7 +232,7 @@ public class JSONComposedSchemaTest {
|
||||
@Test
|
||||
public void testOneOfMultipleDiscriminators() throws Exception {
|
||||
// 'shapeType' is a discriminator for the 'Shape' model and
|
||||
// 'triangleType' is a discriminator forr the 'Triangle' model.
|
||||
// 'triangleType' is a discriminator for the 'Triangle' model.
|
||||
String str = "{ \"shapeType\": \"Triangle\", \"triangleType\": \"EquilateralTriangle\" }";
|
||||
|
||||
// We should be able to deserialize a equilateral triangle into a EquilateralTriangle class.
|
||||
|
||||
@@ -63,7 +63,7 @@ public class StoreApiTest {
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
*
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
*
|
||||
* @throws ApiException if the Api call fails
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user