Skip to content

Commit

Permalink
Regenerate samples
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBaulch committed Oct 31, 2024
1 parent e35ca5d commit 6fbb6c4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
6 changes: 3 additions & 3 deletions samples/client/petstore/java/okhttp-gson-3.1/docs/FakeApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | required to pass validation | - |
| **200** | | - |

<a id="refToRefParameterAnyof"></a>
# **refToRefParameterAnyof**
Expand Down Expand Up @@ -651,7 +651,7 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | required to pass validation | - |
| **200** | | - |

<a id="responseRefToRef"></a>
# **responseRefToRef**
Expand Down Expand Up @@ -707,5 +707,5 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | required to pass validation | - |
| **200** | | - |

Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public okhttp3.Call op3Async(List<CodesEnum> queryEnum, final ApiCallback<Void>
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call refToRefParameterCall(UUID refToUuid, final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -849,7 +849,7 @@ private okhttp3.Call refToRefParameterValidateBeforeCall(UUID refToUuid, final A
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public String refToRefParameter(UUID refToUuid) throws ApiException {
Expand All @@ -866,7 +866,7 @@ public String refToRefParameter(UUID refToUuid) throws ApiException {
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public ApiResponse<String> refToRefParameterWithHttpInfo(UUID refToUuid) throws ApiException {
Expand All @@ -885,7 +885,7 @@ public ApiResponse<String> refToRefParameterWithHttpInfo(UUID refToUuid) throws
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call refToRefParameterAsync(UUID refToUuid, final ApiCallback<String> _callback) throws ApiException {
Expand Down Expand Up @@ -1258,7 +1258,7 @@ public okhttp3.Call responseNoRefAsync(final ApiCallback<String> _callback) thro
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call responseRefToNoRefCall(final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -1319,7 +1319,7 @@ private okhttp3.Call responseRefToNoRefValidateBeforeCall(final ApiCallback _cal
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public String responseRefToNoRef() throws ApiException {
Expand All @@ -1335,7 +1335,7 @@ public String responseRefToNoRef() throws ApiException {
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public ApiResponse<String> responseRefToNoRefWithHttpInfo() throws ApiException {
Expand All @@ -1353,7 +1353,7 @@ public ApiResponse<String> responseRefToNoRefWithHttpInfo() throws ApiException
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call responseRefToNoRefAsync(final ApiCallback<String> _callback) throws ApiException {
Expand All @@ -1371,7 +1371,7 @@ public okhttp3.Call responseRefToNoRefAsync(final ApiCallback<String> _callback)
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call responseRefToRefCall(final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -1432,7 +1432,7 @@ private okhttp3.Call responseRefToRefValidateBeforeCall(final ApiCallback _callb
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public String responseRefToRef() throws ApiException {
Expand All @@ -1448,7 +1448,7 @@ public String responseRefToRef() throws ApiException {
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public ApiResponse<String> responseRefToRefWithHttpInfo() throws ApiException {
Expand All @@ -1466,7 +1466,7 @@ public ApiResponse<String> responseRefToRefWithHttpInfo() throws ApiException {
* @http.response.details
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> required to pass validation </td><td> - </td></tr>
<tr><td> 200 </td><td> </td><td> - </td></tr>
</table>
*/
public okhttp3.Call responseRefToRefAsync(final ApiCallback<String> _callback) throws ApiException {
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/java/okhttp-gson/docs/NewPet.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**id** | **Long** | | [optional] |
|**categoryRefToInlineAllofString** | **String** | testing allOf with a ref to string | [optional] |
|**categoryRefToInlineAllofString** | [**Object**](Object.md) | | [optional] |
|**categoryInlineAllofString** | **String** | testing allOf with a ref to string | [optional] |
|**categoryInlineAllof** | [**NewPetCategoryInlineAllof**](NewPetCategoryInlineAllof.md) | | [optional] |
|**categoryAllOfRef** | [**Category**](Category.md) | | [optional] |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class NewPet {
public static final String SERIALIZED_NAME_CATEGORY_REF_TO_INLINE_ALLOF_STRING = "category_ref_to_inline_allof_string";
@SerializedName(SERIALIZED_NAME_CATEGORY_REF_TO_INLINE_ALLOF_STRING)
@javax.annotation.Nullable
private String categoryRefToInlineAllofString;
private Object categoryRefToInlineAllofString;

public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF_STRING = "category_inline_allof_string";
@SerializedName(SERIALIZED_NAME_CATEGORY_INLINE_ALLOF_STRING)
Expand Down Expand Up @@ -193,21 +193,21 @@ public void setId(@javax.annotation.Nullable Long id) {
}


public NewPet categoryRefToInlineAllofString(@javax.annotation.Nullable String categoryRefToInlineAllofString) {
public NewPet categoryRefToInlineAllofString(@javax.annotation.Nullable Object categoryRefToInlineAllofString) {
this.categoryRefToInlineAllofString = categoryRefToInlineAllofString;
return this;
}

/**
* testing allOf with a ref to string
* Get categoryRefToInlineAllofString
* @return categoryRefToInlineAllofString
*/
@javax.annotation.Nullable
public String getCategoryRefToInlineAllofString() {
public Object getCategoryRefToInlineAllofString() {
return categoryRefToInlineAllofString;
}

public void setCategoryRefToInlineAllofString(@javax.annotation.Nullable String categoryRefToInlineAllofString) {
public void setCategoryRefToInlineAllofString(@javax.annotation.Nullable Object categoryRefToInlineAllofString) {
this.categoryRefToInlineAllofString = categoryRefToInlineAllofString;
}

Expand Down Expand Up @@ -540,8 +540,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("category_ref_to_inline_allof_string") != null && !jsonObj.get("category_ref_to_inline_allof_string").isJsonNull()) && !jsonObj.get("category_ref_to_inline_allof_string").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `category_ref_to_inline_allof_string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("category_ref_to_inline_allof_string").toString()));
// validate the optional field `category_ref_to_inline_allof_string`
if (jsonObj.get("category_ref_to_inline_allof_string") != null && !jsonObj.get("category_ref_to_inline_allof_string").isJsonNull()) {
Object.validateJsonElement(jsonObj.get("category_ref_to_inline_allof_string"));
}
if ((jsonObj.get("category_inline_allof_string") != null && !jsonObj.get("category_inline_allof_string").isJsonNull()) && !jsonObj.get("category_inline_allof_string").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `category_inline_allof_string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("category_inline_allof_string").toString()));
Expand Down

0 comments on commit 6fbb6c4

Please sign in to comment.