Fix another batch of spelling typos (#13915)

* Fix typos

* Remove repeated words

* Minor grammar fixes
This commit is contained in:
Nathan Baulch
2022-11-08 00:30:24 +11:00
committed by GitHub
parent 3dc8403e10
commit 9f1fa0e440
1449 changed files with 2576 additions and 2581 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -174,7 +174,7 @@ public class StoreApi {
}
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 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 &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
* @param orderId ID of pet that needs to be fetched (required)
* @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call

View File

@@ -63,7 +63,7 @@ public class StoreApiTest {
/**
* Find purchase order by ID
*
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
*
* @throws ApiException if the Api call fails
*/

View File

@@ -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)

View File

@@ -861,7 +861,7 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **400** | Someting wrong | - |
| **400** | Something wrong | - |
## testInlineAdditionalProperties

View File

@@ -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

View File

@@ -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>
*/

View File

@@ -174,7 +174,7 @@ public class StoreApi {
}
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 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 &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
* @param orderId ID of pet that needs to be fetched (required)
* @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call

View File

@@ -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.

View File

@@ -63,7 +63,7 @@ public class StoreApiTest {
/**
* Find purchase order by ID
*
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
*
* @throws ApiException if the Api call fails
*/