forked from loafle/openapi-generator-original
Fix enum model docs for JS and Java clients
This commit is contained in:
@@ -839,6 +839,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
|
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
|
||||||
|
objs = super.postProcessModelsEnum(objs);
|
||||||
List<Object> models = (List<Object>) objs.get("models");
|
List<Object> models = (List<Object>) objs.get("models");
|
||||||
for (Object _mo : models) {
|
for (Object _mo : models) {
|
||||||
Map<String, Object> mo = (Map<String, Object>) _mo;
|
Map<String, Object> mo = (Map<String, Object>) _mo;
|
||||||
@@ -853,8 +854,6 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
cm.vendorExtensions.put("x-all-required", allRequired);
|
cm.vendorExtensions.put("x-all-required", allRequired);
|
||||||
|
|
||||||
for (CodegenProperty var : cm.vars) {
|
for (CodegenProperty var : cm.vars) {
|
||||||
Map<String, Object> allowableValues = var.allowableValues;
|
|
||||||
|
|
||||||
// Add JSDoc @type value for this property.
|
// Add JSDoc @type value for this property.
|
||||||
String jsDocType = getJSDocTypeWithBraces(cm, var);
|
String jsDocType = getJSDocTypeWithBraces(cm, var);
|
||||||
var.vendorExtensions.put("x-jsdoc-type", jsDocType);
|
var.vendorExtensions.put("x-jsdoc-type", jsDocType);
|
||||||
@@ -862,40 +861,6 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
if (Boolean.TRUE.equals(var.required)) {
|
if (Boolean.TRUE.equals(var.required)) {
|
||||||
required.add(var.name);
|
required.add(var.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle ArrayProperty
|
|
||||||
if (var.items != null) {
|
|
||||||
allowableValues = var.items.allowableValues;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (allowableValues == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
List<Object> values = (List<Object>) allowableValues.get("values");
|
|
||||||
if (values == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// put "enumVars" map into `allowableValues", including `name` and `value`
|
|
||||||
List<Map<String, String>> enumVars = new ArrayList<Map<String, String>>();
|
|
||||||
String commonPrefix = findCommonPrefixOfVars(values);
|
|
||||||
int truncateIdx = commonPrefix.length();
|
|
||||||
for (Object value : values) {
|
|
||||||
Map<String, String> enumVar = new HashMap<String, String>();
|
|
||||||
String enumName;
|
|
||||||
if (truncateIdx == 0) {
|
|
||||||
enumName = value.toString();
|
|
||||||
} else {
|
|
||||||
enumName = value.toString().substring(truncateIdx);
|
|
||||||
if ("".equals(enumName)) {
|
|
||||||
enumName = value.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
enumVar.put("name", toEnumVarName(enumName, var.datatype));
|
|
||||||
enumVar.put("value",toEnumValue(value.toString(), var.datatype));
|
|
||||||
enumVars.add(enumVar);
|
|
||||||
}
|
|
||||||
allowableValues.put("enumVars", enumVars);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportsInheritance) {
|
if (supportsInheritance) {
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
## Enum
|
## Enum
|
||||||
|
|
||||||
{{#allowableValues}}
|
{{#allowableValues}}{{#enumVars}}
|
||||||
* `{{.}}`
|
* `{{name}}` (value: `{{{value}}}`)
|
||||||
{{/allowableValues}}
|
{{/enumVars}}{{/allowableValues}}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
## Enum
|
## Enum
|
||||||
|
|
||||||
{{#allowableValues}}{{#enumVars}}
|
{{#allowableValues}}{{#enumVars}}
|
||||||
* `{{name}}` (value: `{{value}}`)
|
* `{{name}}` (value: `{{{value}}}`)
|
||||||
{{/enumVars}}{{/allowableValues}}
|
{{/enumVars}}{{/allowableValues}}
|
||||||
|
|||||||
@@ -1,9 +1,25 @@
|
|||||||
{{#models}}{{#model}}# {{moduleName}}.{{classname}}
|
{{#models}}{{#model}}{{#isEnum}}# {{moduleName}}.{{classname}}
|
||||||
|
|
||||||
|
## Enum
|
||||||
|
|
||||||
|
{{#allowableValues}}{{#enumVars}}
|
||||||
|
* `{{name}}` (value: `{{{value}}}`)
|
||||||
|
{{/enumVars}}{{/allowableValues}}
|
||||||
|
{{/isEnum}}{{^isEnum}}# {{moduleName}}.{{classname}}
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{datatype}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{datatype}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
|
{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{datatype}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{datatype}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
{{#vars}}{{#isEnum}}
|
||||||
|
|
||||||
{{/model}}{{/models}}
|
<a name="{{{datatypeWithEnum}}}"></a>
|
||||||
|
## Enum: {{datatypeWithEnum}}
|
||||||
|
|
||||||
|
{{#allowableValues}}{{#enumVars}}
|
||||||
|
* `{{name}}` (value: `{{{value}}}`)
|
||||||
|
{{/enumVars}}{{/allowableValues}}
|
||||||
|
|
||||||
|
{{/isEnum}}{{/vars}}
|
||||||
|
{{/isEnum}}{{/model}}{{/models}}
|
||||||
|
|||||||
@@ -7,16 +7,16 @@
|
|||||||
{{/emitJSDoc}}
|
{{/emitJSDoc}}
|
||||||
var exports = {
|
var exports = {
|
||||||
{{#allowableValues}}
|
{{#allowableValues}}
|
||||||
{{#values}}
|
{{#enumVars}}
|
||||||
{{#emitJSDoc}}
|
{{#emitJSDoc}}
|
||||||
/**
|
/**
|
||||||
* value: {{{.}}}
|
* value: {{{value}}}
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
{{/emitJSDoc}}
|
{{/emitJSDoc}}
|
||||||
"{{{.}}}": "{{{.}}}"{{^-last}},
|
"{{name}}": {{{value}}}{{^-last}},
|
||||||
{{/-last}}
|
{{/-last}}
|
||||||
{{/values}}
|
{{/enumVars}}
|
||||||
{{/allowableValues}}
|
{{/allowableValues}}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
9
samples/client/petstore/java/default/docs/AnimalFarm.md
Normal file
9
samples/client/petstore/java/default/docs/AnimalFarm.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# AnimalFarm
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
## Enum
|
## Enum
|
||||||
|
|
||||||
* `{values=[_abc, -efg, (xyz)], enumVars=[{name=_ABC, value="_abc"}, {name=_EFG, value="-efg"}, {name=_XYZ_, value="(xyz)"}]}`
|
|
||||||
|
* `_ABC` (value: `"_abc"`)
|
||||||
|
|
||||||
|
* `_EFG` (value: `"-efg"`)
|
||||||
|
|
||||||
|
* `_XYZ_` (value: `"(xyz)"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Fake endpoint for testing various parameters
|
|||||||
|
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
String number = "number_example"; // String | None
|
BigDecimal number = new BigDecimal(); // BigDecimal | None
|
||||||
Double _double = 3.4D; // Double | None
|
Double _double = 3.4D; // Double | None
|
||||||
String string = "string_example"; // String | None
|
String string = "string_example"; // String | None
|
||||||
byte[] _byte = B; // byte[] | None
|
byte[] _byte = B; // byte[] | None
|
||||||
@@ -47,7 +47,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**number** | **String**| None |
|
**number** | **BigDecimal**| None |
|
||||||
**_double** | **Double**| None |
|
**_double** | **Double**| None |
|
||||||
**string** | **String**| None |
|
**string** | **String**| None |
|
||||||
**_byte** | **byte[]**| None |
|
**_byte** | **byte[]**| None |
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|||||||
**binary** | **byte[]** | | [optional]
|
**binary** | **byte[]** | | [optional]
|
||||||
**date** | [**Date**](Date.md) | |
|
**date** | [**Date**](Date.md) | |
|
||||||
**dateTime** | [**Date**](Date.md) | | [optional]
|
**dateTime** | [**Date**](Date.md) | | [optional]
|
||||||
|
**uuid** | **String** | | [optional]
|
||||||
**password** | **String** | |
|
**password** | **String** | |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import io.swagger.client.ApiClient;
|
|||||||
import io.swagger.client.Configuration;
|
import io.swagger.client.Configuration;
|
||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -51,7 +52,7 @@ public class FakeApi {
|
|||||||
* @param password None (optional)
|
* @param password None (optional)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testEndpointParameters(String number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
public void testEndpointParameters(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'number' is set
|
// verify the required parameter 'number' is set
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import io.swagger.client.Configuration;
|
|||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
|
|
||||||
import io.swagger.client.model.Pet;
|
import io.swagger.client.model.Pet;
|
||||||
import java.io.File;
|
|
||||||
import io.swagger.client.model.ModelApiResponse;
|
import io.swagger.client.model.ModelApiResponse;
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AnimalFarm
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package io.swagger.client.api;
|
|||||||
|
|
||||||
import io.swagger.client.ApiClient;
|
import io.swagger.client.ApiClient;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -10,7 +11,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import feign.*;
|
import feign.*;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:05.435+08:00")
|
||||||
public interface FakeApi extends ApiClient.Api {
|
public interface FakeApi extends ApiClient.Api {
|
||||||
|
|
||||||
|
|
||||||
@@ -36,5 +37,5 @@ public interface FakeApi extends ApiClient.Api {
|
|||||||
"Content-type: application/x-www-form-urlencoded",
|
"Content-type: application/x-www-form-urlencoded",
|
||||||
"Accepts: application/json",
|
"Accepts: application/json",
|
||||||
})
|
})
|
||||||
void testEndpointParameters(@Param("number") String number, @Param("_double") Double _double, @Param("string") String string, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("binary") byte[] binary, @Param("date") Date date, @Param("dateTime") Date dateTime, @Param("password") String password);
|
void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("string") String string, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("binary") byte[] binary, @Param("date") Date date, @Param("dateTime") Date dateTime, @Param("password") String password);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AnimalFarm
|
||||||
|
*/
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:05.435+08:00")
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* FormatTest
|
* FormatTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-27T23:17:22.230+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:05.435+08:00")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
private Integer integer = null;
|
private Integer integer = null;
|
||||||
@@ -25,6 +25,7 @@ public class FormatTest {
|
|||||||
private byte[] binary = null;
|
private byte[] binary = null;
|
||||||
private Date date = null;
|
private Date date = null;
|
||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
private String uuid = null;
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
|
|
||||||
@@ -225,6 +226,23 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public FormatTest uuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public FormatTest password(String password) {
|
public FormatTest password(String password) {
|
||||||
@@ -262,12 +280,13 @@ public class FormatTest {
|
|||||||
Objects.equals(this.binary, formatTest.binary) &&
|
Objects.equals(this.binary, formatTest.binary) &&
|
||||||
Objects.equals(this.date, formatTest.date) &&
|
Objects.equals(this.date, formatTest.date) &&
|
||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||||
Objects.equals(this.password, formatTest.password);
|
Objects.equals(this.password, formatTest.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, password);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -286,6 +305,7 @@ public class FormatTest {
|
|||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|||||||
9
samples/client/petstore/java/jersey2/docs/AnimalFarm.md
Normal file
9
samples/client/petstore/java/jersey2/docs/AnimalFarm.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# AnimalFarm
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
14
samples/client/petstore/java/jersey2/docs/EnumClass.md
Normal file
14
samples/client/petstore/java/jersey2/docs/EnumClass.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
# EnumClass
|
||||||
|
|
||||||
|
## Enum
|
||||||
|
|
||||||
|
|
||||||
|
* `_ABC` (value: `"_abc"`)
|
||||||
|
|
||||||
|
* `_EFG` (value: `"-efg"`)
|
||||||
|
|
||||||
|
* `_XYZ_` (value: `"(xyz)"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
36
samples/client/petstore/java/jersey2/docs/EnumTest.md
Normal file
36
samples/client/petstore/java/jersey2/docs/EnumTest.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
# EnumTest
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**enumString** | [**EnumStringEnum**](#EnumStringEnum) | | [optional]
|
||||||
|
**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional]
|
||||||
|
**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumStringEnum"></a>
|
||||||
|
## Enum: EnumStringEnum
|
||||||
|
Name | Value
|
||||||
|
---- | -----
|
||||||
|
UPPER | "UPPER"
|
||||||
|
LOWER | "lower"
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumIntegerEnum"></a>
|
||||||
|
## Enum: EnumIntegerEnum
|
||||||
|
Name | Value
|
||||||
|
---- | -----
|
||||||
|
NUMBER_1 | 1
|
||||||
|
NUMBER_MINUS_1 | -1
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumNumberEnum"></a>
|
||||||
|
## Enum: EnumNumberEnum
|
||||||
|
Name | Value
|
||||||
|
---- | -----
|
||||||
|
NUMBER_1_DOT_1 | 1.1
|
||||||
|
NUMBER_MINUS_1_DOT_2 | -1.2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
75
samples/client/petstore/java/jersey2/docs/FakeApi.md
Normal file
75
samples/client/petstore/java/jersey2/docs/FakeApi.md
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# FakeApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters
|
||||||
|
|
||||||
|
|
||||||
|
<a name="testEndpointParameters"></a>
|
||||||
|
# **testEndpointParameters**
|
||||||
|
> testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password)
|
||||||
|
|
||||||
|
Fake endpoint for testing various parameters
|
||||||
|
|
||||||
|
Fake endpoint for testing various parameters
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```java
|
||||||
|
// Import classes:
|
||||||
|
//import io.swagger.client.ApiException;
|
||||||
|
//import io.swagger.client.api.FakeApi;
|
||||||
|
|
||||||
|
|
||||||
|
FakeApi apiInstance = new FakeApi();
|
||||||
|
BigDecimal number = new BigDecimal(); // BigDecimal | None
|
||||||
|
Double _double = 3.4D; // Double | None
|
||||||
|
String string = "string_example"; // String | None
|
||||||
|
byte[] _byte = B; // byte[] | None
|
||||||
|
Integer integer = 56; // Integer | None
|
||||||
|
Integer int32 = 56; // Integer | None
|
||||||
|
Long int64 = 789L; // Long | None
|
||||||
|
Float _float = 3.4F; // Float | None
|
||||||
|
byte[] binary = B; // byte[] | None
|
||||||
|
Date date = new Date(); // Date | None
|
||||||
|
Date dateTime = new Date(); // Date | None
|
||||||
|
String password = "password_example"; // String | None
|
||||||
|
try {
|
||||||
|
apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
|
||||||
|
} catch (ApiException e) {
|
||||||
|
System.err.println("Exception when calling FakeApi#testEndpointParameters");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**number** | **BigDecimal**| None |
|
||||||
|
**_double** | **Double**| None |
|
||||||
|
**string** | **String**| None |
|
||||||
|
**_byte** | **byte[]**| None |
|
||||||
|
**integer** | **Integer**| None | [optional]
|
||||||
|
**int32** | **Integer**| None | [optional]
|
||||||
|
**int64** | **Long**| None | [optional]
|
||||||
|
**_float** | **Float**| None | [optional]
|
||||||
|
**binary** | **byte[]**| None | [optional]
|
||||||
|
**date** | **Date**| None | [optional]
|
||||||
|
**dateTime** | **Date**| None | [optional]
|
||||||
|
**password** | **String**| None | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
null (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
@@ -11,11 +11,12 @@ Name | Type | Description | Notes
|
|||||||
**_float** | **Float** | | [optional]
|
**_float** | **Float** | | [optional]
|
||||||
**_double** | **Double** | | [optional]
|
**_double** | **Double** | | [optional]
|
||||||
**string** | **String** | | [optional]
|
**string** | **String** | | [optional]
|
||||||
**_byte** | **byte[]** | | [optional]
|
**_byte** | **byte[]** | |
|
||||||
**binary** | **byte[]** | | [optional]
|
**binary** | **byte[]** | | [optional]
|
||||||
**date** | [**Date**](Date.md) | | [optional]
|
**date** | [**Date**](Date.md) | |
|
||||||
**dateTime** | [**Date**](Date.md) | | [optional]
|
**dateTime** | [**Date**](Date.md) | | [optional]
|
||||||
**password** | **String** | | [optional]
|
**uuid** | **String** | | [optional]
|
||||||
|
**password** | **String** | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|||||||
## Enum: StatusEnum
|
## Enum: StatusEnum
|
||||||
Name | Value
|
Name | Value
|
||||||
---- | -----
|
---- | -----
|
||||||
PLACED | placed
|
PLACED | "placed"
|
||||||
APPROVED | approved
|
APPROVED | "approved"
|
||||||
DELIVERED | delivered
|
DELIVERED | "delivered"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|||||||
## Enum: StatusEnum
|
## Enum: StatusEnum
|
||||||
Name | Value
|
Name | Value
|
||||||
---- | -----
|
---- | -----
|
||||||
AVAILABLE | available
|
AVAILABLE | "available"
|
||||||
PENDING | pending
|
PENDING | "pending"
|
||||||
SOLD | sold
|
SOLD | "sold"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,128 @@
|
|||||||
|
package io.swagger.client.api;
|
||||||
|
|
||||||
|
import io.swagger.client.ApiException;
|
||||||
|
import io.swagger.client.ApiClient;
|
||||||
|
import io.swagger.client.Configuration;
|
||||||
|
import io.swagger.client.Pair;
|
||||||
|
|
||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
|
public class FakeApi {
|
||||||
|
private ApiClient apiClient;
|
||||||
|
|
||||||
|
public FakeApi() {
|
||||||
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public FakeApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fake endpoint for testing various parameters
|
||||||
|
* Fake endpoint for testing various parameters
|
||||||
|
* @param number None (required)
|
||||||
|
* @param _double None (required)
|
||||||
|
* @param string None (required)
|
||||||
|
* @param _byte None (required)
|
||||||
|
* @param integer None (optional)
|
||||||
|
* @param int32 None (optional)
|
||||||
|
* @param int64 None (optional)
|
||||||
|
* @param _float None (optional)
|
||||||
|
* @param binary None (optional)
|
||||||
|
* @param date None (optional)
|
||||||
|
* @param dateTime None (optional)
|
||||||
|
* @param password None (optional)
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public void testEndpointParameters(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
||||||
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
|
// verify the required parameter 'number' is set
|
||||||
|
if (number == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify the required parameter '_double' is set
|
||||||
|
if (_double == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify the required parameter 'string' is set
|
||||||
|
if (string == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'string' when calling testEndpointParameters");
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify the required parameter '_byte' is set
|
||||||
|
if (_byte == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter '_byte' when calling testEndpointParameters");
|
||||||
|
}
|
||||||
|
|
||||||
|
// create path and map variables
|
||||||
|
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
||||||
|
|
||||||
|
// query params
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (integer != null)
|
||||||
|
localVarFormParams.put("integer", integer);
|
||||||
|
if (int32 != null)
|
||||||
|
localVarFormParams.put("int32", int32);
|
||||||
|
if (int64 != null)
|
||||||
|
localVarFormParams.put("int64", int64);
|
||||||
|
if (number != null)
|
||||||
|
localVarFormParams.put("number", number);
|
||||||
|
if (_float != null)
|
||||||
|
localVarFormParams.put("float", _float);
|
||||||
|
if (_double != null)
|
||||||
|
localVarFormParams.put("double", _double);
|
||||||
|
if (string != null)
|
||||||
|
localVarFormParams.put("string", string);
|
||||||
|
if (_byte != null)
|
||||||
|
localVarFormParams.put("byte", _byte);
|
||||||
|
if (binary != null)
|
||||||
|
localVarFormParams.put("binary", binary);
|
||||||
|
if (date != null)
|
||||||
|
localVarFormParams.put("date", date);
|
||||||
|
if (dateTime != null)
|
||||||
|
localVarFormParams.put("dateTime", dateTime);
|
||||||
|
if (password != null)
|
||||||
|
localVarFormParams.put("password", password);
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/xml", "application/json"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
|
||||||
|
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Animal {
|
public class Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@@ -31,7 +31,6 @@ public class Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AnimalFarm
|
||||||
|
*/
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@@ -33,7 +33,7 @@ public class Cat extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Cat declawed(Boolean declawed) {
|
public Cat declawed(Boolean declawed) {
|
||||||
@@ -50,7 +50,6 @@ public class Cat extends Animal {
|
|||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@@ -32,7 +32,7 @@ public class Category {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
@@ -49,7 +49,6 @@ public class Category {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import io.swagger.client.model.Animal;
|
|||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
|
|
||||||
private String className = null;
|
private String className = null;
|
||||||
@@ -33,7 +33,7 @@ public class Dog extends Animal {
|
|||||||
this.className = className;
|
this.className = className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Dog breed(String breed) {
|
public Dog breed(String breed) {
|
||||||
@@ -50,7 +50,6 @@ public class Dog extends Animal {
|
|||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
|
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ public class EnumTest {
|
|||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
@@ -114,7 +114,7 @@ public class EnumTest {
|
|||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
@@ -131,7 +131,6 @@ public class EnumTest {
|
|||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import java.math.BigDecimal;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormatTest
|
||||||
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:58:40.273+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
private Integer integer = null;
|
private Integer integer = null;
|
||||||
@@ -25,10 +25,13 @@ public class FormatTest {
|
|||||||
private byte[] binary = null;
|
private byte[] binary = null;
|
||||||
private Date date = null;
|
private Date date = null;
|
||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
private String uuid = null;
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 10.0
|
||||||
|
* maximum: 100.0
|
||||||
**/
|
**/
|
||||||
public FormatTest integer(Integer integer) {
|
public FormatTest integer(Integer integer) {
|
||||||
this.integer = integer;
|
this.integer = integer;
|
||||||
@@ -46,6 +49,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 20.0
|
||||||
|
* maximum: 200.0
|
||||||
**/
|
**/
|
||||||
public FormatTest int32(Integer int32) {
|
public FormatTest int32(Integer int32) {
|
||||||
this.int32 = int32;
|
this.int32 = int32;
|
||||||
@@ -80,6 +85,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 32.1
|
||||||
|
* maximum: 543.2
|
||||||
**/
|
**/
|
||||||
public FormatTest number(BigDecimal number) {
|
public FormatTest number(BigDecimal number) {
|
||||||
this.number = number;
|
this.number = number;
|
||||||
@@ -97,6 +104,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 54.3
|
||||||
|
* maximum: 987.6
|
||||||
**/
|
**/
|
||||||
public FormatTest _float(Float _float) {
|
public FormatTest _float(Float _float) {
|
||||||
this._float = _float;
|
this._float = _float;
|
||||||
@@ -114,6 +123,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* minimum: 67.8
|
||||||
|
* maximum: 123.4
|
||||||
**/
|
**/
|
||||||
public FormatTest _double(Double _double) {
|
public FormatTest _double(Double _double) {
|
||||||
this._double = _double;
|
this._double = _double;
|
||||||
@@ -154,7 +165,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("byte")
|
@JsonProperty("byte")
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
@@ -188,7 +199,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("date")
|
@JsonProperty("date")
|
||||||
public Date getDate() {
|
public Date getDate() {
|
||||||
return date;
|
return date;
|
||||||
@@ -215,6 +226,23 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public FormatTest uuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public FormatTest password(String password) {
|
public FormatTest password(String password) {
|
||||||
@@ -222,7 +250,7 @@ public class FormatTest {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("password")
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
@@ -252,12 +280,13 @@ public class FormatTest {
|
|||||||
Objects.equals(this.binary, formatTest.binary) &&
|
Objects.equals(this.binary, formatTest.binary) &&
|
||||||
Objects.equals(this.date, formatTest.date) &&
|
Objects.equals(this.date, formatTest.date) &&
|
||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||||
Objects.equals(this.password, formatTest.password);
|
Objects.equals(this.password, formatTest.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, password);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -276,6 +305,7 @@ public class FormatTest {
|
|||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|||||||
@@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model200Response
|
* Model for testing model name starting with number
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
@@ -31,7 +32,6 @@ public class Model200Response {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ModelApiResponse
|
||||||
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-23T12:58:40.273+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
|||||||
@@ -7,9 +7,10 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelReturn
|
* Model for testing reserved words
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
|
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
@@ -31,7 +32,6 @@ public class ModelReturn {
|
|||||||
this._return = _return;
|
this._return = _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -7,13 +7,15 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name
|
* Model for testing model name same as property name
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Name {
|
public class Name {
|
||||||
|
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
private Integer snakeCase = null;
|
private Integer snakeCase = null;
|
||||||
|
private String property = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -23,7 +25,7 @@ public class Name {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
@@ -32,24 +34,30 @@ public class Name {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
**/
|
|
||||||
public Name snakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("snake_case")
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
public void setSnakeCase(Integer snakeCase) {
|
|
||||||
this.snakeCase = snakeCase;
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Name property(String property) {
|
||||||
|
this.property = property;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@JsonProperty("property")
|
||||||
|
public String getProperty() {
|
||||||
|
return property;
|
||||||
|
}
|
||||||
|
public void setProperty(String property) {
|
||||||
|
this.property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@@ -61,12 +69,13 @@ public class Name {
|
|||||||
}
|
}
|
||||||
Name name = (Name) o;
|
Name name = (Name) o;
|
||||||
return Objects.equals(this.name, name.name) &&
|
return Objects.equals(this.name, name.name) &&
|
||||||
Objects.equals(this.snakeCase, name.snakeCase);
|
Objects.equals(this.snakeCase, name.snakeCase) &&
|
||||||
|
Objects.equals(this.property, name.property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, snakeCase);
|
return Objects.hash(name, snakeCase, property);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -76,6 +85,7 @@ public class Name {
|
|||||||
|
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
||||||
|
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@@ -40,17 +40,27 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatusEnum status = StatusEnum.PLACED;
|
private StatusEnum status = null;
|
||||||
private Boolean complete = null;
|
private Boolean complete = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
public Order id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
@@ -67,7 +77,7 @@ public class Order {
|
|||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
@@ -84,7 +94,7 @@ public class Order {
|
|||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order shipDate(Date shipDate) {
|
public Order shipDate(Date shipDate) {
|
||||||
@@ -101,7 +111,7 @@ public class Order {
|
|||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
**/
|
**/
|
||||||
@@ -119,7 +129,7 @@ public class Order {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
@@ -136,7 +146,6 @@ public class Order {
|
|||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@@ -63,7 +63,7 @@ public class Pet {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
@@ -80,7 +80,7 @@ public class Pet {
|
|||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet name(String name) {
|
public Pet name(String name) {
|
||||||
@@ -97,7 +97,7 @@ public class Pet {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet photoUrls(List<String> photoUrls) {
|
public Pet photoUrls(List<String> photoUrls) {
|
||||||
@@ -114,7 +114,7 @@ public class Pet {
|
|||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Pet tags(List<Tag> tags) {
|
public Pet tags(List<Tag> tags) {
|
||||||
@@ -131,7 +131,7 @@ public class Pet {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
**/
|
**/
|
||||||
@@ -149,7 +149,6 @@ public class Pet {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
|
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
@@ -31,7 +31,6 @@ public class SpecialModelName {
|
|||||||
this.specialPropertyName = specialPropertyName;
|
this.specialPropertyName = specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@@ -32,7 +32,7 @@ public class Tag {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
@@ -49,7 +49,6 @@ public class Tag {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-12T23:06:12.393+08:00")
|
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-05-06T18:35:03.551+08:00")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
@@ -38,7 +38,7 @@ public class User {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
@@ -55,7 +55,7 @@ public class User {
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
@@ -72,7 +72,7 @@ public class User {
|
|||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
@@ -89,7 +89,7 @@ public class User {
|
|||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
@@ -106,7 +106,7 @@ public class User {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
@@ -123,7 +123,7 @@ public class User {
|
|||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
@@ -140,7 +140,7 @@ public class User {
|
|||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
**/
|
**/
|
||||||
@@ -158,7 +158,6 @@ public class User {
|
|||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# AnimalFarm
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -4,11 +4,11 @@
|
|||||||
## Enum
|
## Enum
|
||||||
|
|
||||||
|
|
||||||
* `_ABC` (value: `"_abc"`)
|
* `_ABC` (value: `"_abc"`)
|
||||||
|
|
||||||
* `_EFG` (value: `"-efg"`)
|
* `_EFG` (value: `"-efg"`)
|
||||||
|
|
||||||
* `_XYZ_` (value: `"(xyz)"`)
|
* `_XYZ_` (value: `"(xyz)"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Fake endpoint for testing various parameters
|
|||||||
|
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi();
|
FakeApi apiInstance = new FakeApi();
|
||||||
String number = "number_example"; // String | None
|
BigDecimal number = new BigDecimal(); // BigDecimal | None
|
||||||
Double _double = 3.4D; // Double | None
|
Double _double = 3.4D; // Double | None
|
||||||
String string = "string_example"; // String | None
|
String string = "string_example"; // String | None
|
||||||
byte[] _byte = B; // byte[] | None
|
byte[] _byte = B; // byte[] | None
|
||||||
@@ -47,7 +47,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**number** | **String**| None |
|
**number** | **BigDecimal**| None |
|
||||||
**_double** | **Double**| None |
|
**_double** | **Double**| None |
|
||||||
**string** | **String**| None |
|
**string** | **String**| None |
|
||||||
**_byte** | **byte[]**| None |
|
**_byte** | **byte[]**| None |
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|||||||
**binary** | **byte[]** | | [optional]
|
**binary** | **byte[]** | | [optional]
|
||||||
**date** | [**Date**](Date.md) | |
|
**date** | [**Date**](Date.md) | |
|
||||||
**dateTime** | [**Date**](Date.md) | | [optional]
|
**dateTime** | [**Date**](Date.md) | | [optional]
|
||||||
|
**uuid** | **String** | | [optional]
|
||||||
**password** | **String** | |
|
**password** | **String** | |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import com.squareup.okhttp.Response;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
@@ -45,7 +46,7 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Build call for testEndpointParameters */
|
/* Build call for testEndpointParameters */
|
||||||
private Call testEndpointParametersCall(String number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
private Call testEndpointParametersCall(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'number' is set
|
// verify the required parameter 'number' is set
|
||||||
@@ -147,7 +148,7 @@ public class FakeApi {
|
|||||||
* @param password None (optional)
|
* @param password None (optional)
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
*/
|
*/
|
||||||
public void testEndpointParameters(String number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
public void testEndpointParameters(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
||||||
testEndpointParametersWithHttpInfo(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
|
testEndpointParametersWithHttpInfo(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,7 +170,7 @@ public class FakeApi {
|
|||||||
* @return ApiResponse<Void>
|
* @return ApiResponse<Void>
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
*/
|
*/
|
||||||
public ApiResponse<Void> testEndpointParametersWithHttpInfo(String number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) throws ApiException {
|
||||||
Call call = testEndpointParametersCall(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password, null, null);
|
Call call = testEndpointParametersCall(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password, null, null);
|
||||||
return apiClient.execute(call);
|
return apiClient.execute(call);
|
||||||
}
|
}
|
||||||
@@ -193,7 +194,7 @@ public class FakeApi {
|
|||||||
* @return The request call
|
* @return The request call
|
||||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||||
*/
|
*/
|
||||||
public Call testEndpointParametersAsync(String number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password, final ApiCallback<Void> callback) throws ApiException {
|
public Call testEndpointParametersAsync(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password, final ApiCallback<Void> callback) throws ApiException {
|
||||||
|
|
||||||
ProgressResponseBody.ProgressListener progressListener = null;
|
ProgressResponseBody.ProgressListener progressListener = null;
|
||||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AnimalFarm
|
||||||
|
*/
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -47,6 +47,9 @@ public class FormatTest {
|
|||||||
@SerializedName("dateTime")
|
@SerializedName("dateTime")
|
||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
|
||||||
|
@SerializedName("uuid")
|
||||||
|
private String uuid = null;
|
||||||
|
|
||||||
@SerializedName("password")
|
@SerializedName("password")
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
@@ -170,6 +173,16 @@ public class FormatTest {
|
|||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@@ -201,12 +214,13 @@ public class FormatTest {
|
|||||||
Objects.equals(this.binary, formatTest.binary) &&
|
Objects.equals(this.binary, formatTest.binary) &&
|
||||||
Objects.equals(this.date, formatTest.date) &&
|
Objects.equals(this.date, formatTest.date) &&
|
||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||||
Objects.equals(this.password, formatTest.password);
|
Objects.equals(this.password, formatTest.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, password);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -225,6 +239,7 @@ public class FormatTest {
|
|||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import retrofit.Callback;
|
|||||||
import retrofit.http.*;
|
import retrofit.http.*;
|
||||||
import retrofit.mime.*;
|
import retrofit.mime.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -36,7 +37,7 @@ public interface FakeApi {
|
|||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
@POST("/fake")
|
@POST("/fake")
|
||||||
Void testEndpointParameters(
|
Void testEndpointParameters(
|
||||||
@Field("number") String number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password
|
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -61,6 +62,6 @@ public interface FakeApi {
|
|||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
@POST("/fake")
|
@POST("/fake")
|
||||||
void testEndpointParameters(
|
void testEndpointParameters(
|
||||||
@Field("number") String number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password, Callback<Void> cb
|
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password, Callback<Void> cb
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AnimalFarm animalFarm = (AnimalFarm) o;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -47,6 +47,9 @@ public class FormatTest {
|
|||||||
@SerializedName("dateTime")
|
@SerializedName("dateTime")
|
||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
|
||||||
|
@SerializedName("uuid")
|
||||||
|
private String uuid = null;
|
||||||
|
|
||||||
@SerializedName("password")
|
@SerializedName("password")
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
@@ -170,6 +173,16 @@ public class FormatTest {
|
|||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@@ -201,12 +214,13 @@ public class FormatTest {
|
|||||||
Objects.equals(binary, formatTest.binary) &&
|
Objects.equals(binary, formatTest.binary) &&
|
||||||
Objects.equals(date, formatTest.date) &&
|
Objects.equals(date, formatTest.date) &&
|
||||||
Objects.equals(dateTime, formatTest.dateTime) &&
|
Objects.equals(dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(uuid, formatTest.uuid) &&
|
||||||
Objects.equals(password, formatTest.password);
|
Objects.equals(password, formatTest.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, password);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -225,6 +239,7 @@ public class FormatTest {
|
|||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import retrofit2.http.*;
|
|||||||
|
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -37,7 +38,7 @@ public interface FakeApi {
|
|||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
@POST("fake")
|
@POST("fake")
|
||||||
Call<Void> testEndpointParameters(
|
Call<Void> testEndpointParameters(
|
||||||
@Field("number") String number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password
|
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("string") String string, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("binary") byte[] binary, @Field("date") Date date, @Field("dateTime") Date dateTime, @Field("password") String password
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AnimalFarm animalFarm = (AnimalFarm) o;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -47,6 +47,9 @@ public class FormatTest {
|
|||||||
@SerializedName("dateTime")
|
@SerializedName("dateTime")
|
||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
|
||||||
|
@SerializedName("uuid")
|
||||||
|
private String uuid = null;
|
||||||
|
|
||||||
@SerializedName("password")
|
@SerializedName("password")
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
@@ -170,6 +173,16 @@ public class FormatTest {
|
|||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@@ -201,12 +214,13 @@ public class FormatTest {
|
|||||||
Objects.equals(binary, formatTest.binary) &&
|
Objects.equals(binary, formatTest.binary) &&
|
||||||
Objects.equals(date, formatTest.date) &&
|
Objects.equals(date, formatTest.date) &&
|
||||||
Objects.equals(dateTime, formatTest.dateTime) &&
|
Objects.equals(dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(uuid, formatTest.uuid) &&
|
||||||
Objects.equals(password, formatTest.password);
|
Objects.equals(password, formatTest.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, password);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -225,6 +239,7 @@ public class FormatTest {
|
|||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="YOUR_GIT_USR_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="YOUR_GIT_REPO_ID"
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package io.swagger.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.client.model.Animal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AnimalFarm animalFarm = (AnimalFarm) o;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AnimalFarm {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
@@ -49,7 +48,7 @@ public class FormatTest {
|
|||||||
private Date dateTime = null;
|
private Date dateTime = null;
|
||||||
|
|
||||||
@SerializedName("uuid")
|
@SerializedName("uuid")
|
||||||
private UUID uuid = null;
|
private String uuid = null;
|
||||||
|
|
||||||
@SerializedName("password")
|
@SerializedName("password")
|
||||||
private String password = null;
|
private String password = null;
|
||||||
@@ -177,10 +176,10 @@ public class FormatTest {
|
|||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public UUID getUuid() {
|
public String getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
public void setUuid(UUID uuid) {
|
public void setUuid(String uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
# SwaggerPetstore.EnumClass
|
# SwaggerPetstore.EnumClass
|
||||||
|
|
||||||
## Properties
|
## Enum
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
* `_abc` (value: `"_abc"`)
|
||||||
|
|
||||||
|
* `-efg` (value: `"-efg"`)
|
||||||
|
|
||||||
|
* `(xyz)` (value: `"(xyz)"`)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,3 +8,36 @@ Name | Type | Description | Notes
|
|||||||
**enumNumber** | **Number** | | [optional]
|
**enumNumber** | **Number** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumStringEnum"></a>
|
||||||
|
## Enum: EnumStringEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `UPPER` (value: `"UPPER"`)
|
||||||
|
|
||||||
|
* `lower` (value: `"lower"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumIntegerEnum"></a>
|
||||||
|
## Enum: EnumIntegerEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `1` (value: `1`)
|
||||||
|
|
||||||
|
* `-1` (value: `-1`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumNumberEnum"></a>
|
||||||
|
## Enum: EnumNumberEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `1.1` (value: `1.1`)
|
||||||
|
|
||||||
|
* `-1.2` (value: `-1.2`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,16 @@ Name | Type | Description | Notes
|
|||||||
**complete** | **Boolean** | | [optional] [default to false]
|
**complete** | **Boolean** | | [optional] [default to false]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="StatusEnum"></a>
|
||||||
|
## Enum: StatusEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `placed` (value: `"placed"`)
|
||||||
|
|
||||||
|
* `approved` (value: `"approved"`)
|
||||||
|
|
||||||
|
* `delivered` (value: `"delivered"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,16 @@ Name | Type | Description | Notes
|
|||||||
**status** | **String** | pet status in the store | [optional]
|
**status** | **String** | pet status in the store | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="StatusEnum"></a>
|
||||||
|
## Enum: StatusEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `available` (value: `"available"`)
|
||||||
|
|
||||||
|
* `pending` (value: `"pending"`)
|
||||||
|
|
||||||
|
* `sold` (value: `"sold"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,17 +23,17 @@
|
|||||||
*/
|
*/
|
||||||
var exports = {
|
var exports = {
|
||||||
/**
|
/**
|
||||||
* value: _abc
|
* value: "_abc"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"_abc": "_abc",
|
"_abc": "_abc",
|
||||||
/**
|
/**
|
||||||
* value: -efg
|
* value: "-efg"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-efg": "-efg",
|
"-efg": "-efg",
|
||||||
/**
|
/**
|
||||||
* value: (xyz)
|
* value: "(xyz)"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"(xyz)": "(xyz)" };
|
"(xyz)": "(xyz)" };
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- Package version: 1.0.0
|
||||||
- Build date: 2016-05-03T11:05:41.851+08:00
|
- Build date: 2016-05-06T18:34:50.267+08:00
|
||||||
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
|
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@@ -117,6 +117,7 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [SwaggerPetstore.Animal](docs/Animal.md)
|
- [SwaggerPetstore.Animal](docs/Animal.md)
|
||||||
|
- [SwaggerPetstore.AnimalFarm](docs/AnimalFarm.md)
|
||||||
- [SwaggerPetstore.ApiResponse](docs/ApiResponse.md)
|
- [SwaggerPetstore.ApiResponse](docs/ApiResponse.md)
|
||||||
- [SwaggerPetstore.Cat](docs/Cat.md)
|
- [SwaggerPetstore.Cat](docs/Cat.md)
|
||||||
- [SwaggerPetstore.Category](docs/Category.md)
|
- [SwaggerPetstore.Category](docs/Category.md)
|
||||||
@@ -137,12 +138,6 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
|
|
||||||
|
|
||||||
### api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
- **Type**: OAuth
|
- **Type**: OAuth
|
||||||
@@ -152,3 +147,9 @@ Class | Method | HTTP request | Description
|
|||||||
- write:pets: modify pets in your account
|
- write:pets: modify pets in your account
|
||||||
- read:pets: read your pets
|
- read:pets: read your pets
|
||||||
|
|
||||||
|
### api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
|||||||
7
samples/client/petstore/javascript/docs/AnimalFarm.md
Normal file
7
samples/client/petstore/javascript/docs/AnimalFarm.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# SwaggerPetstore.AnimalFarm
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
# SwaggerPetstore.EnumClass
|
# SwaggerPetstore.EnumClass
|
||||||
|
|
||||||
## Properties
|
## Enum
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
|
* `_abc` (value: `"_abc"`)
|
||||||
|
|
||||||
|
* `-efg` (value: `"-efg"`)
|
||||||
|
|
||||||
|
* `(xyz)` (value: `"(xyz)"`)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,3 +8,36 @@ Name | Type | Description | Notes
|
|||||||
**enumNumber** | **Number** | | [optional]
|
**enumNumber** | **Number** | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumStringEnum"></a>
|
||||||
|
## Enum: EnumStringEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `UPPER` (value: `"UPPER"`)
|
||||||
|
|
||||||
|
* `lower` (value: `"lower"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumIntegerEnum"></a>
|
||||||
|
## Enum: EnumIntegerEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `1` (value: `1`)
|
||||||
|
|
||||||
|
* `-1` (value: `-1`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="EnumNumberEnum"></a>
|
||||||
|
## Enum: EnumNumberEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `1.1` (value: `1.1`)
|
||||||
|
|
||||||
|
* `-1.2` (value: `-1.2`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,16 @@ Name | Type | Description | Notes
|
|||||||
**complete** | **Boolean** | | [optional] [default to false]
|
**complete** | **Boolean** | | [optional] [default to false]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="StatusEnum"></a>
|
||||||
|
## Enum: StatusEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `placed` (value: `"placed"`)
|
||||||
|
|
||||||
|
* `approved` (value: `"approved"`)
|
||||||
|
|
||||||
|
* `delivered` (value: `"delivered"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,16 @@ Name | Type | Description | Notes
|
|||||||
**status** | **String** | pet status in the store | [optional]
|
**status** | **String** | pet status in the store | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
<a name="StatusEnum"></a>
|
||||||
|
## Enum: StatusEnum
|
||||||
|
|
||||||
|
|
||||||
|
* `available` (value: `"available"`)
|
||||||
|
|
||||||
|
* `pending` (value: `"pending"`)
|
||||||
|
|
||||||
|
* `sold` (value: `"sold"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,8 @@
|
|||||||
* @type {Array.<String>}
|
* @type {Array.<String>}
|
||||||
*/
|
*/
|
||||||
this.authentications = {
|
this.authentications = {
|
||||||
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
'petstore_auth': {type: 'oauth2'},
|
||||||
'petstore_auth': {type: 'oauth2'}
|
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* The default HTTP headers to be included for all API calls.
|
* The default HTTP headers to be included for all API calls.
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define(['ApiClient', 'model/Animal', 'model/ApiResponse', 'model/Cat', 'model/Category', 'model/Dog', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/Order', 'model/Pet', 'model/SpecialModelName', 'model/Tag', 'model/User', 'api/FakeApi', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
|
define(['ApiClient', 'model/Animal', 'model/AnimalFarm', 'model/ApiResponse', 'model/Cat', 'model/Category', 'model/Dog', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/Order', 'model/Pet', 'model/SpecialModelName', 'model/Tag', 'model/User', 'api/FakeApi', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// CommonJS-like environments that support module.exports, like Node.
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
module.exports = factory(require('./ApiClient'), require('./model/Animal'), require('./model/ApiResponse'), require('./model/Cat'), require('./model/Category'), require('./model/Dog'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/Order'), require('./model/Pet'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./api/FakeApi'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
|
module.exports = factory(require('./ApiClient'), require('./model/Animal'), require('./model/AnimalFarm'), require('./model/ApiResponse'), require('./model/Cat'), require('./model/Category'), require('./model/Dog'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/Order'), require('./model/Pet'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./api/FakeApi'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
|
||||||
}
|
}
|
||||||
}(function(ApiClient, Animal, ApiResponse, Cat, Category, Dog, EnumClass, EnumTest, FormatTest, Model200Response, ModelReturn, Name, Order, Pet, SpecialModelName, Tag, User, FakeApi, PetApi, StoreApi, UserApi) {
|
}(function(ApiClient, Animal, AnimalFarm, ApiResponse, Cat, Category, Dog, EnumClass, EnumTest, FormatTest, Model200Response, ModelReturn, Name, Order, Pet, SpecialModelName, Tag, User, FakeApi, PetApi, StoreApi, UserApi) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -51,6 +51,11 @@
|
|||||||
* @property {module:model/Animal}
|
* @property {module:model/Animal}
|
||||||
*/
|
*/
|
||||||
Animal: Animal,
|
Animal: Animal,
|
||||||
|
/**
|
||||||
|
* The AnimalFarm model constructor.
|
||||||
|
* @property {module:model/AnimalFarm}
|
||||||
|
*/
|
||||||
|
AnimalFarm: AnimalFarm,
|
||||||
/**
|
/**
|
||||||
* The ApiResponse model constructor.
|
* The ApiResponse model constructor.
|
||||||
* @property {module:model/ApiResponse}
|
* @property {module:model/ApiResponse}
|
||||||
|
|||||||
64
samples/client/petstore/javascript/src/model/AnimalFarm.js
Normal file
64
samples/client/petstore/javascript/src/model/AnimalFarm.js
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['ApiClient', 'model/Animal'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
module.exports = factory(require('../ApiClient'), require('./Animal'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
if (!root.SwaggerPetstore) {
|
||||||
|
root.SwaggerPetstore = {};
|
||||||
|
}
|
||||||
|
root.SwaggerPetstore.AnimalFarm = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
|
||||||
|
}
|
||||||
|
}(this, function(ApiClient, Animal) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The AnimalFarm model module.
|
||||||
|
* @module model/AnimalFarm
|
||||||
|
* @version 1.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>AnimalFarm</code>.
|
||||||
|
* @alias module:model/AnimalFarm
|
||||||
|
* @class
|
||||||
|
* @extends Array
|
||||||
|
*/
|
||||||
|
var exports = function() {
|
||||||
|
var _this = this;
|
||||||
|
_this = new Array();
|
||||||
|
Object.setPrototypeOf(_this, exports);
|
||||||
|
|
||||||
|
return _this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
||||||
|
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||||
|
*/
|
||||||
|
exports.constructFromObject = function(data, obj) {
|
||||||
|
if (data) {
|
||||||
|
obj = obj || new exports();
|
||||||
|
ApiClient.constructFromObject(data, obj, Animal);
|
||||||
|
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return exports;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
@@ -23,17 +23,17 @@
|
|||||||
*/
|
*/
|
||||||
var exports = {
|
var exports = {
|
||||||
/**
|
/**
|
||||||
* value: _abc
|
* value: "_abc"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"_abc": "_abc",
|
"_abc": "_abc",
|
||||||
/**
|
/**
|
||||||
* value: -efg
|
* value: "-efg"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"-efg": "-efg",
|
"-efg": "-efg",
|
||||||
/**
|
/**
|
||||||
* value: (xyz)
|
* value: "(xyz)"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
"(xyz)": "(xyz)" };
|
"(xyz)": "(xyz)" };
|
||||||
|
|||||||
Reference in New Issue
Block a user