format generated code

This commit is contained in:
Sebastien Rosset (serosset)
2020-04-30 14:37:16 +00:00
parent 7b954f6c50
commit 3b52778437
2991 changed files with 158983 additions and 165057 deletions

View File

@@ -23,7 +23,6 @@ import feign.slf4j.Slf4jLogger;
import org.openapitools.client.auth.*;
import org.openapitools.client.auth.OAuth.AccessTokenListener;
public class ApiClient {
public interface Api {}
@@ -35,15 +34,16 @@ public class ApiClient {
public ApiClient() {
objectMapper = createObjectMapper();
apiAuthorizations = new LinkedHashMap<String, RequestInterceptor>();
feignBuilder = Feign.builder()
.encoder(new FormEncoder(new JacksonEncoder(objectMapper)))
.decoder(new JacksonDecoder(objectMapper))
.logger(new Slf4jLogger());
feignBuilder =
Feign.builder()
.encoder(new FormEncoder(new JacksonEncoder(objectMapper)))
.decoder(new JacksonDecoder(objectMapper))
.logger(new Slf4jLogger());
}
public ApiClient(String[] authNames) {
this();
for(String authName : authNames) {
for (String authName : authNames) {
RequestInterceptor auth;
if ("api_key".equals(authName)) {
auth = new ApiKeyAuth("header", "api_key");
@@ -52,9 +52,12 @@ public class ApiClient {
} else if ("http_basic_test".equals(authName)) {
auth = new HttpBasicAuth();
} else if ("petstore_auth".equals(authName)) {
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
auth = new OAuth(OAuthFlow.implicit,
"http://petstore.swagger.io/api/oauth/dialog", "",
"write:pets, read:pets");
} else {
throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names");
throw new RuntimeException("auth name \"" + authName +
"\" not found in available auth names");
}
addAuthorization(authName, auth);
}
@@ -64,9 +67,7 @@ public class ApiClient {
* Basic constructor for single auth name
* @param authName
*/
public ApiClient(String authName) {
this(new String[]{authName});
}
public ApiClient(String authName) { this(new String[] {authName}); }
/**
* Helper constructor for single api key
@@ -86,7 +87,7 @@ public class ApiClient {
*/
public ApiClient(String authName, String username, String password) {
this(authName);
this.setCredentials(username, password);
this.setCredentials(username, password);
}
/**
@@ -97,18 +98,17 @@ public class ApiClient {
* @param username
* @param password
*/
public ApiClient(String authName, String clientId, String secret, String username, String password) {
public ApiClient(String authName, String clientId, String secret,
String username, String password) {
this(authName);
this.getTokenEndPoint()
.setClientId(clientId)
.setClientSecret(secret)
.setUsername(username)
.setPassword(password);
.setClientId(clientId)
.setClientSecret(secret)
.setUsername(username)
.setPassword(password);
}
public String getBasePath() {
return basePath;
}
public String getBasePath() { return basePath; }
public ApiClient setBasePath(String basePath) {
this.basePath = basePath;
@@ -119,13 +119,12 @@ public class ApiClient {
return apiAuthorizations;
}
public void setApiAuthorizations(Map<String, RequestInterceptor> apiAuthorizations) {
public void
setApiAuthorizations(Map<String, RequestInterceptor> apiAuthorizations) {
this.apiAuthorizations = apiAuthorizations;
}
public Feign.Builder getFeignBuilder() {
return feignBuilder;
}
public Feign.Builder getFeignBuilder() { return feignBuilder; }
public ApiClient setFeignBuilder(Feign.Builder feignBuilder) {
this.feignBuilder = feignBuilder;
@@ -142,17 +141,17 @@ public class ApiClient {
objectMapper.setDateFormat(new RFC3339DateFormat());
ThreeTenModule module = new ThreeTenModule();
module.addDeserializer(Instant.class, CustomInstantDeserializer.INSTANT);
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
module.addDeserializer(OffsetDateTime.class,
CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class,
CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module);
JsonNullableModule jnm = new JsonNullableModule();
objectMapper.registerModule(jnm);
return objectMapper;
}
public ObjectMapper getObjectMapper(){
return objectMapper;
}
public ObjectMapper getObjectMapper() { return objectMapper; }
/**
* Creates a feign client for given API interface.
@@ -180,8 +179,10 @@ public class ApiClient {
* null will be returned (not to set the Accept header explicitly).
*/
public String selectHeaderAccept(String[] accepts) {
if (accepts.length == 0) return null;
if (StringUtil.containsIgnoreCase(accepts, "application/json")) return "application/json";
if (accepts.length == 0)
return null;
if (StringUtil.containsIgnoreCase(accepts, "application/json"))
return "application/json";
return StringUtil.join(accepts, ",");
}
@@ -195,20 +196,21 @@ public class ApiClient {
* JSON will be used.
*/
public String selectHeaderContentType(String[] contentTypes) {
if (contentTypes.length == 0) return "application/json";
if (StringUtil.containsIgnoreCase(contentTypes, "application/json")) return "application/json";
if (contentTypes.length == 0)
return "application/json";
if (StringUtil.containsIgnoreCase(contentTypes, "application/json"))
return "application/json";
return contentTypes[0];
}
/**
* Helper method to configure the bearer token.
* @param bearerToken the bearer token.
*/
public void setBearerToken(String bearerToken) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof HttpBearerAuth) {
((HttpBearerAuth) apiAuthorization).setBearerToken(bearerToken);
((HttpBearerAuth)apiAuthorization).setBearerToken(bearerToken);
return;
}
}
@@ -220,31 +222,33 @@ public class ApiClient {
* @param apiKey API key
*/
public void setApiKey(String apiKey) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof ApiKeyAuth) {
ApiKeyAuth keyAuth = (ApiKeyAuth) apiAuthorization;
ApiKeyAuth keyAuth = (ApiKeyAuth)apiAuthorization;
keyAuth.setApiKey(apiKey);
return ;
return;
}
}
throw new RuntimeException("No API key authentication configured!");
}
/**
* Helper method to configure the username/password for basic auth or password OAuth
* Helper method to configure the username/password for basic auth or password
* OAuth
* @param username Username
* @param password Password
*/
public void setCredentials(String username, String password) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof HttpBasicAuth) {
HttpBasicAuth basicAuth = (HttpBasicAuth) apiAuthorization;
HttpBasicAuth basicAuth = (HttpBasicAuth)apiAuthorization;
basicAuth.setCredentials(username, password);
return;
}
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
oauth.getTokenRequestBuilder().setUsername(username).setPassword(password);
OAuth oauth = (OAuth)apiAuthorization;
oauth.getTokenRequestBuilder().setUsername(username).setPassword(
password);
return;
}
}
@@ -252,13 +256,14 @@ public class ApiClient {
}
/**
* Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one)
* Helper method to configure the token endpoint of the first oauth found in
* the apiAuthorizations (there should be only one)
* @return Token request builder
*/
public TokenRequestBuilder getTokenEndPoint() {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
OAuth oauth = (OAuth)apiAuthorization;
return oauth.getTokenRequestBuilder();
}
}
@@ -266,13 +271,14 @@ public class ApiClient {
}
/**
* Helper method to configure authorization endpoint of the first oauth found in the apiAuthorizations (there should be only one)
* Helper method to configure authorization endpoint of the first oauth found
* in the apiAuthorizations (there should be only one)
* @return Authentication request builder
*/
public AuthenticationRequestBuilder getAuthorizationEndPoint() {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
OAuth oauth = (OAuth)apiAuthorization;
return oauth.getAuthenticationRequestBuilder();
}
}
@@ -280,14 +286,15 @@ public class ApiClient {
}
/**
* Helper method to pre-set the oauth access token of the first oauth found in the apiAuthorizations (there should be only one)
* Helper method to pre-set the oauth access token of the first oauth found in
* the apiAuthorizations (there should be only one)
* @param accessToken Access Token
* @param expiresIn Validity period in seconds
*/
public void setAccessToken(String accessToken, Long expiresIn) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
OAuth oauth = (OAuth)apiAuthorization;
oauth.setAccessToken(accessToken, expiresIn);
return;
}
@@ -300,30 +307,33 @@ public class ApiClient {
* @param clientSecret Client secret
* @param redirectURI Redirect URI
*/
public void configureAuthorizationFlow(String clientId, String clientSecret, String redirectURI) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
public void configureAuthorizationFlow(String clientId, String clientSecret,
String redirectURI) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
OAuth oauth = (OAuth)apiAuthorization;
oauth.getTokenRequestBuilder()
.setClientId(clientId)
.setClientSecret(clientSecret)
.setRedirectURI(redirectURI);
.setClientId(clientId)
.setClientSecret(clientSecret)
.setRedirectURI(redirectURI);
oauth.getAuthenticationRequestBuilder()
.setClientId(clientId)
.setRedirectURI(redirectURI);
.setClientId(clientId)
.setRedirectURI(redirectURI);
return;
}
}
}
/**
* Configures a listener which is notified when a new access token is received.
* Configures a listener which is notified when a new access token is
* received.
* @param accessTokenListener Acesss token listener
*/
public void registerAccessTokenListener(AccessTokenListener accessTokenListener) {
for(RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
public void
registerAccessTokenListener(AccessTokenListener accessTokenListener) {
for (RequestInterceptor apiAuthorization : apiAuthorizations.values()) {
if (apiAuthorization instanceof OAuth) {
OAuth oauth = (OAuth) apiAuthorization;
OAuth oauth = (OAuth)apiAuthorization;
oauth.registerAccessTokenListener(accessTokenListener);
return;
}
@@ -344,12 +354,13 @@ public class ApiClient {
* @param authName Authentication name
* @param authorization Request interceptor
*/
public void addAuthorization(String authName, RequestInterceptor authorization) {
public void addAuthorization(String authName,
RequestInterceptor authorization) {
if (apiAuthorizations.containsKey(authName)) {
throw new RuntimeException("auth name \"" + authName + "\" already in api authorizations");
throw new RuntimeException("auth name \"" + authName +
"\" already in api authorizations");
}
apiAuthorizations.put(authName, authorization);
feignBuilder.requestInterceptor(authorization);
}
}

View File

@@ -23,8 +23,9 @@ import java.io.IOException;
import java.math.BigDecimal;
/**
* Deserializer for ThreeTen temporal {@link Instant}s, {@link OffsetDateTime}, and {@link ZonedDateTime}s.
* Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.
* Deserializer for ThreeTen temporal {@link Instant}s, {@link OffsetDateTime},
* and {@link ZonedDateTime}s. Adapted from the jackson threetenbp
* InstantDeserializer to add support for deserializing rfc822 format.
*
* @author Nick Williams
*/
@@ -32,84 +33,90 @@ public class CustomInstantDeserializer<T extends Temporal>
extends ThreeTenDateTimeDeserializerBase<T> {
private static final long serialVersionUID = 1L;
public static final CustomInstantDeserializer<Instant> INSTANT = new CustomInstantDeserializer<Instant>(
Instant.class, DateTimeFormatter.ISO_INSTANT,
new Function<TemporalAccessor, Instant>() {
@Override
public Instant apply(TemporalAccessor temporalAccessor) {
return Instant.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, Instant>() {
@Override
public Instant apply(FromIntegerArguments a) {
return Instant.ofEpochMilli(a.value);
}
},
new Function<FromDecimalArguments, Instant>() {
@Override
public Instant apply(FromDecimalArguments a) {
return Instant.ofEpochSecond(a.integer, a.fraction);
}
},
null
);
public static final CustomInstantDeserializer<Instant> INSTANT =
new CustomInstantDeserializer<Instant>(
Instant.class, DateTimeFormatter.ISO_INSTANT,
new Function<TemporalAccessor, Instant>() {
@Override
public Instant apply(TemporalAccessor temporalAccessor) {
return Instant.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, Instant>() {
@Override
public Instant apply(FromIntegerArguments a) {
return Instant.ofEpochMilli(a.value);
}
},
new Function<FromDecimalArguments, Instant>() {
@Override
public Instant apply(FromDecimalArguments a) {
return Instant.ofEpochSecond(a.integer, a.fraction);
}
},
null);
public static final CustomInstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME = new CustomInstantDeserializer<OffsetDateTime>(
OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME,
new Function<TemporalAccessor, OffsetDateTime>() {
@Override
public OffsetDateTime apply(TemporalAccessor temporalAccessor) {
return OffsetDateTime.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, OffsetDateTime>() {
@Override
public OffsetDateTime apply(FromIntegerArguments a) {
return OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId);
}
},
new Function<FromDecimalArguments, OffsetDateTime>() {
@Override
public OffsetDateTime apply(FromDecimalArguments a) {
return OffsetDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
}
},
new BiFunction<OffsetDateTime, ZoneId, OffsetDateTime>() {
@Override
public OffsetDateTime apply(OffsetDateTime d, ZoneId z) {
return d.withOffsetSameInstant(z.getRules().getOffset(d.toLocalDateTime()));
}
}
);
public static final CustomInstantDeserializer<OffsetDateTime>
OFFSET_DATE_TIME = new CustomInstantDeserializer<OffsetDateTime>(
OffsetDateTime.class, DateTimeFormatter.ISO_OFFSET_DATE_TIME,
new Function<TemporalAccessor, OffsetDateTime>() {
@Override
public OffsetDateTime apply(TemporalAccessor temporalAccessor) {
return OffsetDateTime.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, OffsetDateTime>() {
@Override
public OffsetDateTime apply(FromIntegerArguments a) {
return OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value),
a.zoneId);
}
},
new Function<FromDecimalArguments, OffsetDateTime>() {
@Override
public OffsetDateTime apply(FromDecimalArguments a) {
return OffsetDateTime.ofInstant(
Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
}
},
new BiFunction<OffsetDateTime, ZoneId, OffsetDateTime>() {
@Override
public OffsetDateTime apply(OffsetDateTime d, ZoneId z) {
return d.withOffsetSameInstant(
z.getRules().getOffset(d.toLocalDateTime()));
}
});
public static final CustomInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME = new CustomInstantDeserializer<ZonedDateTime>(
ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME,
new Function<TemporalAccessor, ZonedDateTime>() {
@Override
public ZonedDateTime apply(TemporalAccessor temporalAccessor) {
return ZonedDateTime.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, ZonedDateTime>() {
@Override
public ZonedDateTime apply(FromIntegerArguments a) {
return ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId);
}
},
new Function<FromDecimalArguments, ZonedDateTime>() {
@Override
public ZonedDateTime apply(FromDecimalArguments a) {
return ZonedDateTime.ofInstant(Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
}
},
new BiFunction<ZonedDateTime, ZoneId, ZonedDateTime>() {
@Override
public ZonedDateTime apply(ZonedDateTime zonedDateTime, ZoneId zoneId) {
return zonedDateTime.withZoneSameInstant(zoneId);
}
}
);
public static final CustomInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME =
new CustomInstantDeserializer<ZonedDateTime>(
ZonedDateTime.class, DateTimeFormatter.ISO_ZONED_DATE_TIME,
new Function<TemporalAccessor, ZonedDateTime>() {
@Override
public ZonedDateTime apply(TemporalAccessor temporalAccessor) {
return ZonedDateTime.from(temporalAccessor);
}
},
new Function<FromIntegerArguments, ZonedDateTime>() {
@Override
public ZonedDateTime apply(FromIntegerArguments a) {
return ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value),
a.zoneId);
}
},
new Function<FromDecimalArguments, ZonedDateTime>() {
@Override
public ZonedDateTime apply(FromDecimalArguments a) {
return ZonedDateTime.ofInstant(
Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId);
}
},
new BiFunction<ZonedDateTime, ZoneId, ZonedDateTime>() {
@Override
public ZonedDateTime apply(ZonedDateTime zonedDateTime,
ZoneId zoneId) {
return zonedDateTime.withZoneSameInstant(zoneId);
}
});
protected final Function<FromIntegerArguments, T> fromMilliseconds;
@@ -119,12 +126,12 @@ public class CustomInstantDeserializer<T extends Temporal>
protected final BiFunction<T, ZoneId, T> adjust;
protected CustomInstantDeserializer(Class<T> supportedType,
DateTimeFormatter parser,
Function<TemporalAccessor, T> parsedToValue,
Function<FromIntegerArguments, T> fromMilliseconds,
Function<FromDecimalArguments, T> fromNanoseconds,
BiFunction<T, ZoneId, T> adjust) {
protected CustomInstantDeserializer(
Class<T> supportedType, DateTimeFormatter parser,
Function<TemporalAccessor, T> parsedToValue,
Function<FromIntegerArguments, T> fromMilliseconds,
Function<FromDecimalArguments, T> fromNanoseconds,
BiFunction<T, ZoneId, T> adjust) {
super(supportedType, parser);
this.parsedToValue = parsedToValue;
this.fromMilliseconds = fromMilliseconds;
@@ -138,8 +145,9 @@ public class CustomInstantDeserializer<T extends Temporal>
}
@SuppressWarnings("unchecked")
protected CustomInstantDeserializer(CustomInstantDeserializer<T> base, DateTimeFormatter f) {
super((Class<T>) base.handledType(), f);
protected CustomInstantDeserializer(CustomInstantDeserializer<T> base,
DateTimeFormatter f) {
super((Class<T>)base.handledType(), f);
parsedToValue = base.parsedToValue;
fromMilliseconds = base.fromMilliseconds;
fromNanoseconds = base.fromNanoseconds;
@@ -155,57 +163,60 @@ public class CustomInstantDeserializer<T extends Temporal>
}
@Override
public T deserialize(JsonParser parser, DeserializationContext context) throws IOException {
//NOTE: Timestamps contain no timezone info, and are always in configured TZ. Only
//string values have to be adjusted to the configured TZ.
public T deserialize(JsonParser parser, DeserializationContext context)
throws IOException {
// NOTE: Timestamps contain no timezone info, and are always in configured
// TZ. Only string values have to be adjusted to the configured TZ.
switch (parser.getCurrentTokenId()) {
case JsonTokenId.ID_NUMBER_FLOAT: {
BigDecimal value = parser.getDecimalValue();
long seconds = value.longValue();
int nanoseconds = DecimalUtils.extractNanosecondDecimal(value, seconds);
return fromNanoseconds.apply(new FromDecimalArguments(
seconds, nanoseconds, getZone(context)));
}
case JsonTokenId.ID_NUMBER_FLOAT: {
BigDecimal value = parser.getDecimalValue();
long seconds = value.longValue();
int nanoseconds = DecimalUtils.extractNanosecondDecimal(value, seconds);
return fromNanoseconds.apply(
new FromDecimalArguments(seconds, nanoseconds, getZone(context)));
}
case JsonTokenId.ID_NUMBER_INT: {
long timestamp = parser.getLongValue();
if (context.isEnabled(DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS)) {
return this.fromNanoseconds.apply(new FromDecimalArguments(
timestamp, 0, this.getZone(context)
));
}
return this.fromMilliseconds.apply(new FromIntegerArguments(
timestamp, this.getZone(context)
));
case JsonTokenId.ID_NUMBER_INT: {
long timestamp = parser.getLongValue();
if (context.isEnabled(
DeserializationFeature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS)) {
return this.fromNanoseconds.apply(
new FromDecimalArguments(timestamp, 0, this.getZone(context)));
}
return this.fromMilliseconds.apply(
new FromIntegerArguments(timestamp, this.getZone(context)));
}
case JsonTokenId.ID_STRING: {
String string = parser.getText().trim();
if (string.length() == 0) {
return null;
}
if (string.endsWith("+0000")) {
string = string.substring(0, string.length() - 5) + "Z";
}
T value;
try {
TemporalAccessor acc = _formatter.parse(string);
value = parsedToValue.apply(acc);
if (context.isEnabled(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE)) {
return adjust.apply(value, this.getZone(context));
}
} catch (DateTimeException e) {
throw _peelDTE(e);
}
return value;
case JsonTokenId.ID_STRING: {
String string = parser.getText().trim();
if (string.length() == 0) {
return null;
}
if (string.endsWith("+0000")) {
string = string.substring(0, string.length() - 5) + "Z";
}
T value;
try {
TemporalAccessor acc = _formatter.parse(string);
value = parsedToValue.apply(acc);
if (context.isEnabled(
DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE)) {
return adjust.apply(value, this.getZone(context));
}
} catch (DateTimeException e) {
throw _peelDTE(e);
}
return value;
}
}
throw context.mappingException("Expected type float, integer, or string.");
}
private ZoneId getZone(DeserializationContext context) {
// Instants are always in UTC, so don't waste compute cycles
return (_valueClass == Instant.class) ? null : DateTimeUtils.toZoneId(context.getTimeZone());
return (_valueClass == Instant.class)
? null
: DateTimeUtils.toZoneId(context.getTimeZone());
}
private static class FromIntegerArguments {

View File

@@ -7,8 +7,8 @@ import java.util.Collection;
import java.util.List;
/**
* Utilities to support Swagger encoding formats in Feign.
*/
* Utilities to support Swagger encoding formats in Feign.
*/
public final class EncodingUtils {
/**
@@ -30,12 +30,13 @@ public final class EncodingUtils {
* not be changed.
* @param collectionFormat The Swagger collection format (eg, "csv", "tsv",
* "pipes"). See the
* <a href="http://swagger.io/specification/#parameter-object-44">
* OpenAPI Spec</a> for more details.
* <a
* href="http://swagger.io/specification/#parameter-object-44"> OpenAPI
* Spec</a> for more details.
* @return An object that will be correctly formatted by Feign.
*/
public static Object encodeCollection(Collection<?> parameters,
String collectionFormat) {
String collectionFormat) {
if (parameters == null) {
return parameters;
}
@@ -53,15 +54,15 @@ public final class EncodingUtils {
// Otherwise return a formatted String
String[] stringArray = stringValues.toArray(new String[0]);
switch (collectionFormat) {
case "csv":
default:
return StringUtil.join(stringArray, ",");
case "ssv":
return StringUtil.join(stringArray, " ");
case "tsv":
return StringUtil.join(stringArray, "\t");
case "pipes":
return StringUtil.join(stringArray, "|");
case "csv":
default:
return StringUtil.join(stringArray, ",");
case "ssv":
return StringUtil.join(stringArray, " ");
case "tsv":
return StringUtil.join(stringArray, "\t");
case "pipes":
return StringUtil.join(stringArray, "|");
}
}
@@ -77,7 +78,8 @@ public final class EncodingUtils {
return null;
}
try {
return URLEncoder.encode(parameter.toString(), "UTF-8").replaceAll("\\+", "%20");
return URLEncoder.encode(parameter.toString(), "UTF-8")
.replaceAll("\\+", "%20");
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);

View File

@@ -1,13 +1,15 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client;
@@ -18,15 +20,14 @@ import com.fasterxml.jackson.databind.util.ISO8601Utils;
import java.text.FieldPosition;
import java.util.Date;
public class RFC3339DateFormat extends ISO8601DateFormat {
// Same as ISO8601DateFormat but serializing milliseconds.
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
public StringBuffer format(Date date, StringBuffer toAppendTo,
FieldPosition fieldPosition) {
String value = ISO8601Utils.format(date, true);
toAppendTo.append(value);
return toAppendTo;
}
}

View File

@@ -6,53 +6,57 @@ import java.util.Map;
* Representing a Server configuration.
*/
public class ServerConfiguration {
public String URL;
public String description;
public Map<String, ServerVariable> variables;
public String URL;
public String description;
public Map<String, ServerVariable> variables;
/**
* @param URL A URL to the target host.
* @param description A describtion of the host designated by the URL.
* @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template.
*/
public ServerConfiguration(String URL, String description, Map<String, ServerVariable> variables) {
this.URL = URL;
this.description = description;
this.variables = variables;
}
/**
* @param URL A URL to the target host.
* @param description A describtion of the host designated by the URL.
* @param variables A map between a variable name and its value. The value is
* used for substitution in the server's URL template.
*/
public ServerConfiguration(String URL, String description,
Map<String, ServerVariable> variables) {
this.URL = URL;
this.description = description;
this.variables = variables;
}
/**
* Format URL template using given variables.
*
* @param variables A map between a variable name and its value.
* @return Formatted URL.
*/
public String URL(Map<String, String> variables) {
String url = this.URL;
/**
* Format URL template using given variables.
*
* @param variables A map between a variable name and its value.
* @return Formatted URL.
*/
public String URL(Map<String, String> variables) {
String url = this.URL;
// go through variables and replace placeholders
for (Map.Entry<String, ServerVariable> variable: this.variables.entrySet()) {
String name = variable.getKey();
ServerVariable serverVariable = variable.getValue();
String value = serverVariable.defaultValue;
// go through variables and replace placeholders
for (Map.Entry<String, ServerVariable> variable :
this.variables.entrySet()) {
String name = variable.getKey();
ServerVariable serverVariable = variable.getValue();
String value = serverVariable.defaultValue;
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) {
throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + ".");
}
}
url = url.replaceAll("\\{" + name + "\\}", value);
if (variables != null && variables.containsKey(name)) {
value = variables.get(name);
if (serverVariable.enumValues.size() > 0 &&
!serverVariable.enumValues.contains(value)) {
throw new RuntimeException("The variable " + name +
" in the server URL has invalid value " +
value + ".");
}
return url;
}
url = url.replaceAll("\\{" + name + "\\}", value);
}
return url;
}
/**
* Format URL template using default server variables.
*
* @return Formatted URL.
*/
public String URL() {
return URL(null);
}
/**
* Format URL template using default server variables.
*
* @return Formatted URL.
*/
public String URL() { return URL(null); }
}

View File

@@ -6,18 +6,20 @@ import java.util.HashSet;
* Representing a Server Variable for server URL template substitution.
*/
public class ServerVariable {
public String description;
public String defaultValue;
public HashSet<String> enumValues = null;
public String description;
public String defaultValue;
public HashSet<String> enumValues = null;
/**
* @param description A description for the server variable.
* @param defaultValue The default value to use for substitution.
* @param enumValues An enumeration of string values to be used if the substitution options are from a limited set.
*/
public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) {
this.description = description;
this.defaultValue = defaultValue;
this.enumValues = enumValues;
}
/**
* @param description A description for the server variable.
* @param defaultValue The default value to use for substitution.
* @param enumValues An enumeration of string values to be used if the
* substitution options are from a limited set.
*/
public ServerVariable(String description, String defaultValue,
HashSet<String> enumValues) {
this.description = description;
this.defaultValue = defaultValue;
this.enumValues = enumValues;
}
}

View File

@@ -1,22 +1,23 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client;
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
* Check if the given array contains the given value (with case-insensitive
* comparison).
*
* @param array The array
* @param value The value to search
@@ -37,8 +38,8 @@ public class StringUtil {
/**
* Join an array of strings with the given separator.
* <p>
* Note: This might be replaced by utility method from commons-lang or guava someday
* if one of those libraries is added as dependency.
* Note: This might be replaced by utility method from commons-lang or guava
* someday if one of those libraries is added as dependency.
* </p>
*
* @param array The array of strings

View File

@@ -11,10 +11,8 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface AnotherFakeApi extends ApiClient.Api {
/**
* To test special tags
* To test special tags and operation ID starting with number
@@ -23,8 +21,9 @@ public interface AnotherFakeApi extends ApiClient.Api {
*/
@RequestLine("PATCH /another-fake/dummy")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
Client call123testSpecialTags(Client body);
Client
call123testSpecialTags(Client body);
}

View File

@@ -19,10 +19,8 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface FakeApi extends ApiClient.Api {
/**
* creates an XmlItem
* this route creates an XmlItem
@@ -30,96 +28,104 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("POST /fake/create_xml_item")
@Headers({
"Content-Type: application/xml",
"Accept: application/json",
"Content-Type: application/xml",
"Accept: application/json",
})
void createXmlItem(XmlItem xmlItem);
void
createXmlItem(XmlItem xmlItem);
/**
*
*
* Test serialization of outer boolean types
* @param body Input boolean as post body (optional)
* @return Boolean
*/
@RequestLine("POST /fake/outer/boolean")
@Headers({
"Content-Type: */*",
"Accept: */*",
"Content-Type: */*",
"Accept: */*",
})
Boolean fakeOuterBooleanSerialize(Boolean body);
Boolean
fakeOuterBooleanSerialize(Boolean body);
/**
*
*
* Test serialization of object with outer number type
* @param body Input composite as post body (optional)
* @return OuterComposite
*/
@RequestLine("POST /fake/outer/composite")
@Headers({
"Content-Type: */*",
"Accept: */*",
"Content-Type: */*",
"Accept: */*",
})
OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
OuterComposite
fakeOuterCompositeSerialize(OuterComposite body);
/**
*
*
* Test serialization of outer number types
* @param body Input number as post body (optional)
* @return BigDecimal
*/
@RequestLine("POST /fake/outer/number")
@Headers({
"Content-Type: */*",
"Accept: */*",
"Content-Type: */*",
"Accept: */*",
})
BigDecimal fakeOuterNumberSerialize(BigDecimal body);
BigDecimal
fakeOuterNumberSerialize(BigDecimal body);
/**
*
*
* Test serialization of outer string types
* @param body Input string as post body (optional)
* @return String
*/
@RequestLine("POST /fake/outer/string")
@Headers({
"Content-Type: */*",
"Accept: */*",
"Content-Type: */*",
"Accept: */*",
})
String fakeOuterStringSerialize(String body);
String
fakeOuterStringSerialize(String body);
/**
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
*
* For this test, the body for this request much reference a schema named
* &#x60;File&#x60;.
* @param body (required)
*/
@RequestLine("PUT /fake/body-with-file-schema")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithFileSchema(FileSchemaTestClass body);
void
testBodyWithFileSchema(FileSchemaTestClass body);
/**
*
*
*
*
* @param query (required)
* @param body (required)
*/
@RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithQueryParams(@Param("query") String query, User body);
void
testBodyWithQueryParams(@Param("query") String query, User body);
/**
*
*
* Note, this is equivalent to the other <code>testBodyWithQueryParams</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
* building up this map in a fluent style.
*
*
* Note, this is equivalent to the other <code>testBodyWithQueryParams</code>
* method, but with the query parameters collected into a single Map
* parameter. This is convenient for services with optional query parameters,
* especially when used with the {@link TestBodyWithQueryParamsQueryParams}
* class that allows for building up this map in a fluent style.
* @param body (required)
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
@@ -129,16 +135,19 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map<String, Object> queryParams);
void
testBodyWithQueryParams(User body, @QueryMap(encoded = true)
Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>testBodyWithQueryParams</code> method in a fluent style.
*/
public static class TestBodyWithQueryParamsQueryParams extends HashMap<String, Object> {
public static class TestBodyWithQueryParamsQueryParams
extends HashMap<String, Object> {
public TestBodyWithQueryParamsQueryParams query(final String value) {
put("query", EncodingUtils.encode(value));
return this;
@@ -153,14 +162,16 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("PATCH /fake")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
Client testClientModel(Client body);
Client
testClientModel(Client body);
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント
* 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點
* 偽のエンドポイント 가짜 엔드 포인트
* @param number None (required)
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
@@ -178,71 +189,108 @@ public interface FakeApi extends ApiClient.Api {
*/
@RequestLine("POST /fake")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
})
void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("patternWithoutDelimiter") String patternWithoutDelimiter, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("string") String string, @Param("binary") File binary, @Param("date") LocalDate date, @Param("dateTime") OffsetDateTime dateTime, @Param("password") String password, @Param("paramCallback") String paramCallback);
void
testEndpointParameters(
@Param("number") BigDecimal number, @Param("_double") Double _double,
@Param("patternWithoutDelimiter") String patternWithoutDelimiter,
@Param("_byte") byte[] _byte, @Param("integer") Integer integer,
@Param("int32") Integer int32, @Param("int64") Long int64,
@Param("_float") Float _float, @Param("string") String string,
@Param("binary") File binary, @Param("date") LocalDate date,
@Param("dateTime") OffsetDateTime dateTime,
@Param("password") String password,
@Param("paramCallback") String paramCallback);
/**
* To test enum parameters
* To test enum parameters
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumHeaderStringArray Header parameter enum test (string array)
* (optional)
* @param enumHeaderString Header parameter enum test (string) (optional,
* default to -efg)
* @param enumQueryStringArray Query parameter enum test (string array)
* (optional)
* @param enumQueryString Query parameter enum test (string) (optional,
* default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param enumFormStringArray Form parameter enum test (string array)
* (optional)
* @param enumFormString Form parameter enum test (string) (optional, default
* to -efg)
*/
@RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"
})
void testEnumParameters(@Param("enumHeaderStringArray") List<String> enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List<String> enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") Integer enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble, @Param("enumFormStringArray") List<String> enumFormStringArray, @Param("enumFormString") String enumFormString);
@RequestLine(
"GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
@Headers({"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"})
void
testEnumParameters(
@Param("enumHeaderStringArray") List<String> enumHeaderStringArray,
@Param("enumHeaderString") String enumHeaderString,
@Param("enumQueryStringArray") List<String> enumQueryStringArray,
@Param("enumQueryString") String enumQueryString,
@Param("enumQueryInteger") Integer enumQueryInteger,
@Param("enumQueryDouble") Double enumQueryDouble,
@Param("enumFormStringArray") List<String> enumFormStringArray,
@Param("enumFormString") String enumFormString);
/**
* To test enum parameters
* To test enum parameters
* Note, this is equivalent to the other <code>testEnumParameters</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link TestEnumParametersQueryParams} class that allows for
* building up this map in a fluent style.
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* Note, this is equivalent to the other <code>testEnumParameters</code>
* method, but with the query parameters collected into a single Map
* parameter. This is convenient for services with optional query parameters,
* especially when used with the {@link TestEnumParametersQueryParams} class
* that allows for building up this map in a fluent style.
* @param enumHeaderStringArray Header parameter enum test (string array)
* (optional)
* @param enumHeaderString Header parameter enum test (string) (optional,
* default to -efg)
* @param enumFormStringArray Form parameter enum test (string array)
* (optional)
* @param enumFormString Form parameter enum test (string) (optional, default
* to -efg)
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
* <ul>
* <li>enumQueryStringArray - Query parameter enum test (string array) (optional)</li>
* <li>enumQueryString - Query parameter enum test (string) (optional, default to -efg)</li>
* <li>enumQueryInteger - Query parameter enum test (double) (optional)</li>
* <li>enumQueryDouble - Query parameter enum test (double) (optional)</li>
* <li>enumQueryStringArray - Query parameter enum test (string array)
* (optional)</li> <li>enumQueryString - Query parameter enum test (string)
* (optional, default to -efg)</li> <li>enumQueryInteger - Query parameter
* enum test (double) (optional)</li> <li>enumQueryDouble - Query parameter
* enum test (double) (optional)</li>
* </ul>
*/
@RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"
})
void testEnumParameters(@Param("enumHeaderStringArray") List<String> enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumFormStringArray") List<String> enumFormStringArray, @Param("enumFormString") String enumFormString, @QueryMap(encoded=true) Map<String, Object> queryParams);
@RequestLine(
"GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}&enum_query_double={enumQueryDouble}")
@Headers({"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"})
void
testEnumParameters(
@Param("enumHeaderStringArray") List<String> enumHeaderStringArray,
@Param("enumHeaderString") String enumHeaderString,
@Param("enumFormStringArray") List<String> enumFormStringArray,
@Param("enumFormString") String enumFormString,
@QueryMap(encoded = true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>testEnumParameters</code> method in a fluent style.
*/
public static class TestEnumParametersQueryParams extends HashMap<String, Object> {
public TestEnumParametersQueryParams enumQueryStringArray(final List<String> value) {
put("enum_query_string_array", EncodingUtils.encodeCollection(value, "csv"));
public static class TestEnumParametersQueryParams
extends HashMap<String, Object> {
public TestEnumParametersQueryParams
enumQueryStringArray(final List<String> value) {
put("enum_query_string_array",
EncodingUtils.encodeCollection(value, "csv"));
return this;
}
public TestEnumParametersQueryParams enumQueryString(final String value) {
@@ -269,49 +317,61 @@ public interface FakeApi extends ApiClient.Api {
* @param booleanGroup Boolean in group parameters (optional)
* @param int64Group Integer in group parameters (optional)
*/
@RequestLine("DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
@Headers({
"Accept: application/json",
"required_boolean_group: {requiredBooleanGroup}",
"boolean_group: {booleanGroup}"
})
void testGroupParameters(@Param("requiredStringGroup") Integer requiredStringGroup, @Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("requiredInt64Group") Long requiredInt64Group, @Param("stringGroup") Integer stringGroup, @Param("booleanGroup") Boolean booleanGroup, @Param("int64Group") Long int64Group);
@RequestLine(
"DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
@Headers({"Accept: application/json",
"required_boolean_group: {requiredBooleanGroup}",
"boolean_group: {booleanGroup}"})
void
testGroupParameters(@Param("requiredStringGroup") Integer requiredStringGroup,
@Param("requiredBooleanGroup")
Boolean requiredBooleanGroup,
@Param("requiredInt64Group") Long requiredInt64Group,
@Param("stringGroup") Integer stringGroup,
@Param("booleanGroup") Boolean booleanGroup,
@Param("int64Group") Long int64Group);
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* Note, this is equivalent to the other <code>testGroupParameters</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link TestGroupParametersQueryParams} class that allows for
* building up this map in a fluent style.
* Note, this is equivalent to the other <code>testGroupParameters</code>
* method, but with the query parameters collected into a single Map
* parameter. This is convenient for services with optional query parameters,
* especially when used with the {@link TestGroupParametersQueryParams} class
* that allows for building up this map in a fluent style.
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param booleanGroup Boolean in group parameters (optional)
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
* <ul>
* <li>requiredStringGroup - Required String in group parameters (required)</li>
* <li>requiredInt64Group - Required Integer in group parameters (required)</li>
* <li>stringGroup - String in group parameters (optional)</li>
* <li>int64Group - Integer in group parameters (optional)</li>
* <li>requiredStringGroup - Required String in group parameters
* (required)</li> <li>requiredInt64Group - Required Integer in group
* parameters (required)</li> <li>stringGroup - String in group parameters
* (optional)</li> <li>int64Group - Integer in group parameters
* (optional)</li>
* </ul>
*/
@RequestLine("DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
@Headers({
"Accept: application/json",
"required_boolean_group: {requiredBooleanGroup}",
"boolean_group: {booleanGroup}"
})
void testGroupParameters(@Param("requiredBooleanGroup") Boolean requiredBooleanGroup, @Param("booleanGroup") Boolean booleanGroup, @QueryMap(encoded=true) Map<String, Object> queryParams);
@RequestLine(
"DELETE /fake?required_string_group={requiredStringGroup}&required_int64_group={requiredInt64Group}&string_group={stringGroup}&int64_group={int64Group}")
@Headers({"Accept: application/json",
"required_boolean_group: {requiredBooleanGroup}",
"boolean_group: {booleanGroup}"})
void
testGroupParameters(
@Param("requiredBooleanGroup") Boolean requiredBooleanGroup,
@Param("booleanGroup") Boolean booleanGroup,
@QueryMap(encoded = true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>testGroupParameters</code> method in a fluent style.
*/
public static class TestGroupParametersQueryParams extends HashMap<String, Object> {
public TestGroupParametersQueryParams requiredStringGroup(final Integer value) {
public static class TestGroupParametersQueryParams
extends HashMap<String, Object> {
public TestGroupParametersQueryParams
requiredStringGroup(final Integer value) {
put("required_string_group", EncodingUtils.encode(value));
return this;
}
@@ -331,31 +391,34 @@ public interface FakeApi extends ApiClient.Api {
/**
* test inline additionalProperties
*
*
* @param param request body (required)
*/
@RequestLine("POST /fake/inline-additionalProperties")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void testInlineAdditionalProperties(Map<String, String> param);
void
testInlineAdditionalProperties(Map<String, String> param);
/**
* test json serialization of form data
*
*
* @param param field1 (required)
* @param param2 field2 (required)
*/
@RequestLine("GET /fake/jsonFormData")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
})
void testJsonFormData(@Param("param") String param, @Param("param2") String param2);
void
testJsonFormData(@Param("param") String param,
@Param("param2") String param2);
/**
*
*
* To test the collection format in query parameters
* @param pipe (required)
* @param ioutil (required)
@@ -363,19 +426,26 @@ public interface FakeApi extends ApiClient.Api {
* @param url (required)
* @param context (required)
*/
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
@RequestLine(
"PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
void testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe, @Param("ioutil") List<String> ioutil, @Param("http") List<String> http, @Param("url") List<String> url, @Param("context") List<String> context);
void
testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe,
@Param("ioutil") List<String> ioutil,
@Param("http") List<String> http,
@Param("url") List<String> url,
@Param("context") List<String> context);
/**
*
*
* To test the collection format in query parameters
* Note, this is equivalent to the other <code>testQueryParameterCollectionFormat</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link TestQueryParameterCollectionFormatQueryParams} class that allows for
* Note, this is equivalent to the other
* <code>testQueryParameterCollectionFormat</code> method, but with the query
* parameters collected into a single Map parameter. This is convenient for
* services with optional query parameters, especially when used with the
* {@link TestQueryParameterCollectionFormatQueryParams} class that allows for
* building up this map in a fluent style.
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
@@ -387,34 +457,43 @@ public interface FakeApi extends ApiClient.Api {
* <li>context - (required)</li>
* </ul>
*/
@RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
@RequestLine(
"PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
void testQueryParameterCollectionFormat(@QueryMap(encoded=true) Map<String, Object> queryParams);
void
testQueryParameterCollectionFormat(@QueryMap(encoded = true)
Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>testQueryParameterCollectionFormat</code> method in a fluent style.
*/
public static class TestQueryParameterCollectionFormatQueryParams extends HashMap<String, Object> {
public TestQueryParameterCollectionFormatQueryParams pipe(final List<String> value) {
public static class TestQueryParameterCollectionFormatQueryParams
extends HashMap<String, Object> {
public TestQueryParameterCollectionFormatQueryParams
pipe(final List<String> value) {
put("pipe", EncodingUtils.encodeCollection(value, "csv"));
return this;
}
public TestQueryParameterCollectionFormatQueryParams ioutil(final List<String> value) {
public TestQueryParameterCollectionFormatQueryParams
ioutil(final List<String> value) {
put("ioutil", EncodingUtils.encodeCollection(value, "csv"));
return this;
}
public TestQueryParameterCollectionFormatQueryParams http(final List<String> value) {
public TestQueryParameterCollectionFormatQueryParams
http(final List<String> value) {
put("http", EncodingUtils.encodeCollection(value, "space"));
return this;
}
public TestQueryParameterCollectionFormatQueryParams url(final List<String> value) {
public TestQueryParameterCollectionFormatQueryParams
url(final List<String> value) {
put("url", EncodingUtils.encodeCollection(value, "csv"));
return this;
}
public TestQueryParameterCollectionFormatQueryParams context(final List<String> value) {
public TestQueryParameterCollectionFormatQueryParams
context(final List<String> value) {
put("context", EncodingUtils.encodeCollection(value, "multi"));
return this;
}

View File

@@ -11,10 +11,8 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface FakeClassnameTags123Api extends ApiClient.Api {
/**
* To test class name in snake case
* To test class name in snake case
@@ -23,8 +21,9 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
*/
@RequestLine("PATCH /fake_classname_test")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
Client testClassname(Client body);
Client
testClassname(Client body);
}

View File

@@ -13,46 +13,44 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
*
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void addPet(Pet body);
void
addPet(Pet body);
/**
* Deletes a pet
*
*
* @param petId Pet id to delete (required)
* @param apiKey (optional)
*/
@RequestLine("DELETE /pet/{petId}")
@Headers({
"Accept: application/json",
"api_key: {apiKey}"
})
@Headers({"Accept: application/json", "api_key: {apiKey}"})
void deletePet(@Param("petId") Long petId, @Param("apiKey") String apiKey);
/**
* Finds Pets by status
* Multiple status values can be provided with comma separated strings
* @param status Status values that need to be considered for filter (required)
* @param status Status values that need to be considered for filter
* (required)
* @return List&lt;Pet&gt;
*/
@RequestLine("GET /pet/findByStatus?status={status}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
List<Pet> findPetsByStatus(@Param("status") List<String> status);
List<Pet>
findPetsByStatus(@Param("status") List<String> status);
/**
* Finds Pets by status
@@ -65,21 +63,24 @@ public interface PetApi extends ApiClient.Api {
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
* <ul>
* <li>status - Status values that need to be considered for filter (required)</li>
* <li>status - Status values that need to be considered for filter
* (required)</li>
* </ul>
* @return List&lt;Pet&gt;
*/
@RequestLine("GET /pet/findByStatus?status={status}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
List<Pet> findPetsByStatus(@QueryMap(encoded=true) Map<String, Object> queryParams);
List<Pet>
findPetsByStatus(@QueryMap(encoded = true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>findPetsByStatus</code> method in a fluent style.
*/
public static class FindPetsByStatusQueryParams extends HashMap<String, Object> {
public static class FindPetsByStatusQueryParams
extends HashMap<String, Object> {
public FindPetsByStatusQueryParams status(final List<String> value) {
put("status", EncodingUtils.encodeCollection(value, "csv"));
return this;
@@ -88,24 +89,27 @@ public interface PetApi extends ApiClient.Api {
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
* Multiple tags can be provided with comma separated strings. Use tag1, tag2,
* tag3 for testing.
* @param tags Tags to filter by (required)
* @return List&lt;Pet&gt;
*/
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
List<Pet> findPetsByTags(@Param("tags") List<String> tags);
List<Pet>
findPetsByTags(@Param("tags") List<String> tags);
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
* Note, this is equivalent to the other <code>findPetsByTags</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link FindPetsByTagsQueryParams} class that allows for
* building up this map in a fluent style.
* Multiple tags can be provided with comma separated strings. Use tag1, tag2,
* tag3 for testing. Note, this is equivalent to the other
* <code>findPetsByTags</code> method, but with the query parameters collected
* into a single Map parameter. This is convenient for services with optional
* query parameters, especially when used with the {@link
* FindPetsByTagsQueryParams} class that allows for building up this map in a
* fluent style.
* @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p>
* <ul>
@@ -115,15 +119,17 @@ public interface PetApi extends ApiClient.Api {
*/
@RequestLine("GET /pet/findByTags?tags={tags}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
List<Pet> findPetsByTags(@QueryMap(encoded=true) Map<String, Object> queryParams);
List<Pet>
findPetsByTags(@QueryMap(encoded = true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
* <code>findPetsByTags</code> method in a fluent style.
*/
public static class FindPetsByTagsQueryParams extends HashMap<String, Object> {
public static class FindPetsByTagsQueryParams
extends HashMap<String, Object> {
public FindPetsByTagsQueryParams tags(final List<String> value) {
put("tags", EncodingUtils.encodeCollection(value, "csv"));
return this;
@@ -144,33 +150,36 @@ public interface PetApi extends ApiClient.Api {
/**
* Update an existing pet
*
*
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
"Content-Type: application/json",
"Accept: application/json",
})
void updatePet(Pet body);
void
updatePet(Pet body);
/**
* Updates a pet in the store with form data
*
*
* @param petId ID of pet that needs to be updated (required)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
*/
@RequestLine("POST /pet/{petId}")
@Headers({
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
"Content-Type: application/x-www-form-urlencoded",
"Accept: application/json",
})
void updatePetWithForm(@Param("petId") Long petId, @Param("name") String name, @Param("status") String status);
void
updatePetWithForm(@Param("petId") Long petId, @Param("name") String name,
@Param("status") String status);
/**
* uploads an image
*
*
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
@@ -178,14 +187,17 @@ public interface PetApi extends ApiClient.Api {
*/
@RequestLine("POST /pet/{petId}/uploadImage")
@Headers({
"Content-Type: multipart/form-data",
"Accept: application/json",
"Content-Type: multipart/form-data",
"Accept: application/json",
})
ModelApiResponse uploadFile(@Param("petId") Long petId, @Param("additionalMetadata") String additionalMetadata, @Param("file") File file);
ModelApiResponse
uploadFile(@Param("petId") Long petId,
@Param("additionalMetadata") String additionalMetadata,
@Param("file") File file);
/**
* uploads an image (required)
*
*
* @param petId ID of pet to update (required)
* @param requiredFile file to upload (required)
* @param additionalMetadata Additional data to pass to server (optional)
@@ -193,8 +205,12 @@ public interface PetApi extends ApiClient.Api {
*/
@RequestLine("POST /fake/{petId}/uploadImageWithRequiredFile")
@Headers({
"Content-Type: multipart/form-data",
"Accept: application/json",
"Content-Type: multipart/form-data",
"Accept: application/json",
})
ModelApiResponse uploadFileWithRequiredFile(@Param("petId") Long petId, @Param("requiredFile") File requiredFile, @Param("additionalMetadata") String additionalMetadata);
ModelApiResponse
uploadFileWithRequiredFile(@Param("petId") Long petId,
@Param("requiredFile") File requiredFile,
@Param("additionalMetadata")
String additionalMetadata);
}

View File

@@ -11,20 +11,20 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface StoreApi extends ApiClient.Api {
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
* For valid response try integer IDs with value &lt; 1000. Anything above
* 1000 or nonintegers will generate API errors
* @param orderId ID of the order that needs to be deleted (required)
*/
@RequestLine("DELETE /store/order/{orderId}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
void deleteOrder(@Param("orderId") String orderId);
void
deleteOrder(@Param("orderId") String orderId);
/**
* Returns pet inventories by status
@@ -33,32 +33,36 @@ public interface StoreApi extends ApiClient.Api {
*/
@RequestLine("GET /store/inventory")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
Map<String, Integer> getInventory();
Map<String, Integer>
getInventory();
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10.
* Other values will generated exceptions
* @param orderId ID of pet that needs to be fetched (required)
* @return Order
*/
@RequestLine("GET /store/order/{orderId}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
Order getOrderById(@Param("orderId") Long orderId);
Order
getOrderById(@Param("orderId") Long orderId);
/**
* Place an order for a pet
*
*
* @param body order placed for purchasing the pet (required)
* @return Order
*/
@RequestLine("POST /store/order")
@Headers({
"Content-Type: */*",
"Accept: application/json",
"Content-Type: */*",
"Accept: application/json",
})
Order placeOrder(Order body);
Order
placeOrder(Order body);
}

View File

@@ -11,10 +11,8 @@ import java.util.List;
import java.util.Map;
import feign.*;
public interface UserApi extends ApiClient.Api {
/**
* Create user
* This can only be done by the logged in user.
@@ -22,34 +20,37 @@ public interface UserApi extends ApiClient.Api {
*/
@RequestLine("POST /user")
@Headers({
"Content-Type: */*",
"Accept: application/json",
"Content-Type: */*",
"Accept: application/json",
})
void createUser(User body);
void
createUser(User body);
/**
* Creates list of users with given input array
*
*
* @param body List of user object (required)
*/
@RequestLine("POST /user/createWithArray")
@Headers({
"Content-Type: */*",
"Accept: application/json",
"Content-Type: */*",
"Accept: application/json",
})
void createUsersWithArrayInput(List<User> body);
void
createUsersWithArrayInput(List<User> body);
/**
* Creates list of users with given input array
*
*
* @param body List of user object (required)
*/
@RequestLine("POST /user/createWithList")
@Headers({
"Content-Type: */*",
"Accept: application/json",
"Content-Type: */*",
"Accept: application/json",
})
void createUsersWithListInput(List<User> body);
void
createUsersWithListInput(List<User> body);
/**
* Delete user
@@ -58,38 +59,43 @@ public interface UserApi extends ApiClient.Api {
*/
@RequestLine("DELETE /user/{username}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
void deleteUser(@Param("username") String username);
void
deleteUser(@Param("username") String username);
/**
* Get user by user name
*
* @param username The name that needs to be fetched. Use user1 for testing. (required)
*
* @param username The name that needs to be fetched. Use user1 for testing.
* (required)
* @return User
*/
@RequestLine("GET /user/{username}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
User getUserByName(@Param("username") String username);
User
getUserByName(@Param("username") String username);
/**
* Logs user into the system
*
*
* @param username The user name for login (required)
* @param password The password for login in clear text (required)
* @return String
*/
@RequestLine("GET /user/login?username={username}&password={password}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
String loginUser(@Param("username") String username, @Param("password") String password);
String
loginUser(@Param("username") String username,
@Param("password") String password);
/**
* Logs user into the system
*
*
* Note, this is equivalent to the other <code>loginUser</code> method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
@@ -105,9 +111,10 @@ public interface UserApi extends ApiClient.Api {
*/
@RequestLine("GET /user/login?username={username}&password={password}")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
String loginUser(@QueryMap(encoded=true) Map<String, Object> queryParams);
String
loginUser(@QueryMap(encoded = true) Map<String, Object> queryParams);
/**
* A convenience class for generating query parameters for the
@@ -126,13 +133,14 @@ public interface UserApi extends ApiClient.Api {
/**
* Logs out current logged in user session
*
*
*/
@RequestLine("GET /user/logout")
@Headers({
"Accept: application/json",
"Accept: application/json",
})
void logoutUser();
void
logoutUser();
/**
* Updated user
@@ -142,8 +150,9 @@ public interface UserApi extends ApiClient.Api {
*/
@RequestLine("PUT /user/{username}")
@Headers({
"Content-Type: */*",
"Accept: application/json",
"Content-Type: */*",
"Accept: application/json",
})
void updateUser(@Param("username") String username, User body);
void
updateUser(@Param("username") String username, User body);
}

View File

@@ -4,40 +4,32 @@ import feign.RequestInterceptor;
import feign.RequestTemplate;
public class ApiKeyAuth implements RequestInterceptor {
private final String location;
private final String paramName;
private final String location;
private final String paramName;
private String apiKey;
private String apiKey;
public ApiKeyAuth(String location, String paramName) {
this.location = location;
this.paramName = paramName;
}
public String getLocation() {
return location;
}
public String getParamName() {
return paramName;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
@Override
public void apply(RequestTemplate template) {
if ("query".equals(location)) {
template.query(paramName, apiKey);
} else if ("header".equals(location)) {
template.header(paramName, apiKey);
} else if ("cookie".equals(location)) {
template.header("Cookie", String.format("%s=%s", paramName, apiKey));
}
public ApiKeyAuth(String location, String paramName) {
this.location = location;
this.paramName = paramName;
}
public String getLocation() { return location; }
public String getParamName() { return paramName; }
public String getApiKey() { return apiKey; }
public void setApiKey(String apiKey) { this.apiKey = apiKey; }
@Override
public void apply(RequestTemplate template) {
if ("query".equals(location)) {
template.query(paramName, apiKey);
} else if ("header".equals(location)) {
template.header(paramName, apiKey);
} else if ("cookie".equals(location)) {
template.header("Cookie", String.format("%s=%s", paramName, apiKey));
}
}
}

View File

@@ -5,37 +5,31 @@ import feign.RequestTemplate;
import feign.auth.BasicAuthRequestInterceptor;
/**
* An interceptor that adds the request header needed to use HTTP basic authentication.
* An interceptor that adds the request header needed to use HTTP basic
* authentication.
*/
public class HttpBasicAuth implements RequestInterceptor {
private String username;
private String password;
public String getUsername() {
return username;
}
private String username;
private String password;
public void setUsername(String username) {
this.username = username;
}
public String getUsername() { return username; }
public String getPassword() {
return password;
}
public void setUsername(String username) { this.username = username; }
public void setPassword(String password) {
this.password = password;
}
public String getPassword() { return password; }
public void setCredentials(String username, String password) {
this.username = username;
this.password = password;
}
public void setPassword(String password) { this.password = password; }
public void setCredentials(String username, String password) {
this.username = username;
this.password = password;
}
@Override
public void apply(RequestTemplate template) {
RequestInterceptor requestInterceptor = new BasicAuthRequestInterceptor(username, password);
requestInterceptor.apply(template);
RequestInterceptor requestInterceptor =
new BasicAuthRequestInterceptor(username, password);
requestInterceptor.apply(template);
}
}

View File

@@ -4,25 +4,24 @@ import feign.RequestInterceptor;
import feign.RequestTemplate;
/**
* An interceptor that adds the request header needed to use HTTP bearer authentication.
* An interceptor that adds the request header needed to use HTTP bearer
* authentication.
*/
public class HttpBearerAuth implements RequestInterceptor {
private final String scheme;
private String bearerToken;
public HttpBearerAuth(String scheme) {
this.scheme = scheme;
}
public HttpBearerAuth(String scheme) { this.scheme = scheme; }
/**
* Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
* Gets the token, which together with the scheme, will be sent as the value
* of the Authorization header.
*/
public String getBearerToken() {
return bearerToken;
}
public String getBearerToken() { return bearerToken; }
/**
* Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
* Sets the token, which together with the scheme, will be sent as the value
* of the Authorization header.
*/
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;
@@ -30,11 +29,13 @@ public class HttpBearerAuth implements RequestInterceptor {
@Override
public void apply(RequestTemplate template) {
if(bearerToken == null) {
if (bearerToken == null) {
return;
}
template.header("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
template.header("Authorization",
(scheme != null ? upperCaseBearer(scheme) + " " : "") +
bearerToken);
}
private static String upperCaseBearer(String scheme) {

View File

@@ -27,171 +27,173 @@ import feign.RetryableException;
import feign.Util;
import org.openapitools.client.StringUtil;
public class OAuth implements RequestInterceptor {
static final int MILLIS_PER_SECOND = 1000;
static final int MILLIS_PER_SECOND = 1000;
public interface AccessTokenListener {
void notify(BasicOAuthToken token);
public interface AccessTokenListener { void notify(BasicOAuthToken token); }
private volatile String accessToken;
private Long expirationTimeMillis;
private OAuthClient oauthClient;
private TokenRequestBuilder tokenRequestBuilder;
private AuthenticationRequestBuilder authenticationRequestBuilder;
private AccessTokenListener accessTokenListener;
public OAuth(Client client, TokenRequestBuilder requestBuilder) {
this.oauthClient = new OAuthClient(new OAuthFeignClient(client));
this.tokenRequestBuilder = requestBuilder;
}
public OAuth(Client client, OAuthFlow flow, String authorizationUrl,
String tokenUrl, String scopes) {
this(client, OAuthClientRequest.tokenLocation(tokenUrl).setScope(scopes));
switch (flow) {
case accessCode:
case implicit:
tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE);
break;
case password:
tokenRequestBuilder.setGrantType(GrantType.PASSWORD);
break;
case application:
tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS);
break;
default:
break;
}
authenticationRequestBuilder =
OAuthClientRequest.authorizationLocation(authorizationUrl);
}
public OAuth(OAuthFlow flow, String authorizationUrl, String tokenUrl,
String scopes) {
this(new Client.Default(null, null), flow, authorizationUrl, tokenUrl,
scopes);
}
@Override
public void apply(RequestTemplate template) {
// If the request already have an authorization (eg. Basic auth), do nothing
if (template.headers().containsKey("Authorization")) {
return;
}
// If first time, get the token
if (expirationTimeMillis == null ||
System.currentTimeMillis() >= expirationTimeMillis) {
updateAccessToken(template);
}
if (getAccessToken() != null) {
template.header("Authorization", "Bearer " + getAccessToken());
}
}
public synchronized void updateAccessToken(RequestTemplate template) {
OAuthJSONAccessTokenResponse accessTokenResponse;
try {
accessTokenResponse =
oauthClient.accessToken(tokenRequestBuilder.buildBodyMessage());
} catch (Exception e) {
throw new RetryableException(e.getMessage(), e, null);
}
if (accessTokenResponse != null &&
accessTokenResponse.getAccessToken() != null) {
setAccessToken(accessTokenResponse.getAccessToken(),
accessTokenResponse.getExpiresIn());
if (accessTokenListener != null) {
accessTokenListener.notify(
(BasicOAuthToken)accessTokenResponse.getOAuthToken());
}
}
}
public synchronized void
registerAccessTokenListener(AccessTokenListener accessTokenListener) {
this.accessTokenListener = accessTokenListener;
}
public synchronized String getAccessToken() { return accessToken; }
public synchronized void setAccessToken(String accessToken, Long expiresIn) {
this.accessToken = accessToken;
this.expirationTimeMillis =
expiresIn == null
? null
: System.currentTimeMillis() + expiresIn * MILLIS_PER_SECOND;
}
public TokenRequestBuilder getTokenRequestBuilder() {
return tokenRequestBuilder;
}
public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) {
this.tokenRequestBuilder = tokenRequestBuilder;
}
public AuthenticationRequestBuilder getAuthenticationRequestBuilder() {
return authenticationRequestBuilder;
}
public void setAuthenticationRequestBuilder(
AuthenticationRequestBuilder authenticationRequestBuilder) {
this.authenticationRequestBuilder = authenticationRequestBuilder;
}
public OAuthClient getOauthClient() { return oauthClient; }
public void setOauthClient(OAuthClient oauthClient) {
this.oauthClient = oauthClient;
}
public void setOauthClient(Client client) {
this.oauthClient = new OAuthClient(new OAuthFeignClient(client));
}
public static class OAuthFeignClient implements HttpClient {
private Client client;
public OAuthFeignClient() { this.client = new Client.Default(null, null); }
public OAuthFeignClient(Client client) { this.client = client; }
public <T extends OAuthClientResponse>
T execute(OAuthClientRequest request, Map<String, String> headers,
String requestMethod, Class<T> responseClass)
throws OAuthSystemException, OAuthProblemException {
RequestTemplate req = new RequestTemplate()
.append(request.getLocationUri())
.method(requestMethod)
.body(request.getBody());
for (Entry<String, String> entry : headers.entrySet()) {
req.header(entry.getKey(), entry.getValue());
}
Response feignResponse;
String body = "";
try {
feignResponse = client.execute(req.request(), new Options());
body = Util.toString(feignResponse.body().asReader());
} catch (IOException e) {
throw new OAuthSystemException(e);
}
String contentType = null;
Collection<String> contentTypeHeader =
feignResponse.headers().get("Content-Type");
if (contentTypeHeader != null) {
contentType =
StringUtil.join(contentTypeHeader.toArray(new String[0]), ";");
}
return OAuthClientResponseFactory.createCustomResponse(
body, contentType, feignResponse.status(), responseClass);
}
private volatile String accessToken;
private Long expirationTimeMillis;
private OAuthClient oauthClient;
private TokenRequestBuilder tokenRequestBuilder;
private AuthenticationRequestBuilder authenticationRequestBuilder;
private AccessTokenListener accessTokenListener;
public OAuth(Client client, TokenRequestBuilder requestBuilder) {
this.oauthClient = new OAuthClient(new OAuthFeignClient(client));
this.tokenRequestBuilder = requestBuilder;
}
public OAuth(Client client, OAuthFlow flow, String authorizationUrl, String tokenUrl, String scopes) {
this(client, OAuthClientRequest.tokenLocation(tokenUrl).setScope(scopes));
switch(flow) {
case accessCode:
case implicit:
tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE);
break;
case password:
tokenRequestBuilder.setGrantType(GrantType.PASSWORD);
break;
case application:
tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS);
break;
default:
break;
}
authenticationRequestBuilder = OAuthClientRequest.authorizationLocation(authorizationUrl);
}
public OAuth(OAuthFlow flow, String authorizationUrl, String tokenUrl, String scopes) {
this(new Client.Default(null, null), flow, authorizationUrl, tokenUrl, scopes);
}
@Override
public void apply(RequestTemplate template) {
// If the request already have an authorization (eg. Basic auth), do nothing
if (template.headers().containsKey("Authorization")) {
return;
}
// If first time, get the token
if (expirationTimeMillis == null || System.currentTimeMillis() >= expirationTimeMillis) {
updateAccessToken(template);
}
if (getAccessToken() != null) {
template.header("Authorization", "Bearer " + getAccessToken());
}
}
public synchronized void updateAccessToken(RequestTemplate template) {
OAuthJSONAccessTokenResponse accessTokenResponse;
try {
accessTokenResponse = oauthClient.accessToken(tokenRequestBuilder.buildBodyMessage());
} catch (Exception e) {
throw new RetryableException(e.getMessage(), e,null);
}
if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) {
setAccessToken(accessTokenResponse.getAccessToken(), accessTokenResponse.getExpiresIn());
if (accessTokenListener != null) {
accessTokenListener.notify((BasicOAuthToken) accessTokenResponse.getOAuthToken());
}
}
}
public synchronized void registerAccessTokenListener(AccessTokenListener accessTokenListener) {
this.accessTokenListener = accessTokenListener;
}
public synchronized String getAccessToken() {
return accessToken;
}
public synchronized void setAccessToken(String accessToken, Long expiresIn) {
this.accessToken = accessToken;
this.expirationTimeMillis = expiresIn == null ? null : System.currentTimeMillis() + expiresIn * MILLIS_PER_SECOND;
}
public TokenRequestBuilder getTokenRequestBuilder() {
return tokenRequestBuilder;
}
public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) {
this.tokenRequestBuilder = tokenRequestBuilder;
}
public AuthenticationRequestBuilder getAuthenticationRequestBuilder() {
return authenticationRequestBuilder;
}
public void setAuthenticationRequestBuilder(AuthenticationRequestBuilder authenticationRequestBuilder) {
this.authenticationRequestBuilder = authenticationRequestBuilder;
}
public OAuthClient getOauthClient() {
return oauthClient;
}
public void setOauthClient(OAuthClient oauthClient) {
this.oauthClient = oauthClient;
}
public void setOauthClient(Client client) {
this.oauthClient = new OAuthClient( new OAuthFeignClient(client));
}
public static class OAuthFeignClient implements HttpClient {
private Client client;
public OAuthFeignClient() {
this.client = new Client.Default(null, null);
}
public OAuthFeignClient(Client client) {
this.client = client;
}
public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, Map<String, String> headers,
String requestMethod, Class<T> responseClass)
throws OAuthSystemException, OAuthProblemException {
RequestTemplate req = new RequestTemplate()
.append(request.getLocationUri())
.method(requestMethod)
.body(request.getBody());
for (Entry<String, String> entry : headers.entrySet()) {
req.header(entry.getKey(), entry.getValue());
}
Response feignResponse;
String body = "";
try {
feignResponse = client.execute(req.request(), new Options());
body = Util.toString(feignResponse.body().asReader());
} catch (IOException e) {
throw new OAuthSystemException(e);
}
String contentType = null;
Collection<String> contentTypeHeader = feignResponse.headers().get("Content-Type");
if(contentTypeHeader != null) {
contentType = StringUtil.join(contentTypeHeader.toArray(new String[0]), ";");
}
return OAuthClientResponseFactory.createCustomResponse(
body,
contentType,
feignResponse.status(),
responseClass
);
}
public void shutdown() {
// Nothing to do here
}
public void shutdown() {
// Nothing to do here
}
}
}

View File

@@ -1,18 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.auth;
public enum OAuthFlow {
accessCode, implicit, password, application
}
public enum OAuthFlow { accessCode, implicit, password, application }

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesAnyType
*/
@JsonPropertyOrder({
AdditionalPropertiesAnyType.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesAnyType.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesAnyType name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -57,11 +55,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,7 +65,8 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
AdditionalPropertiesAnyType additionalPropertiesAnyType =
(AdditionalPropertiesAnyType)o;
return Objects.equals(this.name, additionalPropertiesAnyType.name) &&
super.equals(o);
}
@@ -81,7 +76,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +96,4 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,26 +30,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesArray
*/
@JsonPropertyOrder({
AdditionalPropertiesArray.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesArray.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesArray extends HashMap<String, List> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesArray name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -58,11 +56,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -72,7 +66,8 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
AdditionalPropertiesArray additionalPropertiesArray =
(AdditionalPropertiesArray)o;
return Objects.equals(this.name, additionalPropertiesArray.name) &&
super.equals(o);
}
@@ -82,7 +77,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -103,6 +97,4 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesBoolean
*/
@JsonPropertyOrder({
AdditionalPropertiesBoolean.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesBoolean.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesBoolean name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -57,11 +55,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,7 +65,8 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
AdditionalPropertiesBoolean additionalPropertiesBoolean =
(AdditionalPropertiesBoolean)o;
return Objects.equals(this.name, additionalPropertiesBoolean.name) &&
super.equals(o);
}
@@ -81,7 +76,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +96,4 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -30,19 +31,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesClass
*/
@JsonPropertyOrder({
AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
})
@JsonPropertyOrder({AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING,
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesClass {
@@ -58,10 +57,12 @@ public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
private Map<String, Boolean> mapBoolean = null;
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER =
"map_array_integer";
private Map<String, List<Integer>> mapArrayInteger = null;
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE =
"map_array_anytype";
private Map<String, List<Object>> mapArrayAnytype = null;
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
@@ -79,14 +80,14 @@ public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
private Object anytype3;
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
this.mapString = mapString;
return this;
}
public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
public AdditionalPropertiesClass putMapStringItem(String key,
String mapStringItem) {
if (this.mapString == null) {
this.mapString = new HashMap<String, String>();
}
@@ -94,10 +95,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapString
* @return mapString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_STRING)
@@ -107,19 +108,19 @@ public class AdditionalPropertiesClass {
return mapString;
}
public void setMapString(Map<String, String> mapString) {
this.mapString = mapString;
}
public AdditionalPropertiesClass
mapNumber(Map<String, BigDecimal> mapNumber) {
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber;
return this;
}
public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
public AdditionalPropertiesClass putMapNumberItem(String key,
BigDecimal mapNumberItem) {
if (this.mapNumber == null) {
this.mapNumber = new HashMap<String, BigDecimal>();
}
@@ -127,10 +128,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapNumber
* @return mapNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
@@ -140,19 +141,18 @@ public class AdditionalPropertiesClass {
return mapNumber;
}
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber;
}
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger;
return this;
}
public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
public AdditionalPropertiesClass putMapIntegerItem(String key,
Integer mapIntegerItem) {
if (this.mapInteger == null) {
this.mapInteger = new HashMap<String, Integer>();
}
@@ -160,10 +160,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapInteger
* @return mapInteger
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
@@ -173,19 +173,18 @@ public class AdditionalPropertiesClass {
return mapInteger;
}
public void setMapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger;
}
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean;
return this;
}
public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
public AdditionalPropertiesClass putMapBooleanItem(String key,
Boolean mapBooleanItem) {
if (this.mapBoolean == null) {
this.mapBoolean = new HashMap<String, Boolean>();
}
@@ -193,10 +192,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapBoolean
* @return mapBoolean
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
@@ -206,19 +205,19 @@ public class AdditionalPropertiesClass {
return mapBoolean;
}
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean;
}
public AdditionalPropertiesClass
mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger;
return this;
}
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
public AdditionalPropertiesClass
putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
if (this.mapArrayInteger == null) {
this.mapArrayInteger = new HashMap<String, List<Integer>>();
}
@@ -226,10 +225,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapArrayInteger
* @return mapArrayInteger
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
@@ -239,19 +238,19 @@ public class AdditionalPropertiesClass {
return mapArrayInteger;
}
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger;
}
public AdditionalPropertiesClass
mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype;
return this;
}
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
public AdditionalPropertiesClass
putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
if (this.mapArrayAnytype == null) {
this.mapArrayAnytype = new HashMap<String, List<Object>>();
}
@@ -259,10 +258,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapArrayAnytype
* @return mapArrayAnytype
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
@@ -272,19 +271,19 @@ public class AdditionalPropertiesClass {
return mapArrayAnytype;
}
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype;
}
public AdditionalPropertiesClass
mapMapString(Map<String, Map<String, String>> mapMapString) {
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString;
return this;
}
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
public AdditionalPropertiesClass
putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
if (this.mapMapString == null) {
this.mapMapString = new HashMap<String, Map<String, String>>();
}
@@ -292,10 +291,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapMapString
* @return mapMapString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
@@ -305,19 +304,19 @@ public class AdditionalPropertiesClass {
return mapMapString;
}
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString;
}
public AdditionalPropertiesClass
mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype;
return this;
}
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
public AdditionalPropertiesClass
putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
if (this.mapMapAnytype == null) {
this.mapMapAnytype = new HashMap<String, Map<String, Object>>();
}
@@ -325,10 +324,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapMapAnytype
* @return mapMapAnytype
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
@@ -338,22 +337,20 @@ public class AdditionalPropertiesClass {
return mapMapAnytype;
}
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype;
}
public AdditionalPropertiesClass anytype1(Object anytype1) {
this.anytype1 = anytype1;
return this;
}
/**
/**
* Get anytype1
* @return anytype1
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
@@ -363,22 +360,18 @@ public class AdditionalPropertiesClass {
return anytype1;
}
public void setAnytype1(Object anytype1) {
this.anytype1 = anytype1;
}
public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; }
public AdditionalPropertiesClass anytype2(Object anytype2) {
this.anytype2 = anytype2;
return this;
}
/**
/**
* Get anytype2
* @return anytype2
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
@@ -388,22 +381,18 @@ public class AdditionalPropertiesClass {
return anytype2;
}
public void setAnytype2(Object anytype2) {
this.anytype2 = anytype2;
}
public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; }
public AdditionalPropertiesClass anytype3(Object anytype3) {
this.anytype3 = anytype3;
return this;
}
/**
/**
* Get anytype3
* @return anytype3
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
@@ -413,11 +402,7 @@ public class AdditionalPropertiesClass {
return anytype3;
}
public void setAnytype3(Object anytype3) {
this.anytype3 = anytype3;
}
public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; }
@Override
public boolean equals(java.lang.Object o) {
@@ -427,15 +412,21 @@ public class AdditionalPropertiesClass {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
return Objects.equals(this.mapString, additionalPropertiesClass.mapString) &&
AdditionalPropertiesClass additionalPropertiesClass =
(AdditionalPropertiesClass)o;
return Objects.equals(this.mapString,
additionalPropertiesClass.mapString) &&
Objects.equals(this.mapNumber, additionalPropertiesClass.mapNumber) &&
Objects.equals(this.mapInteger, additionalPropertiesClass.mapInteger) &&
Objects.equals(this.mapBoolean, additionalPropertiesClass.mapBoolean) &&
Objects.equals(this.mapArrayInteger, additionalPropertiesClass.mapArrayInteger) &&
Objects.equals(this.mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) &&
Objects.equals(this.mapMapString, additionalPropertiesClass.mapMapString) &&
Objects.equals(this.mapMapAnytype, additionalPropertiesClass.mapMapAnytype) &&
Objects.equals(this.mapArrayInteger,
additionalPropertiesClass.mapArrayInteger) &&
Objects.equals(this.mapArrayAnytype,
additionalPropertiesClass.mapArrayAnytype) &&
Objects.equals(this.mapMapString,
additionalPropertiesClass.mapMapString) &&
Objects.equals(this.mapMapAnytype,
additionalPropertiesClass.mapMapAnytype) &&
Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) &&
Objects.equals(this.anytype2, additionalPropertiesClass.anytype2) &&
Objects.equals(this.anytype3, additionalPropertiesClass.anytype3);
@@ -443,22 +434,39 @@ public class AdditionalPropertiesClass {
@Override
public int hashCode() {
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean,
mapArrayInteger, mapArrayAnytype, mapMapString,
mapMapAnytype, anytype1, anytype2, anytype3);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesClass {\n");
sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n");
sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n");
sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n");
sb.append(" mapBoolean: ").append(toIndentedString(mapBoolean)).append("\n");
sb.append(" mapArrayInteger: ").append(toIndentedString(mapArrayInteger)).append("\n");
sb.append(" mapArrayAnytype: ").append(toIndentedString(mapArrayAnytype)).append("\n");
sb.append(" mapMapString: ").append(toIndentedString(mapMapString)).append("\n");
sb.append(" mapMapAnytype: ").append(toIndentedString(mapMapAnytype)).append("\n");
sb.append(" mapString: ")
.append(toIndentedString(mapString))
.append("\n");
sb.append(" mapNumber: ")
.append(toIndentedString(mapNumber))
.append("\n");
sb.append(" mapInteger: ")
.append(toIndentedString(mapInteger))
.append("\n");
sb.append(" mapBoolean: ")
.append(toIndentedString(mapBoolean))
.append("\n");
sb.append(" mapArrayInteger: ")
.append(toIndentedString(mapArrayInteger))
.append("\n");
sb.append(" mapArrayAnytype: ")
.append(toIndentedString(mapArrayAnytype))
.append("\n");
sb.append(" mapMapString: ")
.append(toIndentedString(mapMapString))
.append("\n");
sb.append(" mapMapAnytype: ")
.append(toIndentedString(mapMapAnytype))
.append("\n");
sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n");
sb.append(" anytype2: ").append(toIndentedString(anytype2)).append("\n");
sb.append(" anytype3: ").append(toIndentedString(anytype3)).append("\n");
@@ -476,6 +484,4 @@ public class AdditionalPropertiesClass {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesInteger
*/
@JsonPropertyOrder({
AdditionalPropertiesInteger.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesInteger.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesInteger name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -57,11 +55,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,7 +65,8 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o;
AdditionalPropertiesInteger additionalPropertiesInteger =
(AdditionalPropertiesInteger)o;
return Objects.equals(this.name, additionalPropertiesInteger.name) &&
super.equals(o);
}
@@ -81,7 +76,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +96,4 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,26 +30,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesNumber
*/
@JsonPropertyOrder({
AdditionalPropertiesNumber.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesNumber.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesNumber name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -58,11 +56,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -72,7 +66,8 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o;
AdditionalPropertiesNumber additionalPropertiesNumber =
(AdditionalPropertiesNumber)o;
return Objects.equals(this.name, additionalPropertiesNumber.name) &&
super.equals(o);
}
@@ -82,7 +77,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -103,6 +97,4 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesObject
*/
@JsonPropertyOrder({
AdditionalPropertiesObject.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesObject.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesObject extends HashMap<String, Map> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesObject name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -57,11 +55,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,7 +65,8 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o;
AdditionalPropertiesObject additionalPropertiesObject =
(AdditionalPropertiesObject)o;
return Objects.equals(this.name, additionalPropertiesObject.name) &&
super.equals(o);
}
@@ -81,7 +76,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +96,4 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* AdditionalPropertiesString
*/
@JsonPropertyOrder({
AdditionalPropertiesString.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({AdditionalPropertiesString.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class AdditionalPropertiesString extends HashMap<String, String> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public AdditionalPropertiesString name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -57,11 +55,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,7 +65,8 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o;
AdditionalPropertiesString additionalPropertiesString =
(AdditionalPropertiesString)o;
return Objects.equals(this.name, additionalPropertiesString.name) &&
super.equals(o);
}
@@ -81,7 +76,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +96,4 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,17 +29,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Animal
*/
@JsonPropertyOrder({
Animal.JSON_PROPERTY_CLASS_NAME,
Animal.JSON_PROPERTY_COLOR
})
@JsonPropertyOrder(
{Animal.JSON_PROPERTY_CLASS_NAME, Animal.JSON_PROPERTY_COLOR})
@javax.annotation.concurrent.Immutable
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "className", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
@JsonSubTypes.Type(value = Dog.class, name = "Dog")
, @JsonSubTypes.Type(value = Cat.class, name = "Cat"),
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
})
public class Animal {
@@ -48,17 +49,16 @@ public class Animal {
public static final String JSON_PROPERTY_COLOR = "color";
private String color = "red";
public Animal className(String className) {
this.className = className;
return this;
}
/**
/**
* Get className
* @return className
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -67,22 +67,18 @@ public class Animal {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public void setClassName(String className) { this.className = className; }
public Animal color(String color) {
this.color = color;
return this;
}
/**
/**
* Get color
* @return color
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COLOR)
@@ -92,11 +88,7 @@ public class Animal {
return color;
}
public void setColor(String color) {
this.color = color;
}
public void setColor(String color) { this.color = color; }
@Override
public boolean equals(java.lang.Object o) {
@@ -106,7 +98,7 @@ public class Animal {
if (o == null || getClass() != o.getClass()) {
return false;
}
Animal animal = (Animal) o;
Animal animal = (Animal)o;
return Objects.equals(this.className, animal.className) &&
Objects.equals(this.color, animal.color);
}
@@ -116,12 +108,13 @@ public class Animal {
return Objects.hash(className, color);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Animal {\n");
sb.append(" className: ").append(toIndentedString(className)).append("\n");
sb.append(" className: ")
.append(toIndentedString(className))
.append("\n");
sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append("}");
return sb.toString();
@@ -137,6 +130,4 @@ public class Animal {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,23 +30,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ArrayOfArrayOfNumberOnly
*/
@JsonPropertyOrder({
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
})
@JsonPropertyOrder({ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER})
@javax.annotation.concurrent.Immutable
public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER =
"ArrayArrayNumber";
private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly
arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
return this;
}
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
public ArrayOfArrayOfNumberOnly
addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) {
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
}
@@ -53,10 +54,10 @@ public class ArrayOfArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@@ -66,12 +67,10 @@ public class ArrayOfArrayOfNumberOnly {
return arrayArrayNumber;
}
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -80,8 +79,10 @@ public class ArrayOfArrayOfNumberOnly {
if (o == null || getClass() != o.getClass()) {
return false;
}
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly =
(ArrayOfArrayOfNumberOnly)o;
return Objects.equals(this.arrayArrayNumber,
arrayOfArrayOfNumberOnly.arrayArrayNumber);
}
@Override
@@ -89,12 +90,13 @@ public class ArrayOfArrayOfNumberOnly {
return Objects.hash(arrayArrayNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ArrayOfArrayOfNumberOnly {\n");
sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n");
sb.append(" arrayArrayNumber: ")
.append(toIndentedString(arrayArrayNumber))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -109,6 +111,4 @@ public class ArrayOfArrayOfNumberOnly {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,18 +30,15 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ArrayOfNumberOnly
*/
@JsonPropertyOrder({
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
})
@JsonPropertyOrder({ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER})
@javax.annotation.concurrent.Immutable
public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
return this;
}
@@ -53,10 +51,10 @@ public class ArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayNumber
* @return arrayNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@@ -66,12 +64,10 @@ public class ArrayOfNumberOnly {
return arrayNumber;
}
public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -80,7 +76,7 @@ public class ArrayOfNumberOnly {
if (o == null || getClass() != o.getClass()) {
return false;
}
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly)o;
return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
}
@@ -89,12 +85,13 @@ public class ArrayOfNumberOnly {
return Objects.hash(arrayNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ArrayOfNumberOnly {\n");
sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n");
sb.append(" arrayNumber: ")
.append(toIndentedString(arrayNumber))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -109,6 +106,4 @@ public class ArrayOfNumberOnly {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,26 +30,25 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ArrayTest
*/
@JsonPropertyOrder({
ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
})
@JsonPropertyOrder({ArrayTest.JSON_PROPERTY_ARRAY_OF_STRING,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL})
@javax.annotation.concurrent.Immutable
public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
private List<String> arrayOfString = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER =
"array_array_of_integer";
private List<List<Long>> arrayArrayOfInteger = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL =
"array_array_of_model";
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
return this;
}
@@ -61,10 +61,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayOfString
* @return arrayOfString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@@ -74,19 +74,18 @@ public class ArrayTest {
return arrayOfString;
}
public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
}
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
return this;
}
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
public ArrayTest
addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) {
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
}
@@ -94,10 +93,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@@ -107,19 +106,19 @@ public class ArrayTest {
return arrayArrayOfInteger;
}
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
public ArrayTest
arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
return this;
}
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
public ArrayTest
addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) {
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
}
@@ -127,10 +126,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@@ -140,12 +139,11 @@ public class ArrayTest {
return arrayArrayOfModel;
}
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
public void
setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -154,9 +152,10 @@ public class ArrayTest {
if (o == null || getClass() != o.getClass()) {
return false;
}
ArrayTest arrayTest = (ArrayTest) o;
ArrayTest arrayTest = (ArrayTest)o;
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
Objects.equals(this.arrayArrayOfInteger,
arrayTest.arrayArrayOfInteger) &&
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
}
@@ -165,14 +164,19 @@ public class ArrayTest {
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ArrayTest {\n");
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
sb.append(" arrayOfString: ")
.append(toIndentedString(arrayOfString))
.append("\n");
sb.append(" arrayArrayOfInteger: ")
.append(toIndentedString(arrayArrayOfInteger))
.append("\n");
sb.append(" arrayArrayOfModel: ")
.append(toIndentedString(arrayArrayOfModel))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -187,6 +191,4 @@ public class ArrayTest {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,9 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* BigCat
*/
@JsonPropertyOrder({
BigCat.JSON_PROPERTY_KIND
})
@JsonPropertyOrder({BigCat.JSON_PROPERTY_KIND})
@javax.annotation.concurrent.Immutable
public class BigCat extends Cat {
@@ -39,18 +38,16 @@ public class BigCat extends Cat {
*/
public enum KindEnum {
LIONS("lions"),
TIGERS("tigers"),
LEOPARDS("leopards"),
JAGUARS("jaguars");
private String value;
KindEnum(String value) {
this.value = value;
}
KindEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -76,17 +73,16 @@ public class BigCat extends Cat {
public static final String JSON_PROPERTY_KIND = "kind";
private KindEnum kind;
public BigCat kind(KindEnum kind) {
this.kind = kind;
return this;
}
/**
/**
* Get kind
* @return kind
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KIND)
@@ -96,11 +92,7 @@ public class BigCat extends Cat {
return kind;
}
public void setKind(KindEnum kind) {
this.kind = kind;
}
public void setKind(KindEnum kind) { this.kind = kind; }
@Override
public boolean equals(java.lang.Object o) {
@@ -110,9 +102,8 @@ public class BigCat extends Cat {
if (o == null || getClass() != o.getClass()) {
return false;
}
BigCat bigCat = (BigCat) o;
return Objects.equals(this.kind, bigCat.kind) &&
super.equals(o);
BigCat bigCat = (BigCat)o;
return Objects.equals(this.kind, bigCat.kind) && super.equals(o);
}
@Override
@@ -120,7 +111,6 @@ public class BigCat extends Cat {
return Objects.hash(kind, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -141,6 +131,4 @@ public class BigCat extends Cat {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,9 +27,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* BigCatAllOf
*/
@JsonPropertyOrder({
BigCatAllOf.JSON_PROPERTY_KIND
})
@JsonPropertyOrder({BigCatAllOf.JSON_PROPERTY_KIND})
@javax.annotation.concurrent.Immutable
public class BigCatAllOf {
@@ -37,18 +36,16 @@ public class BigCatAllOf {
*/
public enum KindEnum {
LIONS("lions"),
TIGERS("tigers"),
LEOPARDS("leopards"),
JAGUARS("jaguars");
private String value;
KindEnum(String value) {
this.value = value;
}
KindEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -74,17 +71,16 @@ public class BigCatAllOf {
public static final String JSON_PROPERTY_KIND = "kind";
private KindEnum kind;
public BigCatAllOf kind(KindEnum kind) {
this.kind = kind;
return this;
}
/**
/**
* Get kind
* @return kind
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KIND)
@@ -94,11 +90,7 @@ public class BigCatAllOf {
return kind;
}
public void setKind(KindEnum kind) {
this.kind = kind;
}
public void setKind(KindEnum kind) { this.kind = kind; }
@Override
public boolean equals(java.lang.Object o) {
@@ -108,7 +100,7 @@ public class BigCatAllOf {
if (o == null || getClass() != o.getClass()) {
return false;
}
BigCatAllOf bigCatAllOf = (BigCatAllOf) o;
BigCatAllOf bigCatAllOf = (BigCatAllOf)o;
return Objects.equals(this.kind, bigCatAllOf.kind);
}
@@ -117,7 +109,6 @@ public class BigCatAllOf {
return Objects.hash(kind);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -137,6 +128,4 @@ public class BigCatAllOf {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,14 +27,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Capitalization
*/
@JsonPropertyOrder({
Capitalization.JSON_PROPERTY_SMALL_CAMEL,
Capitalization.JSON_PROPERTY_CAPITAL_CAMEL,
Capitalization.JSON_PROPERTY_SMALL_SNAKE,
Capitalization.JSON_PROPERTY_CAPITAL_SNAKE,
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
})
@JsonPropertyOrder({Capitalization.JSON_PROPERTY_SMALL_CAMEL,
Capitalization.JSON_PROPERTY_CAPITAL_CAMEL,
Capitalization.JSON_PROPERTY_SMALL_SNAKE,
Capitalization.JSON_PROPERTY_CAPITAL_SNAKE,
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E})
@javax.annotation.concurrent.Immutable
public class Capitalization {
@@ -49,23 +48,23 @@ public class Capitalization {
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
private String capitalSnake;
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS =
"SCA_ETH_Flow_Points";
private String scAETHFlowPoints;
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
private String ATT_NAME;
public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel;
return this;
}
/**
/**
* Get smallCamel
* @return smallCamel
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@@ -75,22 +74,18 @@ public class Capitalization {
return smallCamel;
}
public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel;
}
public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; }
public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
return this;
}
/**
/**
* Get capitalCamel
* @return capitalCamel
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@@ -100,22 +95,20 @@ public class Capitalization {
return capitalCamel;
}
public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
}
public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake;
return this;
}
/**
/**
* Get smallSnake
* @return smallSnake
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@@ -125,22 +118,18 @@ public class Capitalization {
return smallSnake;
}
public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake;
}
public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; }
public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
return this;
}
/**
/**
* Get capitalSnake
* @return capitalSnake
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@@ -150,22 +139,20 @@ public class Capitalization {
return capitalSnake;
}
public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
}
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
return this;
}
/**
/**
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@@ -175,22 +162,20 @@ public class Capitalization {
return scAETHFlowPoints;
}
public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
}
public Capitalization ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
return this;
}
/**
* Name of the pet
/**
* Name of the pet
* @return ATT_NAME
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ")
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@@ -200,11 +185,7 @@ public class Capitalization {
return ATT_NAME;
}
public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
}
public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; }
@Override
public boolean equals(java.lang.Object o) {
@@ -214,30 +195,41 @@ public class Capitalization {
if (o == null || getClass() != o.getClass()) {
return false;
}
Capitalization capitalization = (Capitalization) o;
Capitalization capitalization = (Capitalization)o;
return Objects.equals(this.smallCamel, capitalization.smallCamel) &&
Objects.equals(this.capitalCamel, capitalization.capitalCamel) &&
Objects.equals(this.smallSnake, capitalization.smallSnake) &&
Objects.equals(this.capitalSnake, capitalization.capitalSnake) &&
Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
Objects.equals(this.scAETHFlowPoints,
capitalization.scAETHFlowPoints) &&
Objects.equals(this.ATT_NAME, capitalization.ATT_NAME);
}
@Override
public int hashCode() {
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake,
scAETHFlowPoints, ATT_NAME);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Capitalization {\n");
sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n");
sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n");
sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n");
sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n");
sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n");
sb.append(" smallCamel: ")
.append(toIndentedString(smallCamel))
.append("\n");
sb.append(" capitalCamel: ")
.append(toIndentedString(capitalCamel))
.append("\n");
sb.append(" smallSnake: ")
.append(toIndentedString(smallSnake))
.append("\n");
sb.append(" capitalSnake: ")
.append(toIndentedString(capitalSnake))
.append("\n");
sb.append(" scAETHFlowPoints: ")
.append(toIndentedString(scAETHFlowPoints))
.append("\n");
sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n");
sb.append("}");
return sb.toString();
@@ -253,6 +245,4 @@ public class Capitalization {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Cat
*/
@JsonPropertyOrder({
Cat.JSON_PROPERTY_DECLAWED
})
@JsonPropertyOrder({Cat.JSON_PROPERTY_DECLAWED})
@javax.annotation.concurrent.Immutable
public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed;
public Cat declawed(Boolean declawed) {
this.declawed = declawed;
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@@ -57,11 +55,7 @@ public class Cat extends Animal {
return declawed;
}
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}
public void setDeclawed(Boolean declawed) { this.declawed = declawed; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,9 +65,8 @@ public class Cat extends Animal {
if (o == null || getClass() != o.getClass()) {
return false;
}
Cat cat = (Cat) o;
return Objects.equals(this.declawed, cat.declawed) &&
super.equals(o);
Cat cat = (Cat)o;
return Objects.equals(this.declawed, cat.declawed) && super.equals(o);
}
@Override
@@ -81,7 +74,6 @@ public class Cat extends Animal {
return Objects.hash(declawed, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +94,4 @@ public class Cat extends Animal {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,26 +27,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CatAllOf
*/
@JsonPropertyOrder({
CatAllOf.JSON_PROPERTY_DECLAWED
})
@JsonPropertyOrder({CatAllOf.JSON_PROPERTY_DECLAWED})
@javax.annotation.concurrent.Immutable
public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed;
public CatAllOf declawed(Boolean declawed) {
this.declawed = declawed;
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@@ -55,11 +53,7 @@ public class CatAllOf {
return declawed;
}
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}
public void setDeclawed(Boolean declawed) { this.declawed = declawed; }
@Override
public boolean equals(java.lang.Object o) {
@@ -69,7 +63,7 @@ public class CatAllOf {
if (o == null || getClass() != o.getClass()) {
return false;
}
CatAllOf catAllOf = (CatAllOf) o;
CatAllOf catAllOf = (CatAllOf)o;
return Objects.equals(this.declawed, catAllOf.declawed);
}
@@ -78,7 +72,6 @@ public class CatAllOf {
return Objects.hash(declawed);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -98,6 +91,4 @@ public class CatAllOf {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,10 +27,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Category
*/
@JsonPropertyOrder({
Category.JSON_PROPERTY_ID,
Category.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({Category.JSON_PROPERTY_ID, Category.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class Category {
@@ -39,17 +37,16 @@ public class Category {
public static final String JSON_PROPERTY_NAME = "name";
private String name = "default-name";
public Category id(Long id) {
this.id = id;
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@@ -59,22 +56,18 @@ public class Category {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) { this.id = id; }
public Category name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -83,11 +76,7 @@ public class Category {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -97,7 +86,7 @@ public class Category {
if (o == null || getClass() != o.getClass()) {
return false;
}
Category category = (Category) o;
Category category = (Category)o;
return Objects.equals(this.id, category.id) &&
Objects.equals(this.name, category.name);
}
@@ -107,7 +96,6 @@ public class Category {
return Objects.hash(id, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -128,6 +116,4 @@ public class Category {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,26 +28,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
* Model for testing model with \&quot;_class\&quot; property
*/
@ApiModel(description = "Model for testing model with \"_class\" property")
@JsonPropertyOrder({
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
})
@JsonPropertyOrder({ClassModel.JSON_PROPERTY_PROPERTY_CLASS})
@javax.annotation.concurrent.Immutable
public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
private String propertyClass;
public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@@ -56,12 +54,10 @@ public class ClassModel {
return propertyClass;
}
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -70,7 +66,7 @@ public class ClassModel {
if (o == null || getClass() != o.getClass()) {
return false;
}
ClassModel classModel = (ClassModel) o;
ClassModel classModel = (ClassModel)o;
return Objects.equals(this.propertyClass, classModel.propertyClass);
}
@@ -79,12 +75,13 @@ public class ClassModel {
return Objects.hash(propertyClass);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClassModel {\n");
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append(" propertyClass: ")
.append(toIndentedString(propertyClass))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -99,6 +96,4 @@ public class ClassModel {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,26 +27,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Client
*/
@JsonPropertyOrder({
Client.JSON_PROPERTY_CLIENT
})
@JsonPropertyOrder({Client.JSON_PROPERTY_CLIENT})
@javax.annotation.concurrent.Immutable
public class Client {
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;
public Client client(String client) {
this.client = client;
return this;
}
/**
/**
* Get client
* @return client
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@@ -55,11 +53,7 @@ public class Client {
return client;
}
public void setClient(String client) {
this.client = client;
}
public void setClient(String client) { this.client = client; }
@Override
public boolean equals(java.lang.Object o) {
@@ -69,7 +63,7 @@ public class Client {
if (o == null || getClass() != o.getClass()) {
return false;
}
Client client = (Client) o;
Client client = (Client)o;
return Objects.equals(this.client, client.client);
}
@@ -78,7 +72,6 @@ public class Client {
return Objects.hash(client);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -98,6 +91,4 @@ public class Client {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,26 +29,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Dog
*/
@JsonPropertyOrder({
Dog.JSON_PROPERTY_BREED
})
@JsonPropertyOrder({Dog.JSON_PROPERTY_BREED})
@javax.annotation.concurrent.Immutable
public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed";
private String breed;
public Dog breed(String breed) {
this.breed = breed;
return this;
}
/**
/**
* Get breed
* @return breed
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@@ -57,11 +55,7 @@ public class Dog extends Animal {
return breed;
}
public void setBreed(String breed) {
this.breed = breed;
}
public void setBreed(String breed) { this.breed = breed; }
@Override
public boolean equals(java.lang.Object o) {
@@ -71,9 +65,8 @@ public class Dog extends Animal {
if (o == null || getClass() != o.getClass()) {
return false;
}
Dog dog = (Dog) o;
return Objects.equals(this.breed, dog.breed) &&
super.equals(o);
Dog dog = (Dog)o;
return Objects.equals(this.breed, dog.breed) && super.equals(o);
}
@Override
@@ -81,7 +74,6 @@ public class Dog extends Animal {
return Objects.hash(breed, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -102,6 +94,4 @@ public class Dog extends Animal {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,26 +27,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DogAllOf
*/
@JsonPropertyOrder({
DogAllOf.JSON_PROPERTY_BREED
})
@JsonPropertyOrder({DogAllOf.JSON_PROPERTY_BREED})
@javax.annotation.concurrent.Immutable
public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed";
private String breed;
public DogAllOf breed(String breed) {
this.breed = breed;
return this;
}
/**
/**
* Get breed
* @return breed
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@@ -55,11 +53,7 @@ public class DogAllOf {
return breed;
}
public void setBreed(String breed) {
this.breed = breed;
}
public void setBreed(String breed) { this.breed = breed; }
@Override
public boolean equals(java.lang.Object o) {
@@ -69,7 +63,7 @@ public class DogAllOf {
if (o == null || getClass() != o.getClass()) {
return false;
}
DogAllOf dogAllOf = (DogAllOf) o;
DogAllOf dogAllOf = (DogAllOf)o;
return Objects.equals(this.breed, dogAllOf.breed);
}
@@ -78,7 +72,6 @@ public class DogAllOf {
return Objects.hash(breed);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -98,6 +91,4 @@ public class DogAllOf {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,10 +29,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* EnumArrays
*/
@JsonPropertyOrder({
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
})
@JsonPropertyOrder(
{EnumArrays.JSON_PROPERTY_JUST_SYMBOL, EnumArrays.JSON_PROPERTY_ARRAY_ENUM})
@javax.annotation.concurrent.Immutable
public class EnumArrays {
@@ -40,14 +39,12 @@ public class EnumArrays {
*/
public enum JustSymbolEnum {
GREATER_THAN_OR_EQUAL_TO(">="),
DOLLAR("$");
private String value;
JustSymbolEnum(String value) {
this.value = value;
}
JustSymbolEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -78,14 +75,12 @@ public class EnumArrays {
*/
public enum ArrayEnumEnum {
FISH("fish"),
CRAB("crab");
private String value;
ArrayEnumEnum(String value) {
this.value = value;
}
ArrayEnumEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -111,17 +106,16 @@ public class EnumArrays {
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
return this;
}
/**
/**
* Get justSymbol
* @return justSymbol
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@@ -131,14 +125,12 @@ public class EnumArrays {
return justSymbol;
}
public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
}
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
return this;
}
@@ -151,10 +143,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get arrayEnum
* @return arrayEnum
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@@ -164,12 +156,10 @@ public class EnumArrays {
return arrayEnum;
}
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -178,7 +168,7 @@ public class EnumArrays {
if (o == null || getClass() != o.getClass()) {
return false;
}
EnumArrays enumArrays = (EnumArrays) o;
EnumArrays enumArrays = (EnumArrays)o;
return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
}
@@ -188,13 +178,16 @@ public class EnumArrays {
return Objects.hash(justSymbol, arrayEnum);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnumArrays {\n");
sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n");
sb.append(" justSymbol: ")
.append(toIndentedString(justSymbol))
.append("\n");
sb.append(" arrayEnum: ")
.append(toIndentedString(arrayEnum))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -209,6 +202,4 @@ public class EnumArrays {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -24,18 +25,16 @@ import com.fasterxml.jackson.annotation.JsonValue;
* Gets or Sets EnumClass
*/
public enum EnumClass {
_ABC("_abc"),
_EFG("-efg"),
_XYZ_("(xyz)");
private String value;
EnumClass(String value) {
this.value = value;
}
EnumClass(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -57,4 +56,3 @@ public enum EnumClass {
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,13 +28,11 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* EnumTest
*/
@JsonPropertyOrder({
EnumTest.JSON_PROPERTY_ENUM_STRING,
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
EnumTest.JSON_PROPERTY_OUTER_ENUM
})
@JsonPropertyOrder({EnumTest.JSON_PROPERTY_ENUM_STRING,
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
EnumTest.JSON_PROPERTY_OUTER_ENUM})
@javax.annotation.concurrent.Immutable
public class EnumTest {
@@ -42,16 +41,14 @@ public class EnumTest {
*/
public enum EnumStringEnum {
UPPER("UPPER"),
LOWER("lower"),
EMPTY("");
private String value;
EnumStringEnum(String value) {
this.value = value;
}
EnumStringEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -82,16 +79,14 @@ public class EnumTest {
*/
public enum EnumStringRequiredEnum {
UPPER("UPPER"),
LOWER("lower"),
EMPTY("");
private String value;
EnumStringRequiredEnum(String value) {
this.value = value;
}
EnumStringRequiredEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -114,7 +109,8 @@ public class EnumTest {
}
}
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED =
"enum_string_required";
private EnumStringRequiredEnum enumStringRequired;
/**
@@ -122,14 +118,12 @@ public class EnumTest {
*/
public enum EnumIntegerEnum {
NUMBER_1(1),
NUMBER_MINUS_1(-1);
private Integer value;
EnumIntegerEnum(Integer value) {
this.value = value;
}
EnumIntegerEnum(Integer value) { this.value = value; }
@JsonValue
public Integer getValue() {
@@ -160,14 +154,12 @@ public class EnumTest {
*/
public enum EnumNumberEnum {
NUMBER_1_DOT_1(1.1),
NUMBER_MINUS_1_DOT_2(-1.2);
private Double value;
EnumNumberEnum(Double value) {
this.value = value;
}
EnumNumberEnum(Double value) { this.value = value; }
@JsonValue
public Double getValue() {
@@ -196,17 +188,16 @@ public class EnumTest {
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
private OuterEnum outerEnum;
public EnumTest enumString(EnumStringEnum enumString) {
this.enumString = enumString;
return this;
}
/**
/**
* Get enumString
* @return enumString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@@ -216,22 +207,21 @@ public class EnumTest {
return enumString;
}
public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString;
}
public EnumTest
enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
return this;
}
/**
/**
* Get enumStringRequired
* @return enumStringRequired
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -240,22 +230,20 @@ public class EnumTest {
return enumStringRequired;
}
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
}
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
return this;
}
/**
/**
* Get enumInteger
* @return enumInteger
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@@ -265,22 +253,20 @@ public class EnumTest {
return enumInteger;
}
public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
}
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
return this;
}
/**
/**
* Get enumNumber
* @return enumNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@@ -290,22 +276,20 @@ public class EnumTest {
return enumNumber;
}
public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
}
public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
return this;
}
/**
/**
* Get outerEnum
* @return outerEnum
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@@ -315,11 +299,7 @@ public class EnumTest {
return outerEnum;
}
public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
}
public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; }
@Override
public boolean equals(java.lang.Object o) {
@@ -329,7 +309,7 @@ public class EnumTest {
if (o == null || getClass() != o.getClass()) {
return false;
}
EnumTest enumTest = (EnumTest) o;
EnumTest enumTest = (EnumTest)o;
return Objects.equals(this.enumString, enumTest.enumString) &&
Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
@@ -339,19 +319,29 @@ public class EnumTest {
@Override
public int hashCode() {
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber,
outerEnum);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnumTest {\n");
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
sb.append(" enumStringRequired: ").append(toIndentedString(enumStringRequired)).append("\n");
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
sb.append(" enumString: ")
.append(toIndentedString(enumString))
.append("\n");
sb.append(" enumStringRequired: ")
.append(toIndentedString(enumStringRequired))
.append("\n");
sb.append(" enumInteger: ")
.append(toIndentedString(enumInteger))
.append("\n");
sb.append(" enumNumber: ")
.append(toIndentedString(enumNumber))
.append("\n");
sb.append(" outerEnum: ")
.append(toIndentedString(outerEnum))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -366,6 +356,4 @@ public class EnumTest {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -28,10 +29,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* FileSchemaTestClass
*/
@JsonPropertyOrder({
FileSchemaTestClass.JSON_PROPERTY_FILE,
FileSchemaTestClass.JSON_PROPERTY_FILES
})
@JsonPropertyOrder({FileSchemaTestClass.JSON_PROPERTY_FILE,
FileSchemaTestClass.JSON_PROPERTY_FILES})
@javax.annotation.concurrent.Immutable
public class FileSchemaTestClass {
@@ -41,34 +40,30 @@ public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILES = "files";
private List<java.io.File> files = null;
public FileSchemaTestClass file(java.io.File file) {
this.file = file;
return this;
}
/**
/**
* Get file
* @return file
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
**/
@javax.annotation
.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.io.File getFile() {
public java.io.File getFile() {
return file;
}
public void setFile(java.io.File file) {
this.file = file;
}
public void setFile(java.io.File file) { this.file = file; }
public FileSchemaTestClass files(List<java.io.File> files) {
this.files = files;
return this;
}
@@ -81,10 +76,10 @@ public class FileSchemaTestClass {
return this;
}
/**
/**
* Get files
* @return files
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES)
@@ -94,11 +89,7 @@ public class FileSchemaTestClass {
return files;
}
public void setFiles(List<java.io.File> files) {
this.files = files;
}
public void setFiles(List<java.io.File> files) { this.files = files; }
@Override
public boolean equals(java.lang.Object o) {
@@ -108,7 +99,7 @@ public class FileSchemaTestClass {
if (o == null || getClass() != o.getClass()) {
return false;
}
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass)o;
return Objects.equals(this.file, fileSchemaTestClass.file) &&
Objects.equals(this.files, fileSchemaTestClass.files);
}
@@ -118,7 +109,6 @@ public class FileSchemaTestClass {
return Objects.hash(file, files);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -139,6 +129,4 @@ public class FileSchemaTestClass {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -31,22 +32,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* FormatTest
*/
@JsonPropertyOrder({
FormatTest.JSON_PROPERTY_INTEGER,
FormatTest.JSON_PROPERTY_INT32,
FormatTest.JSON_PROPERTY_INT64,
FormatTest.JSON_PROPERTY_NUMBER,
FormatTest.JSON_PROPERTY_FLOAT,
FormatTest.JSON_PROPERTY_DOUBLE,
FormatTest.JSON_PROPERTY_STRING,
FormatTest.JSON_PROPERTY_BYTE,
FormatTest.JSON_PROPERTY_BINARY,
FormatTest.JSON_PROPERTY_DATE,
FormatTest.JSON_PROPERTY_DATE_TIME,
FormatTest.JSON_PROPERTY_UUID,
FormatTest.JSON_PROPERTY_PASSWORD,
FormatTest.JSON_PROPERTY_BIG_DECIMAL
})
@JsonPropertyOrder(
{FormatTest.JSON_PROPERTY_INTEGER, FormatTest.JSON_PROPERTY_INT32,
FormatTest.JSON_PROPERTY_INT64, FormatTest.JSON_PROPERTY_NUMBER,
FormatTest.JSON_PROPERTY_FLOAT, FormatTest.JSON_PROPERTY_DOUBLE,
FormatTest.JSON_PROPERTY_STRING, FormatTest.JSON_PROPERTY_BYTE,
FormatTest.JSON_PROPERTY_BINARY, FormatTest.JSON_PROPERTY_DATE,
FormatTest.JSON_PROPERTY_DATE_TIME, FormatTest.JSON_PROPERTY_UUID,
FormatTest.JSON_PROPERTY_PASSWORD, FormatTest.JSON_PROPERTY_BIG_DECIMAL})
@javax.annotation.concurrent.Immutable
public class FormatTest {
@@ -92,19 +85,18 @@ public class FormatTest {
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
private BigDecimal bigDecimal;
public FormatTest integer(Integer integer) {
this.integer = integer;
return this;
}
/**
/**
* Get integer
* minimum: 10
* maximum: 100
* @return integer
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER)
@@ -114,24 +106,20 @@ public class FormatTest {
return integer;
}
public void setInteger(Integer integer) {
this.integer = integer;
}
public void setInteger(Integer integer) { this.integer = integer; }
public FormatTest int32(Integer int32) {
this.int32 = int32;
return this;
}
/**
/**
* Get int32
* minimum: 20
* maximum: 200
* @return int32
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32)
@@ -141,22 +129,18 @@ public class FormatTest {
return int32;
}
public void setInt32(Integer int32) {
this.int32 = int32;
}
public void setInt32(Integer int32) { this.int32 = int32; }
public FormatTest int64(Long int64) {
this.int64 = int64;
return this;
}
/**
/**
* Get int64
* @return int64
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64)
@@ -166,24 +150,20 @@ public class FormatTest {
return int64;
}
public void setInt64(Long int64) {
this.int64 = int64;
}
public void setInt64(Long int64) { this.int64 = int64; }
public FormatTest number(BigDecimal number) {
this.number = number;
return this;
}
/**
/**
* Get number
* minimum: 32.1
* maximum: 543.2
* @return number
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -192,24 +172,20 @@ public class FormatTest {
return number;
}
public void setNumber(BigDecimal number) {
this.number = number;
}
public void setNumber(BigDecimal number) { this.number = number; }
public FormatTest _float(Float _float) {
this._float = _float;
return this;
}
/**
/**
* Get _float
* minimum: 54.3
* maximum: 987.6
* @return _float
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT)
@@ -219,24 +195,20 @@ public class FormatTest {
return _float;
}
public void setFloat(Float _float) {
this._float = _float;
}
public void setFloat(Float _float) { this._float = _float; }
public FormatTest _double(Double _double) {
this._double = _double;
return this;
}
/**
/**
* Get _double
* minimum: 67.8
* maximum: 123.4
* @return _double
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE)
@@ -246,22 +218,18 @@ public class FormatTest {
return _double;
}
public void setDouble(Double _double) {
this._double = _double;
}
public void setDouble(Double _double) { this._double = _double; }
public FormatTest string(String string) {
this.string = string;
return this;
}
/**
/**
* Get string
* @return string
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING)
@@ -271,22 +239,18 @@ public class FormatTest {
return string;
}
public void setString(String string) {
this.string = string;
}
public void setString(String string) { this.string = string; }
public FormatTest _byte(byte[] _byte) {
this._byte = _byte;
return this;
}
/**
/**
* Get _byte
* @return _byte
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -295,22 +259,18 @@ public class FormatTest {
return _byte;
}
public void setByte(byte[] _byte) {
this._byte = _byte;
}
public void setByte(byte[] _byte) { this._byte = _byte; }
public FormatTest binary(File binary) {
this.binary = binary;
return this;
}
/**
/**
* Get binary
* @return binary
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY)
@@ -320,22 +280,18 @@ public class FormatTest {
return binary;
}
public void setBinary(File binary) {
this.binary = binary;
}
public void setBinary(File binary) { this.binary = binary; }
public FormatTest date(LocalDate date) {
this.date = date;
return this;
}
/**
/**
* Get date
* @return date
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -344,22 +300,18 @@ public class FormatTest {
return date;
}
public void setDate(LocalDate date) {
this.date = date;
}
public void setDate(LocalDate date) { this.date = date; }
public FormatTest dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@@ -369,47 +321,41 @@ public class FormatTest {
return dateTime;
}
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; }
public FormatTest uuid(UUID uuid) {
this.uuid = uuid;
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84",
value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() {
public UUID
getUuid() {
return uuid;
}
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
public void setUuid(UUID uuid) { this.uuid = uuid; }
public FormatTest password(String password) {
this.password = password;
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -418,22 +364,18 @@ public class FormatTest {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public void setPassword(String password) { this.password = password; }
public FormatTest bigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
return this;
}
/**
/**
* Get bigDecimal
* @return bigDecimal
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
@@ -443,12 +385,10 @@ public class FormatTest {
return bigDecimal;
}
public void setBigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -457,7 +397,7 @@ public class FormatTest {
if (o == null || getClass() != o.getClass()) {
return false;
}
FormatTest formatTest = (FormatTest) o;
FormatTest formatTest = (FormatTest)o;
return Objects.equals(this.integer, formatTest.integer) &&
Objects.equals(this.int32, formatTest.int32) &&
Objects.equals(this.int64, formatTest.int64) &&
@@ -476,10 +416,11 @@ public class FormatTest {
@Override
public int hashCode() {
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
return Objects.hash(integer, int32, int64, number, _float, _double, string,
Arrays.hashCode(_byte), binary, date, dateTime, uuid,
password, bigDecimal);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -497,7 +438,9 @@ public class FormatTest {
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(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
sb.append(" bigDecimal: ")
.append(toIndentedString(bigDecimal))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -512,6 +455,4 @@ public class FormatTest {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,10 +27,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* HasOnlyReadOnly
*/
@JsonPropertyOrder({
HasOnlyReadOnly.JSON_PROPERTY_BAR,
HasOnlyReadOnly.JSON_PROPERTY_FOO
})
@JsonPropertyOrder(
{HasOnlyReadOnly.JSON_PROPERTY_BAR, HasOnlyReadOnly.JSON_PROPERTY_FOO})
@javax.annotation.concurrent.Immutable
public class HasOnlyReadOnly {
@@ -39,11 +38,10 @@ public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_FOO = "foo";
private String foo;
/**
/**
* Get bar
* @return bar
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@@ -53,13 +51,10 @@ public class HasOnlyReadOnly {
return bar;
}
/**
/**
* Get foo
* @return foo
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO)
@@ -69,9 +64,6 @@ public class HasOnlyReadOnly {
return foo;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -80,7 +72,7 @@ public class HasOnlyReadOnly {
if (o == null || getClass() != o.getClass()) {
return false;
}
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly)o;
return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
Objects.equals(this.foo, hasOnlyReadOnly.foo);
}
@@ -90,7 +82,6 @@ public class HasOnlyReadOnly {
return Objects.hash(bar, foo);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -111,6 +102,4 @@ public class HasOnlyReadOnly {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,16 +30,15 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MapTest
*/
@JsonPropertyOrder({
MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING,
MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING,
MapTest.JSON_PROPERTY_DIRECT_MAP,
MapTest.JSON_PROPERTY_INDIRECT_MAP
})
@JsonPropertyOrder({MapTest.JSON_PROPERTY_MAP_MAP_OF_STRING,
MapTest.JSON_PROPERTY_MAP_OF_ENUM_STRING,
MapTest.JSON_PROPERTY_DIRECT_MAP,
MapTest.JSON_PROPERTY_INDIRECT_MAP})
@javax.annotation.concurrent.Immutable
public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING =
"map_map_of_string";
private Map<String, Map<String, String>> mapMapOfString = null;
/**
@@ -46,14 +46,12 @@ public class MapTest {
*/
public enum InnerEnum {
UPPER("UPPER"),
LOWER("lower");
private String value;
InnerEnum(String value) {
this.value = value;
}
InnerEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -76,7 +74,8 @@ public class MapTest {
}
}
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING =
"map_of_enum_string";
private Map<String, InnerEnum> mapOfEnumString = null;
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@@ -85,14 +84,15 @@ public class MapTest {
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
private Map<String, Boolean> indirectMap = null;
public MapTest
mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
return this;
}
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
public MapTest putMapMapOfStringItem(String key,
Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<String, Map<String, String>>();
}
@@ -100,10 +100,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapMapOfString
* @return mapMapOfString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@@ -113,19 +113,19 @@ public class MapTest {
return mapMapOfString;
}
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
public void
setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
}
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
return this;
}
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
public MapTest putMapOfEnumStringItem(String key,
InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<String, InnerEnum>();
}
@@ -133,10 +133,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapOfEnumString
* @return mapOfEnumString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@@ -146,14 +146,12 @@ public class MapTest {
return mapOfEnumString;
}
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
}
public MapTest directMap(Map<String, Boolean> directMap) {
this.directMap = directMap;
return this;
}
@@ -166,10 +164,10 @@ public class MapTest {
return this;
}
/**
/**
* Get directMap
* @return directMap
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@@ -179,14 +177,12 @@ public class MapTest {
return directMap;
}
public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap;
}
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
return this;
}
@@ -199,10 +195,10 @@ public class MapTest {
return this;
}
/**
/**
* Get indirectMap
* @return indirectMap
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@@ -212,12 +208,10 @@ public class MapTest {
return indirectMap;
}
public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -226,7 +220,7 @@ public class MapTest {
if (o == null || getClass() != o.getClass()) {
return false;
}
MapTest mapTest = (MapTest) o;
MapTest mapTest = (MapTest)o;
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
Objects.equals(this.directMap, mapTest.directMap) &&
@@ -235,18 +229,26 @@ public class MapTest {
@Override
public int hashCode() {
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
return Objects.hash(mapMapOfString, mapOfEnumString, directMap,
indirectMap);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MapTest {\n");
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
sb.append(" mapMapOfString: ")
.append(toIndentedString(mapMapOfString))
.append("\n");
sb.append(" mapOfEnumString: ")
.append(toIndentedString(mapOfEnumString))
.append("\n");
sb.append(" directMap: ")
.append(toIndentedString(directMap))
.append("\n");
sb.append(" indirectMap: ")
.append(toIndentedString(indirectMap))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -261,6 +263,4 @@ public class MapTest {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -32,11 +33,10 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MixedPropertiesAndAdditionalPropertiesClass
*/
@JsonPropertyOrder({
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
})
@JsonPropertyOrder(
{MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_UUID,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP})
@javax.annotation.concurrent.Immutable
public class MixedPropertiesAndAdditionalPropertiesClass {
@@ -49,17 +49,16 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP = "map";
private Map<String, Animal> map = null;
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid;
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@@ -69,22 +68,19 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return uuid;
}
public void setUuid(UUID uuid) { this.uuid = uuid; }
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
public MixedPropertiesAndAdditionalPropertiesClass
dateTime(OffsetDateTime dateTime) {
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@@ -94,19 +90,17 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return dateTime;
}
public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; }
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
public MixedPropertiesAndAdditionalPropertiesClass
map(Map<String, Animal> map) {
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
this.map = map;
return this;
}
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
public MixedPropertiesAndAdditionalPropertiesClass
putMapItem(String key, Animal mapItem) {
if (this.map == null) {
this.map = new HashMap<String, Animal>();
}
@@ -114,10 +108,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get map
* @return map
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP)
@@ -127,11 +121,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return map;
}
public void setMap(Map<String, Animal> map) {
this.map = map;
}
public void setMap(Map<String, Animal> map) { this.map = map; }
@Override
public boolean equals(java.lang.Object o) {
@@ -141,10 +131,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
if (o == null || getClass() != o.getClass()) {
return false;
}
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
MixedPropertiesAndAdditionalPropertiesClass
mixedPropertiesAndAdditionalPropertiesClass =
(MixedPropertiesAndAdditionalPropertiesClass)o;
return Objects.equals(this.uuid,
mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
Objects.equals(this.dateTime,
mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
Objects.equals(this.map,
mixedPropertiesAndAdditionalPropertiesClass.map);
}
@Override
@@ -152,7 +147,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return Objects.hash(uuid, dateTime, map);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -174,6 +168,4 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,10 +28,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
* Model for testing model name starting with number
*/
@ApiModel(description = "Model for testing model name starting with number")
@JsonPropertyOrder({
Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
})
@JsonPropertyOrder({Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS})
@javax.annotation.concurrent.Immutable
public class Model200Response {
@@ -40,17 +39,16 @@ public class Model200Response {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
private String propertyClass;
public Model200Response name(Integer name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -60,22 +58,18 @@ public class Model200Response {
return name;
}
public void setName(Integer name) {
this.name = name;
}
public void setName(Integer name) { this.name = name; }
public Model200Response propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@@ -85,12 +79,10 @@ public class Model200Response {
return propertyClass;
}
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -99,7 +91,7 @@ public class Model200Response {
if (o == null || getClass() != o.getClass()) {
return false;
}
Model200Response _200response = (Model200Response) o;
Model200Response _200response = (Model200Response)o;
return Objects.equals(this.name, _200response.name) &&
Objects.equals(this.propertyClass, _200response.propertyClass);
}
@@ -109,13 +101,14 @@ public class Model200Response {
return Objects.hash(name, propertyClass);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Model200Response {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append(" propertyClass: ")
.append(toIndentedString(propertyClass))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -130,6 +123,4 @@ public class Model200Response {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,11 +27,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ModelApiResponse
*/
@JsonPropertyOrder({
ModelApiResponse.JSON_PROPERTY_CODE,
ModelApiResponse.JSON_PROPERTY_TYPE,
ModelApiResponse.JSON_PROPERTY_MESSAGE
})
@JsonPropertyOrder({ModelApiResponse.JSON_PROPERTY_CODE,
ModelApiResponse.JSON_PROPERTY_TYPE,
ModelApiResponse.JSON_PROPERTY_MESSAGE})
@javax.annotation.concurrent.Immutable
public class ModelApiResponse {
@@ -43,17 +42,16 @@ public class ModelApiResponse {
public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;
public ModelApiResponse code(Integer code) {
this.code = code;
return this;
}
/**
/**
* Get code
* @return code
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CODE)
@@ -63,22 +61,18 @@ public class ModelApiResponse {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public void setCode(Integer code) { this.code = code; }
public ModelApiResponse type(String type) {
this.type = type;
return this;
}
/**
/**
* Get type
* @return type
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@@ -88,22 +82,18 @@ public class ModelApiResponse {
return type;
}
public void setType(String type) {
this.type = type;
}
public void setType(String type) { this.type = type; }
public ModelApiResponse message(String message) {
this.message = message;
return this;
}
/**
/**
* Get message
* @return message
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE)
@@ -113,11 +103,7 @@ public class ModelApiResponse {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public void setMessage(String message) { this.message = message; }
@Override
public boolean equals(java.lang.Object o) {
@@ -127,7 +113,7 @@ public class ModelApiResponse {
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelApiResponse _apiResponse = (ModelApiResponse) o;
ModelApiResponse _apiResponse = (ModelApiResponse)o;
return Objects.equals(this.code, _apiResponse.code) &&
Objects.equals(this.type, _apiResponse.type) &&
Objects.equals(this.message, _apiResponse.message);
@@ -138,7 +124,6 @@ public class ModelApiResponse {
return Objects.hash(code, type, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -160,6 +145,4 @@ public class ModelApiResponse {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,26 +28,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
* Model for testing reserved words
*/
@ApiModel(description = "Model for testing reserved words")
@JsonPropertyOrder({
ModelReturn.JSON_PROPERTY_RETURN
})
@JsonPropertyOrder({ModelReturn.JSON_PROPERTY_RETURN})
@javax.annotation.concurrent.Immutable
public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return";
private Integer _return;
public ModelReturn _return(Integer _return) {
this._return = _return;
return this;
}
/**
/**
* Get _return
* @return _return
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RETURN)
@@ -56,11 +54,7 @@ public class ModelReturn {
return _return;
}
public void setReturn(Integer _return) {
this._return = _return;
}
public void setReturn(Integer _return) { this._return = _return; }
@Override
public boolean equals(java.lang.Object o) {
@@ -70,7 +64,7 @@ public class ModelReturn {
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelReturn _return = (ModelReturn) o;
ModelReturn _return = (ModelReturn)o;
return Objects.equals(this._return, _return._return);
}
@@ -79,7 +73,6 @@ public class ModelReturn {
return Objects.hash(_return);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -99,6 +92,4 @@ public class ModelReturn {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,12 +28,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
* Model for testing model name same as property name
*/
@ApiModel(description = "Model for testing model name same as property name")
@JsonPropertyOrder({
Name.JSON_PROPERTY_NAME,
Name.JSON_PROPERTY_SNAKE_CASE,
Name.JSON_PROPERTY_PROPERTY,
Name.JSON_PROPERTY_123NUMBER
})
@JsonPropertyOrder({Name.JSON_PROPERTY_NAME, Name.JSON_PROPERTY_SNAKE_CASE,
Name.JSON_PROPERTY_PROPERTY, Name.JSON_PROPERTY_123NUMBER})
@javax.annotation.concurrent.Immutable
public class Name {
@@ -48,17 +45,16 @@ public class Name {
public static final String JSON_PROPERTY_123NUMBER = "123Number";
private Integer _123number;
public Name name(Integer name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -67,16 +63,12 @@ public class Name {
return name;
}
public void setName(Integer name) { this.name = name; }
public void setName(Integer name) {
this.name = name;
}
/**
/**
* Get snakeCase
* @return snakeCase
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@@ -86,19 +78,16 @@ public class Name {
return snakeCase;
}
public Name property(String property) {
this.property = property;
return this;
}
/**
/**
* Get property
* @return property
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY)
@@ -108,16 +97,12 @@ public class Name {
return property;
}
public void setProperty(String property) { this.property = property; }
public void setProperty(String property) {
this.property = property;
}
/**
/**
* Get _123number
* @return _123number
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123NUMBER)
@@ -127,9 +112,6 @@ public class Name {
return _123number;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -138,7 +120,7 @@ public class Name {
if (o == null || getClass() != o.getClass()) {
return false;
}
Name name = (Name) o;
Name name = (Name)o;
return Objects.equals(this.name, name.name) &&
Objects.equals(this.snakeCase, name.snakeCase) &&
Objects.equals(this.property, name.property) &&
@@ -150,15 +132,18 @@ public class Name {
return Objects.hash(name, snakeCase, property, _123number);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Name {\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(" _123number: ").append(toIndentedString(_123number)).append("\n");
sb.append(" _123number: ")
.append(toIndentedString(_123number))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -173,6 +158,4 @@ public class Name {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,26 +28,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* NumberOnly
*/
@JsonPropertyOrder({
NumberOnly.JSON_PROPERTY_JUST_NUMBER
})
@JsonPropertyOrder({NumberOnly.JSON_PROPERTY_JUST_NUMBER})
@javax.annotation.concurrent.Immutable
public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
private BigDecimal justNumber;
public NumberOnly justNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
return this;
}
/**
/**
* Get justNumber
* @return justNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@@ -56,12 +54,10 @@ public class NumberOnly {
return justNumber;
}
public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -70,7 +66,7 @@ public class NumberOnly {
if (o == null || getClass() != o.getClass()) {
return false;
}
NumberOnly numberOnly = (NumberOnly) o;
NumberOnly numberOnly = (NumberOnly)o;
return Objects.equals(this.justNumber, numberOnly.justNumber);
}
@@ -79,12 +75,13 @@ public class NumberOnly {
return Objects.hash(justNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NumberOnly {\n");
sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n");
sb.append(" justNumber: ")
.append(toIndentedString(justNumber))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -99,6 +96,4 @@ public class NumberOnly {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,14 +28,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Order
*/
@JsonPropertyOrder({
Order.JSON_PROPERTY_ID,
Order.JSON_PROPERTY_PET_ID,
Order.JSON_PROPERTY_QUANTITY,
Order.JSON_PROPERTY_SHIP_DATE,
Order.JSON_PROPERTY_STATUS,
Order.JSON_PROPERTY_COMPLETE
})
@JsonPropertyOrder({Order.JSON_PROPERTY_ID, Order.JSON_PROPERTY_PET_ID,
Order.JSON_PROPERTY_QUANTITY, Order.JSON_PROPERTY_SHIP_DATE,
Order.JSON_PROPERTY_STATUS, Order.JSON_PROPERTY_COMPLETE})
@javax.annotation.concurrent.Immutable
public class Order {
@@ -55,16 +51,14 @@ public class Order {
*/
public enum StatusEnum {
PLACED("placed"),
APPROVED("approved"),
DELIVERED("delivered");
private String value;
StatusEnum(String value) {
this.value = value;
}
StatusEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -93,17 +87,16 @@ public class Order {
public static final String JSON_PROPERTY_COMPLETE = "complete";
private Boolean complete = false;
public Order id(Long id) {
this.id = id;
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@@ -113,22 +106,18 @@ public class Order {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) { this.id = id; }
public Order petId(Long petId) {
this.petId = petId;
return this;
}
/**
/**
* Get petId
* @return petId
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_ID)
@@ -138,22 +127,18 @@ public class Order {
return petId;
}
public void setPetId(Long petId) {
this.petId = petId;
}
public void setPetId(Long petId) { this.petId = petId; }
public Order quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
/**
/**
* Get quantity
* @return quantity
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUANTITY)
@@ -163,22 +148,18 @@ public class Order {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
public void setQuantity(Integer quantity) { this.quantity = quantity; }
public Order shipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
return this;
}
/**
/**
* Get shipDate
* @return shipDate
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@@ -188,22 +169,18 @@ public class Order {
return shipDate;
}
public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
}
public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; }
public Order status(StatusEnum status) {
this.status = status;
return this;
}
/**
/**
* Order Status
* @return status
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Order Status")
@JsonProperty(JSON_PROPERTY_STATUS)
@@ -213,22 +190,18 @@ public class Order {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public void setStatus(StatusEnum status) { this.status = status; }
public Order complete(Boolean complete) {
this.complete = complete;
return this;
}
/**
/**
* Get complete
* @return complete
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COMPLETE)
@@ -238,11 +211,7 @@ public class Order {
return complete;
}
public void setComplete(Boolean complete) {
this.complete = complete;
}
public void setComplete(Boolean complete) { this.complete = complete; }
@Override
public boolean equals(java.lang.Object o) {
@@ -252,7 +221,7 @@ public class Order {
if (o == null || getClass() != o.getClass()) {
return false;
}
Order order = (Order) o;
Order order = (Order)o;
return Objects.equals(this.id, order.id) &&
Objects.equals(this.petId, order.petId) &&
Objects.equals(this.quantity, order.quantity) &&
@@ -266,7 +235,6 @@ public class Order {
return Objects.hash(id, petId, quantity, shipDate, status, complete);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -291,6 +259,4 @@ public class Order {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -27,11 +28,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* OuterComposite
*/
@JsonPropertyOrder({
OuterComposite.JSON_PROPERTY_MY_NUMBER,
OuterComposite.JSON_PROPERTY_MY_STRING,
OuterComposite.JSON_PROPERTY_MY_BOOLEAN
})
@JsonPropertyOrder({OuterComposite.JSON_PROPERTY_MY_NUMBER,
OuterComposite.JSON_PROPERTY_MY_STRING,
OuterComposite.JSON_PROPERTY_MY_BOOLEAN})
@javax.annotation.concurrent.Immutable
public class OuterComposite {
@@ -44,17 +43,16 @@ public class OuterComposite {
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
private Boolean myBoolean;
public OuterComposite myNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
return this;
}
/**
/**
* Get myNumber
* @return myNumber
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@@ -64,22 +62,18 @@ public class OuterComposite {
return myNumber;
}
public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
}
public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; }
public OuterComposite myString(String myString) {
this.myString = myString;
return this;
}
/**
/**
* Get myString
* @return myString
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_STRING)
@@ -89,22 +83,18 @@ public class OuterComposite {
return myString;
}
public void setMyString(String myString) {
this.myString = myString;
}
public void setMyString(String myString) { this.myString = myString; }
public OuterComposite myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
return this;
}
/**
/**
* Get myBoolean
* @return myBoolean
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@@ -114,11 +104,7 @@ public class OuterComposite {
return myBoolean;
}
public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
}
public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; }
@Override
public boolean equals(java.lang.Object o) {
@@ -128,7 +114,7 @@ public class OuterComposite {
if (o == null || getClass() != o.getClass()) {
return false;
}
OuterComposite outerComposite = (OuterComposite) o;
OuterComposite outerComposite = (OuterComposite)o;
return Objects.equals(this.myNumber, outerComposite.myNumber) &&
Objects.equals(this.myString, outerComposite.myString) &&
Objects.equals(this.myBoolean, outerComposite.myBoolean);
@@ -139,14 +125,15 @@ public class OuterComposite {
return Objects.hash(myNumber, myString, myBoolean);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OuterComposite {\n");
sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n");
sb.append(" myString: ").append(toIndentedString(myString)).append("\n");
sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n");
sb.append(" myBoolean: ")
.append(toIndentedString(myBoolean))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -161,6 +148,4 @@ public class OuterComposite {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -24,18 +25,16 @@ import com.fasterxml.jackson.annotation.JsonValue;
* Gets or Sets OuterEnum
*/
public enum OuterEnum {
PLACED("placed"),
APPROVED("approved"),
DELIVERED("delivered");
private String value;
OuterEnum(String value) {
this.value = value;
}
OuterEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -57,4 +56,3 @@ public enum OuterEnum {
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -30,14 +31,9 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Pet
*/
@JsonPropertyOrder({
Pet.JSON_PROPERTY_ID,
Pet.JSON_PROPERTY_CATEGORY,
Pet.JSON_PROPERTY_NAME,
Pet.JSON_PROPERTY_PHOTO_URLS,
Pet.JSON_PROPERTY_TAGS,
Pet.JSON_PROPERTY_STATUS
})
@JsonPropertyOrder({Pet.JSON_PROPERTY_ID, Pet.JSON_PROPERTY_CATEGORY,
Pet.JSON_PROPERTY_NAME, Pet.JSON_PROPERTY_PHOTO_URLS,
Pet.JSON_PROPERTY_TAGS, Pet.JSON_PROPERTY_STATUS})
@javax.annotation.concurrent.Immutable
public class Pet {
@@ -61,16 +57,14 @@ public class Pet {
*/
public enum StatusEnum {
AVAILABLE("available"),
PENDING("pending"),
SOLD("sold");
private String value;
StatusEnum(String value) {
this.value = value;
}
StatusEnum(String value) { this.value = value; }
@JsonValue
public String getValue() {
@@ -96,17 +90,16 @@ public class Pet {
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public Pet id(Long id) {
this.id = id;
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@@ -116,22 +109,18 @@ public class Pet {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) { this.id = id; }
public Pet category(Category category) {
this.category = category;
return this;
}
/**
/**
* Get category
* @return category
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@@ -141,22 +130,18 @@ public class Pet {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public void setCategory(Category category) { this.category = category; }
public Pet name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -165,14 +150,10 @@ public class Pet {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
@@ -182,10 +163,10 @@ public class Pet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -194,14 +175,12 @@ public class Pet {
return photoUrls;
}
public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}
@@ -214,10 +193,10 @@ public class Pet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS)
@@ -227,22 +206,18 @@ public class Pet {
return tags;
}
public void setTags(List<Tag> tags) {
this.tags = tags;
}
public void setTags(List<Tag> tags) { this.tags = tags; }
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
/**
/**
* pet status in the store
* @return status
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "pet status in the store")
@JsonProperty(JSON_PROPERTY_STATUS)
@@ -252,11 +227,7 @@ public class Pet {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public void setStatus(StatusEnum status) { this.status = status; }
@Override
public boolean equals(java.lang.Object o) {
@@ -266,7 +237,7 @@ public class Pet {
if (o == null || getClass() != o.getClass()) {
return false;
}
Pet pet = (Pet) o;
Pet pet = (Pet)o;
return Objects.equals(this.id, pet.id) &&
Objects.equals(this.category, pet.category) &&
Objects.equals(this.name, pet.name) &&
@@ -280,7 +251,6 @@ public class Pet {
return Objects.hash(id, category, name, photoUrls, tags, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -288,7 +258,9 @@ public class Pet {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
sb.append(" photoUrls: ")
.append(toIndentedString(photoUrls))
.append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
@@ -305,6 +277,4 @@ public class Pet {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,10 +27,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ReadOnlyFirst
*/
@JsonPropertyOrder({
ReadOnlyFirst.JSON_PROPERTY_BAR,
ReadOnlyFirst.JSON_PROPERTY_BAZ
})
@JsonPropertyOrder(
{ReadOnlyFirst.JSON_PROPERTY_BAR, ReadOnlyFirst.JSON_PROPERTY_BAZ})
@javax.annotation.concurrent.Immutable
public class ReadOnlyFirst {
@@ -39,11 +38,10 @@ public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAZ = "baz";
private String baz;
/**
/**
* Get bar
* @return bar
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@@ -53,19 +51,16 @@ public class ReadOnlyFirst {
return bar;
}
public ReadOnlyFirst baz(String baz) {
this.baz = baz;
return this;
}
/**
/**
* Get baz
* @return baz
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAZ)
@@ -75,11 +70,7 @@ public class ReadOnlyFirst {
return baz;
}
public void setBaz(String baz) {
this.baz = baz;
}
public void setBaz(String baz) { this.baz = baz; }
@Override
public boolean equals(java.lang.Object o) {
@@ -89,7 +80,7 @@ public class ReadOnlyFirst {
if (o == null || getClass() != o.getClass()) {
return false;
}
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst)o;
return Objects.equals(this.bar, readOnlyFirst.bar) &&
Objects.equals(this.baz, readOnlyFirst.baz);
}
@@ -99,7 +90,6 @@ public class ReadOnlyFirst {
return Objects.hash(bar, baz);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -120,6 +110,4 @@ public class ReadOnlyFirst {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,26 +27,24 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* SpecialModelName
*/
@JsonPropertyOrder({
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
})
@JsonPropertyOrder({SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME =
"$special[property.name]";
private Long $specialPropertyName;
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
return this;
}
/**
/**
* Get $specialPropertyName
* @return $specialPropertyName
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@@ -55,12 +54,10 @@ public class SpecialModelName {
return $specialPropertyName;
}
public void set$SpecialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -69,8 +66,9 @@ public class SpecialModelName {
if (o == null || getClass() != o.getClass()) {
return false;
}
SpecialModelName $specialModelName = (SpecialModelName) o;
return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
SpecialModelName $specialModelName = (SpecialModelName)o;
return Objects.equals(this.$specialPropertyName,
$specialModelName.$specialPropertyName);
}
@Override
@@ -78,12 +76,13 @@ public class SpecialModelName {
return Objects.hash($specialPropertyName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SpecialModelName {\n");
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
sb.append(" $specialPropertyName: ")
.append(toIndentedString($specialPropertyName))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -98,6 +97,4 @@ public class SpecialModelName {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,10 +27,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Tag
*/
@JsonPropertyOrder({
Tag.JSON_PROPERTY_ID,
Tag.JSON_PROPERTY_NAME
})
@JsonPropertyOrder({Tag.JSON_PROPERTY_ID, Tag.JSON_PROPERTY_NAME})
@javax.annotation.concurrent.Immutable
public class Tag {
@@ -39,17 +37,16 @@ public class Tag {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public Tag id(Long id) {
this.id = id;
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@@ -59,22 +56,18 @@ public class Tag {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) { this.id = id; }
public Tag name(String name) {
this.name = name;
return this;
}
/**
/**
* Get name
* @return name
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@@ -84,11 +77,7 @@ public class Tag {
return name;
}
public void setName(String name) {
this.name = name;
}
public void setName(String name) { this.name = name; }
@Override
public boolean equals(java.lang.Object o) {
@@ -98,7 +87,7 @@ public class Tag {
if (o == null || getClass() != o.getClass()) {
return false;
}
Tag tag = (Tag) o;
Tag tag = (Tag)o;
return Objects.equals(this.id, tag.id) &&
Objects.equals(this.name, tag.name);
}
@@ -108,7 +97,6 @@ public class Tag {
return Objects.hash(id, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -129,6 +117,4 @@ public class Tag {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,13 +30,11 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* TypeHolderDefault
*/
@JsonPropertyOrder({
TypeHolderDefault.JSON_PROPERTY_STRING_ITEM,
TypeHolderDefault.JSON_PROPERTY_NUMBER_ITEM,
TypeHolderDefault.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM,
TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM
})
@JsonPropertyOrder({TypeHolderDefault.JSON_PROPERTY_STRING_ITEM,
TypeHolderDefault.JSON_PROPERTY_NUMBER_ITEM,
TypeHolderDefault.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM,
TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM})
@javax.annotation.concurrent.Immutable
public class TypeHolderDefault {
@@ -54,17 +53,16 @@ public class TypeHolderDefault {
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
private List<Integer> arrayItem = new ArrayList<Integer>();
public TypeHolderDefault stringItem(String stringItem) {
this.stringItem = stringItem;
return this;
}
/**
/**
* Get stringItem
* @return stringItem
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -73,22 +71,18 @@ public class TypeHolderDefault {
return stringItem;
}
public void setStringItem(String stringItem) {
this.stringItem = stringItem;
}
public void setStringItem(String stringItem) { this.stringItem = stringItem; }
public TypeHolderDefault numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return this;
}
/**
/**
* Get numberItem
* @return numberItem
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -97,22 +91,20 @@ public class TypeHolderDefault {
return numberItem;
}
public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
public TypeHolderDefault integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
}
/**
/**
* Get integerItem
* @return integerItem
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -121,22 +113,20 @@ public class TypeHolderDefault {
return integerItem;
}
public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem;
}
public TypeHolderDefault boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return this;
}
/**
/**
* Get boolItem
* @return boolItem
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -145,14 +135,10 @@ public class TypeHolderDefault {
return boolItem;
}
public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem;
}
public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; }
public TypeHolderDefault arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return this;
}
@@ -162,10 +148,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get arrayItem
* @return arrayItem
**/
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -174,12 +160,10 @@ public class TypeHolderDefault {
return arrayItem;
}
public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -188,7 +172,7 @@ public class TypeHolderDefault {
if (o == null || getClass() != o.getClass()) {
return false;
}
TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
TypeHolderDefault typeHolderDefault = (TypeHolderDefault)o;
return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
@@ -198,19 +182,27 @@ public class TypeHolderDefault {
@Override
public int hashCode() {
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
return Objects.hash(stringItem, numberItem, integerItem, boolItem,
arrayItem);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TypeHolderDefault {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
sb.append(" stringItem: ")
.append(toIndentedString(stringItem))
.append("\n");
sb.append(" numberItem: ")
.append(toIndentedString(numberItem))
.append("\n");
sb.append(" integerItem: ")
.append(toIndentedString(integerItem))
.append("\n");
sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n");
sb.append(" arrayItem: ")
.append(toIndentedString(arrayItem))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -225,6 +217,4 @@ public class TypeHolderDefault {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -29,14 +30,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* TypeHolderExample
*/
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
})
@JsonPropertyOrder({TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM})
@javax.annotation.concurrent.Immutable
public class TypeHolderExample {
@@ -58,17 +57,16 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
private List<Integer> arrayItem = new ArrayList<Integer>();
public TypeHolderExample stringItem(String stringItem) {
this.stringItem = stringItem;
return this;
}
/**
/**
* Get stringItem
* @return stringItem
**/
**/
@ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -77,22 +75,18 @@ public class TypeHolderExample {
return stringItem;
}
public void setStringItem(String stringItem) {
this.stringItem = stringItem;
}
public void setStringItem(String stringItem) { this.stringItem = stringItem; }
public TypeHolderExample numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return this;
}
/**
/**
* Get numberItem
* @return numberItem
**/
**/
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -101,22 +95,20 @@ public class TypeHolderExample {
return numberItem;
}
public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
public TypeHolderExample floatItem(Float floatItem) {
this.floatItem = floatItem;
return this;
}
/**
/**
* Get floatItem
* @return floatItem
**/
**/
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -125,22 +117,18 @@ public class TypeHolderExample {
return floatItem;
}
public void setFloatItem(Float floatItem) {
this.floatItem = floatItem;
}
public void setFloatItem(Float floatItem) { this.floatItem = floatItem; }
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
}
/**
/**
* Get integerItem
* @return integerItem
**/
**/
@ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -149,22 +137,20 @@ public class TypeHolderExample {
return integerItem;
}
public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem;
}
public TypeHolderExample boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return this;
}
/**
/**
* Get boolItem
* @return boolItem
**/
**/
@ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -173,14 +159,10 @@ public class TypeHolderExample {
return boolItem;
}
public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem;
}
public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; }
public TypeHolderExample arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return this;
}
@@ -190,10 +172,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get arrayItem
* @return arrayItem
**/
**/
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@@ -202,12 +184,10 @@ public class TypeHolderExample {
return arrayItem;
}
public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -216,7 +196,7 @@ public class TypeHolderExample {
if (o == null || getClass() != o.getClass()) {
return false;
}
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
TypeHolderExample typeHolderExample = (TypeHolderExample)o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
@@ -227,20 +207,30 @@ public class TypeHolderExample {
@Override
public int hashCode() {
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
return Objects.hash(stringItem, numberItem, floatItem, integerItem,
boolItem, arrayItem);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
sb.append(" floatItem: ").append(toIndentedString(floatItem)).append("\n");
sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
sb.append(" stringItem: ")
.append(toIndentedString(stringItem))
.append("\n");
sb.append(" numberItem: ")
.append(toIndentedString(numberItem))
.append("\n");
sb.append(" floatItem: ")
.append(toIndentedString(floatItem))
.append("\n");
sb.append(" integerItem: ")
.append(toIndentedString(integerItem))
.append("\n");
sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n");
sb.append(" arrayItem: ")
.append(toIndentedString(arrayItem))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -255,6 +245,4 @@ public class TypeHolderExample {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
@@ -26,16 +27,10 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* User
*/
@JsonPropertyOrder({
User.JSON_PROPERTY_ID,
User.JSON_PROPERTY_USERNAME,
User.JSON_PROPERTY_FIRST_NAME,
User.JSON_PROPERTY_LAST_NAME,
User.JSON_PROPERTY_EMAIL,
User.JSON_PROPERTY_PASSWORD,
User.JSON_PROPERTY_PHONE,
User.JSON_PROPERTY_USER_STATUS
})
@JsonPropertyOrder({User.JSON_PROPERTY_ID, User.JSON_PROPERTY_USERNAME,
User.JSON_PROPERTY_FIRST_NAME, User.JSON_PROPERTY_LAST_NAME,
User.JSON_PROPERTY_EMAIL, User.JSON_PROPERTY_PASSWORD,
User.JSON_PROPERTY_PHONE, User.JSON_PROPERTY_USER_STATUS})
@javax.annotation.concurrent.Immutable
public class User {
@@ -63,17 +58,16 @@ public class User {
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
private Integer userStatus;
public User id(Long id) {
this.id = id;
return this;
}
/**
/**
* Get id
* @return id
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@@ -83,22 +77,18 @@ public class User {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) { this.id = id; }
public User username(String username) {
this.username = username;
return this;
}
/**
/**
* Get username
* @return username
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME)
@@ -108,22 +98,18 @@ public class User {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public void setUsername(String username) { this.username = username; }
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
/**
* Get firstName
* @return firstName
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@@ -133,22 +119,18 @@ public class User {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public void setFirstName(String firstName) { this.firstName = firstName; }
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
/**
* Get lastName
* @return lastName
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@@ -158,22 +140,18 @@ public class User {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public void setLastName(String lastName) { this.lastName = lastName; }
public User email(String email) {
this.email = email;
return this;
}
/**
/**
* Get email
* @return email
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@@ -183,22 +161,18 @@ public class User {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public void setEmail(String email) { this.email = email; }
public User password(String password) {
this.password = password;
return this;
}
/**
/**
* Get password
* @return password
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@@ -208,22 +182,18 @@ public class User {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public void setPassword(String password) { this.password = password; }
public User phone(String phone) {
this.phone = phone;
return this;
}
/**
/**
* Get phone
* @return phone
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE)
@@ -233,22 +203,18 @@ public class User {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public void setPhone(String phone) { this.phone = phone; }
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
/**
/**
* User Status
* @return userStatus
**/
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "User Status")
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@@ -258,12 +224,10 @@ public class User {
return userStatus;
}
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -272,7 +236,7 @@ public class User {
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
User user = (User)o;
return Objects.equals(this.id, user.id) &&
Objects.equals(this.username, user.username) &&
Objects.equals(this.firstName, user.firstName) &&
@@ -285,22 +249,26 @@ public class User {
@Override
public int hashCode() {
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
return Objects.hash(id, username, firstName, lastName, email, password,
phone, userStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" firstName: ")
.append(toIndentedString(firstName))
.append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append(" userStatus: ")
.append(toIndentedString(userStatus))
.append("\n");
sb.append("}");
return sb.toString();
}
@@ -315,6 +283,4 @@ public class User {
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,31 +3,31 @@ package org.openapitools.client;
import org.junit.*;
import static org.junit.Assert.*;
public class StringUtilTest {
@Test
public void testContainsIgnoreCase() {
assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "abc"));
assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "ABC"));
assertTrue(StringUtil.containsIgnoreCase(new String[]{"ABC"}, "abc"));
assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, "ABC"));
assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, null));
@Test
public void testContainsIgnoreCase() {
assertTrue(StringUtil.containsIgnoreCase(new String[] {"abc"}, "abc"));
assertTrue(StringUtil.containsIgnoreCase(new String[] {"abc"}, "ABC"));
assertTrue(StringUtil.containsIgnoreCase(new String[] {"ABC"}, "abc"));
assertTrue(
StringUtil.containsIgnoreCase(new String[] {null, "abc"}, "ABC"));
assertTrue(StringUtil.containsIgnoreCase(new String[] {null, "abc"}, null));
assertFalse(StringUtil.containsIgnoreCase(new String[]{"abc"}, "def"));
assertFalse(StringUtil.containsIgnoreCase(new String[]{}, "ABC"));
assertFalse(StringUtil.containsIgnoreCase(new String[]{}, null));
}
assertFalse(StringUtil.containsIgnoreCase(new String[] {"abc"}, "def"));
assertFalse(StringUtil.containsIgnoreCase(new String[] {}, "ABC"));
assertFalse(StringUtil.containsIgnoreCase(new String[] {}, null));
}
@Test
public void testJoin() {
String[] array = {"aa", "bb", "cc"};
assertEquals("aa,bb,cc", StringUtil.join(array, ","));
assertEquals("aa, bb, cc", StringUtil.join(array, ", "));
assertEquals("aabbcc", StringUtil.join(array, ""));
assertEquals("aa bb cc", StringUtil.join(array, " "));
assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n"));
@Test
public void testJoin() {
String[] array = {"aa", "bb", "cc"};
assertEquals("aa,bb,cc", StringUtil.join(array, ","));
assertEquals("aa, bb, cc", StringUtil.join(array, ", "));
assertEquals("aabbcc", StringUtil.join(array, ""));
assertEquals("aa bb cc", StringUtil.join(array, " "));
assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n"));
assertEquals("", StringUtil.join(new String[]{}, ","));
assertEquals("abc", StringUtil.join(new String[]{"abc"}, ","));
}
assertEquals("", StringUtil.join(new String[] {}, ","));
assertEquals("abc", StringUtil.join(new String[] {"abc"}, ","));
}
}

View File

@@ -15,26 +15,23 @@ import java.util.Map;
*/
public class AnotherFakeApiTest {
private AnotherFakeApi api;
private AnotherFakeApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(AnotherFakeApi.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(AnotherFakeApi.class);
}
/**
* To test special tags
*
* To test special tags and operation ID starting with number
*/
@Test
public void call123testSpecialTagsTest() {
Client body = null;
// Client response = api.call123testSpecialTags(body);
/**
* To test special tags
*
* To test special tags and operation ID starting with number
*/
@Test
public void call123testSpecialTagsTest() {
Client body = null;
// Client response = api.call123testSpecialTags(body);
// TODO: test validations
}
// TODO: test validations
}
}

View File

@@ -22,268 +22,268 @@ import java.util.Map;
*/
public class FakeApiTest {
private FakeApi api;
private FakeApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(FakeApi.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(FakeApi.class);
}
/**
*
*
* Test serialization of outer boolean types
*/
@Test
public void fakeOuterBooleanSerializeTest() {
Boolean body = null;
// Boolean response = api.fakeOuterBooleanSerialize(body);
// TODO: test validations
}
/**
*
*
* Test serialization of object with outer number type
*/
@Test
public void fakeOuterCompositeSerializeTest() {
OuterComposite body = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
// TODO: test validations
}
/**
*
*
* Test serialization of outer number types
*/
@Test
public void fakeOuterNumberSerializeTest() {
BigDecimal body = null;
// BigDecimal response = api.fakeOuterNumberSerialize(body);
// TODO: test validations
}
/**
*
*
* Test serialization of outer string types
*/
@Test
public void fakeOuterStringSerializeTest() {
String body = null;
// String response = api.fakeOuterStringSerialize(body);
// TODO: test validations
}
/**
*
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
*/
@Test
public void testBodyWithFileSchemaTest() {
FileSchemaTestClass body = null;
// api.testBodyWithFileSchema(body);
// TODO: test validations
}
/**
*
*
*
*/
@Test
public void testBodyWithQueryParamsTest() {
String query = null;
User body = null;
// api.testBodyWithQueryParams(query, body);
// TODO: test validations
}
/**
*
*
*
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testBodyWithQueryParamsTestQueryMap() {
User body = null;
FakeApi.TestBodyWithQueryParamsQueryParams queryParams = new FakeApi.TestBodyWithQueryParamsQueryParams()
.query(null);
// api.testBodyWithQueryParams(body, queryParams);
/**
*
*
* Test serialization of outer boolean types
*/
@Test
public void fakeOuterBooleanSerializeTest() {
Boolean body = null;
// Boolean response = api.fakeOuterBooleanSerialize(body);
// TODO: test validations
}
/**
* To test \&quot;client\&quot; model
*
* To test \&quot;client\&quot; model
*/
@Test
public void testClientModelTest() {
Client body = null;
// Client response = api.testClientModel(body);
}
// TODO: test validations
}
/**
*
*
* Test serialization of object with outer number type
*/
@Test
public void fakeOuterCompositeSerializeTest() {
OuterComposite body = null;
// OuterComposite response = api.fakeOuterCompositeSerialize(body);
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*/
@Test
public void testEndpointParametersTest() {
BigDecimal number = null;
Double _double = null;
String patternWithoutDelimiter = null;
byte[] _byte = null;
Integer integer = null;
Integer int32 = null;
Long int64 = null;
Float _float = null;
String string = null;
File binary = null;
LocalDate date = null;
OffsetDateTime dateTime = null;
String password = null;
String paramCallback = null;
// api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
// TODO: test validations
}
// TODO: test validations
}
/**
*
*
* Test serialization of outer number types
*/
@Test
public void fakeOuterNumberSerializeTest() {
BigDecimal body = null;
// BigDecimal response = api.fakeOuterNumberSerialize(body);
/**
* To test enum parameters
*
* To test enum parameters
*/
@Test
public void testEnumParametersTest() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumQueryStringArray = null;
String enumQueryString = null;
Integer enumQueryInteger = null;
Double enumQueryDouble = null;
List<String> enumFormStringArray = null;
String enumFormString = null;
// api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
// TODO: test validations
}
// TODO: test validations
}
/**
*
*
* Test serialization of outer string types
*/
@Test
public void fakeOuterStringSerializeTest() {
String body = null;
// String response = api.fakeOuterStringSerialize(body);
/**
* To test enum parameters
*
* To test enum parameters
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testEnumParametersTestQueryMap() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumFormStringArray = null;
String enumFormString = null;
FakeApi.TestEnumParametersQueryParams queryParams = new FakeApi.TestEnumParametersQueryParams()
// TODO: test validations
}
/**
*
*
* For this test, the body for this request much reference a schema named
* &#x60;File&#x60;.
*/
@Test
public void testBodyWithFileSchemaTest() {
FileSchemaTestClass body = null;
// api.testBodyWithFileSchema(body);
// TODO: test validations
}
/**
*
*
*
*/
@Test
public void testBodyWithQueryParamsTest() {
String query = null;
User body = null;
// api.testBodyWithQueryParams(query, body);
// TODO: test validations
}
/**
*
*
*
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void testBodyWithQueryParamsTestQueryMap() {
User body = null;
FakeApi.TestBodyWithQueryParamsQueryParams queryParams =
new FakeApi.TestBodyWithQueryParamsQueryParams().query(null);
// api.testBodyWithQueryParams(body, queryParams);
// TODO: test validations
}
/**
* To test \&quot;client\&quot; model
*
* To test \&quot;client\&quot; model
*/
@Test
public void testClientModelTest() {
Client body = null;
// Client response = api.testClientModel(body);
// TODO: test validations
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜
* 엔드 포인트
*
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜
* 엔드 포인트
*/
@Test
public void testEndpointParametersTest() {
BigDecimal number = null;
Double _double = null;
String patternWithoutDelimiter = null;
byte[] _byte = null;
Integer integer = null;
Integer int32 = null;
Long int64 = null;
Float _float = null;
String string = null;
File binary = null;
LocalDate date = null;
OffsetDateTime dateTime = null;
String password = null;
String paramCallback = null;
// api.testEndpointParameters(number, _double, patternWithoutDelimiter,
// _byte, integer, int32, int64, _float, string, binary, date, dateTime,
// password, paramCallback);
// TODO: test validations
}
/**
* To test enum parameters
*
* To test enum parameters
*/
@Test
public void testEnumParametersTest() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumQueryStringArray = null;
String enumQueryString = null;
Integer enumQueryInteger = null;
Double enumQueryDouble = null;
List<String> enumFormStringArray = null;
String enumFormString = null;
// api.testEnumParameters(enumHeaderStringArray, enumHeaderString,
// enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble,
// enumFormStringArray, enumFormString);
// TODO: test validations
}
/**
* To test enum parameters
*
* To test enum parameters
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void testEnumParametersTestQueryMap() {
List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumFormStringArray = null;
String enumFormString = null;
FakeApi.TestEnumParametersQueryParams queryParams =
new FakeApi.TestEnumParametersQueryParams()
.enumQueryStringArray(null)
.enumQueryString(null)
.enumQueryInteger(null)
.enumQueryDouble(null);
// api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumFormStringArray, enumFormString, queryParams);
// api.testEnumParameters(enumHeaderStringArray, enumHeaderString,
// enumFormStringArray, enumFormString, queryParams);
// TODO: test validations
}
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*/
@Test
public void testGroupParametersTest() {
Integer requiredStringGroup = null;
Boolean requiredBooleanGroup = null;
Long requiredInt64Group = null;
Integer stringGroup = null;
Boolean booleanGroup = null;
Long int64Group = null;
// api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
// TODO: test validations
}
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*/
@Test
public void testGroupParametersTest() {
Integer requiredStringGroup = null;
Boolean requiredBooleanGroup = null;
Long requiredInt64Group = null;
Integer stringGroup = null;
Boolean booleanGroup = null;
Long int64Group = null;
// api.testGroupParameters(requiredStringGroup, requiredBooleanGroup,
// requiredInt64Group, stringGroup, booleanGroup, int64Group);
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void testGroupParametersTestQueryMap() {
Boolean requiredBooleanGroup = null;
Boolean booleanGroup = null;
FakeApi.TestGroupParametersQueryParams queryParams = new FakeApi.TestGroupParametersQueryParams()
// TODO: test validations
}
/**
* Fake endpoint to test group parameters (optional)
*
* Fake endpoint to test group parameters (optional)
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void testGroupParametersTestQueryMap() {
Boolean requiredBooleanGroup = null;
Boolean booleanGroup = null;
FakeApi.TestGroupParametersQueryParams queryParams =
new FakeApi.TestGroupParametersQueryParams()
.requiredStringGroup(null)
.requiredInt64Group(null)
.stringGroup(null)
.int64Group(null);
// api.testGroupParameters(requiredBooleanGroup, booleanGroup, queryParams);
// api.testGroupParameters(requiredBooleanGroup, booleanGroup, queryParams);
// TODO: test validations
}
/**
* test inline additionalProperties
*
*
*/
@Test
public void testInlineAdditionalPropertiesTest() {
Map<String, String> param = null;
// api.testInlineAdditionalProperties(param);
}
// TODO: test validations
}
/**
* test inline additionalProperties
*
*
*/
@Test
public void testInlineAdditionalPropertiesTest() {
Map<String, String> param = null;
// api.testInlineAdditionalProperties(param);
/**
* test json serialization of form data
*
*
*/
@Test
public void testJsonFormDataTest() {
String param = null;
String param2 = null;
// api.testJsonFormData(param, param2);
// TODO: test validations
}
// TODO: test validations
}
/**
* test json serialization of form data
*
*
*/
@Test
public void testJsonFormDataTest() {
String param = null;
String param2 = null;
// api.testJsonFormData(param, param2);
// TODO: test validations
}
}

View File

@@ -15,26 +15,23 @@ import java.util.Map;
*/
public class FakeClassnameTags123ApiTest {
private FakeClassnameTags123Api api;
private FakeClassnameTags123Api api;
@Before
public void setup() {
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(FakeClassnameTags123Api.class);
}
/**
* To test class name in snake case
*
* To test class name in snake case
*/
@Test
public void testClassnameTest() {
Client body = null;
// Client response = api.testClassname(body);
/**
* To test class name in snake case
*
* To test class name in snake case
*/
@Test
public void testClassnameTest() {
Client body = null;
// Client response = api.testClassname(body);
// TODO: test validations
}
// TODO: test validations
}
}

View File

@@ -17,177 +17,172 @@ import java.util.Map;
*/
public class PetApiTest {
private PetApi api;
private PetApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(PetApi.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(PetApi.class);
}
/**
* Add a new pet to the store
*
*
*/
@Test
public void addPetTest() {
Pet body = null;
// api.addPet(body);
// TODO: test validations
}
/**
* Deletes a pet
*
*
*/
@Test
public void deletePetTest() {
Long petId = null;
String apiKey = null;
// api.deletePet(petId, apiKey);
// TODO: test validations
}
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*/
@Test
public void findPetsByStatusTest() {
List<String> status = null;
// List<Pet> response = api.findPetsByStatus(status);
// TODO: test validations
}
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void findPetsByStatusTestQueryMap() {
PetApi.FindPetsByStatusQueryParams queryParams = new PetApi.FindPetsByStatusQueryParams()
.status(null);
// List<Pet> response = api.findPetsByStatus(queryParams);
/**
* Add a new pet to the store
*
*
*/
@Test
public void addPetTest() {
Pet body = null;
// api.addPet(body);
// TODO: test validations
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*/
@Test
public void findPetsByTagsTest() {
List<String> tags = null;
// List<Pet> response = api.findPetsByTags(tags);
}
// TODO: test validations
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void findPetsByTagsTestQueryMap() {
PetApi.FindPetsByTagsQueryParams queryParams = new PetApi.FindPetsByTagsQueryParams()
.tags(null);
// List<Pet> response = api.findPetsByTags(queryParams);
/**
* Deletes a pet
*
*
*/
@Test
public void deletePetTest() {
Long petId = null;
String apiKey = null;
// api.deletePet(petId, apiKey);
// TODO: test validations
}
/**
* Find pet by ID
*
* Returns a single pet
*/
@Test
public void getPetByIdTest() {
Long petId = null;
// Pet response = api.getPetById(petId);
}
// TODO: test validations
}
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*/
@Test
public void findPetsByStatusTest() {
List<String> status = null;
// List<Pet> response = api.findPetsByStatus(status);
/**
* Update an existing pet
*
*
*/
@Test
public void updatePetTest() {
Pet body = null;
// api.updatePet(body);
// TODO: test validations
}
// TODO: test validations
}
/**
* Finds Pets by status
*
* Multiple status values can be provided with comma separated strings
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void findPetsByStatusTestQueryMap() {
PetApi.FindPetsByStatusQueryParams queryParams =
new PetApi.FindPetsByStatusQueryParams().status(null);
// List<Pet> response = api.findPetsByStatus(queryParams);
/**
* Updates a pet in the store with form data
*
*
*/
@Test
public void updatePetWithFormTest() {
Long petId = null;
String name = null;
String status = null;
// api.updatePetWithForm(petId, name, status);
// TODO: test validations
}
// TODO: test validations
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2,
* tag3 for testing.
*/
@Test
public void findPetsByTagsTest() {
List<String> tags = null;
// List<Pet> response = api.findPetsByTags(tags);
/**
* uploads an image
*
*
*/
@Test
public void uploadFileTest() {
Long petId = null;
String additionalMetadata = null;
File file = null;
// ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
// TODO: test validations
}
// TODO: test validations
}
/**
* Finds Pets by tags
*
* Multiple tags can be provided with comma separated strings. Use tag1, tag2,
* tag3 for testing.
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void findPetsByTagsTestQueryMap() {
PetApi.FindPetsByTagsQueryParams queryParams =
new PetApi.FindPetsByTagsQueryParams().tags(null);
// List<Pet> response = api.findPetsByTags(queryParams);
/**
* uploads an image (required)
*
*
*/
@Test
public void uploadFileWithRequiredFileTest() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
// ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
// TODO: test validations
}
// TODO: test validations
}
/**
* Find pet by ID
*
* Returns a single pet
*/
@Test
public void getPetByIdTest() {
Long petId = null;
// Pet response = api.getPetById(petId);
// TODO: test validations
}
/**
* Update an existing pet
*
*
*/
@Test
public void updatePetTest() {
Pet body = null;
// api.updatePet(body);
// TODO: test validations
}
/**
* Updates a pet in the store with form data
*
*
*/
@Test
public void updatePetWithFormTest() {
Long petId = null;
String name = null;
String status = null;
// api.updatePetWithForm(petId, name, status);
// TODO: test validations
}
/**
* uploads an image
*
*
*/
@Test
public void uploadFileTest() {
Long petId = null;
String additionalMetadata = null;
File file = null;
// ModelApiResponse response = api.uploadFile(petId, additionalMetadata,
// file);
// TODO: test validations
}
/**
* uploads an image (required)
*
*
*/
@Test
public void uploadFileWithRequiredFileTest() {
Long petId = null;
File requiredFile = null;
String additionalMetadata = null;
// ModelApiResponse response = api.uploadFileWithRequiredFile(petId,
// requiredFile, additionalMetadata);
// TODO: test validations
}
}

View File

@@ -15,67 +15,63 @@ import java.util.Map;
*/
public class StoreApiTest {
private StoreApi api;
private StoreApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(StoreApi.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(StoreApi.class);
}
/**
* Delete purchase order by ID
*
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
*/
@Test
public void deleteOrderTest() {
String orderId = null;
// api.deleteOrder(orderId);
/**
* Delete purchase order by ID
*
* For valid response try integer IDs with value &lt; 1000. Anything above
* 1000 or nonintegers will generate API errors
*/
@Test
public void deleteOrderTest() {
String orderId = null;
// api.deleteOrder(orderId);
// TODO: test validations
}
// TODO: test validations
}
/**
* Returns pet inventories by status
*
* Returns a map of status codes to quantities
*/
@Test
public void getInventoryTest() {
// Map<String, Integer> response = api.getInventory();
/**
* Returns pet inventories by status
*
* Returns a map of status codes to quantities
*/
@Test
public void getInventoryTest() {
// Map<String, Integer> response = api.getInventory();
// TODO: test validations
}
// TODO: test validations
}
/**
* Find purchase order by ID
*
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
*/
@Test
public void getOrderByIdTest() {
Long orderId = null;
// Order response = api.getOrderById(orderId);
/**
* Find purchase order by ID
*
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10.
* Other values will generated exceptions
*/
@Test
public void getOrderByIdTest() {
Long orderId = null;
// Order response = api.getOrderById(orderId);
// TODO: test validations
}
// TODO: test validations
}
/**
* Place an order for a pet
*
*
*/
@Test
public void placeOrderTest() {
Order body = null;
// Order response = api.placeOrder(body);
/**
* Place an order for a pet
*
*
*/
@Test
public void placeOrderTest() {
Order body = null;
// Order response = api.placeOrder(body);
// TODO: test validations
}
// TODO: test validations
}
}

View File

@@ -15,142 +15,132 @@ import java.util.Map;
*/
public class UserApiTest {
private UserApi api;
private UserApi api;
@Before
public void setup() {
api = new ApiClient().buildClient(UserApi.class);
}
@Before
public void setup() {
api = new ApiClient().buildClient(UserApi.class);
}
/**
* Create user
*
* This can only be done by the logged in user.
*/
@Test
public void createUserTest() {
User body = null;
// api.createUser(body);
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*/
@Test
public void createUsersWithArrayInputTest() {
List<User> body = null;
// api.createUsersWithArrayInput(body);
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*/
@Test
public void createUsersWithListInputTest() {
List<User> body = null;
// api.createUsersWithListInput(body);
// TODO: test validations
}
/**
* Delete user
*
* This can only be done by the logged in user.
*/
@Test
public void deleteUserTest() {
String username = null;
// api.deleteUser(username);
// TODO: test validations
}
/**
* Get user by user name
*
*
*/
@Test
public void getUserByNameTest() {
String username = null;
// User response = api.getUserByName(username);
// TODO: test validations
}
/**
* Logs user into the system
*
*
*/
@Test
public void loginUserTest() {
String username = null;
String password = null;
// String response = api.loginUser(username, password);
// TODO: test validations
}
/**
* Logs user into the system
*
*
*
* This tests the overload of the method that uses a Map for query parameters instead of
* listing them out individually.
*/
@Test
public void loginUserTestQueryMap() {
UserApi.LoginUserQueryParams queryParams = new UserApi.LoginUserQueryParams()
.username(null)
.password(null);
// String response = api.loginUser(queryParams);
/**
* Create user
*
* This can only be done by the logged in user.
*/
@Test
public void createUserTest() {
User body = null;
// api.createUser(body);
// TODO: test validations
}
/**
* Logs out current logged in user session
*
*
*/
@Test
public void logoutUserTest() {
// api.logoutUser();
}
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*/
@Test
public void createUsersWithArrayInputTest() {
List<User> body = null;
// api.createUsersWithArrayInput(body);
/**
* Updated user
*
* This can only be done by the logged in user.
*/
@Test
public void updateUserTest() {
String username = null;
User body = null;
// api.updateUser(username, body);
// TODO: test validations
}
// TODO: test validations
}
/**
* Creates list of users with given input array
*
*
*/
@Test
public void createUsersWithListInputTest() {
List<User> body = null;
// api.createUsersWithListInput(body);
// TODO: test validations
}
/**
* Delete user
*
* This can only be done by the logged in user.
*/
@Test
public void deleteUserTest() {
String username = null;
// api.deleteUser(username);
// TODO: test validations
}
/**
* Get user by user name
*
*
*/
@Test
public void getUserByNameTest() {
String username = null;
// User response = api.getUserByName(username);
// TODO: test validations
}
/**
* Logs user into the system
*
*
*/
@Test
public void loginUserTest() {
String username = null;
String password = null;
// String response = api.loginUser(username, password);
// TODO: test validations
}
/**
* Logs user into the system
*
*
*
* This tests the overload of the method that uses a Map for query parameters
* instead of listing them out individually.
*/
@Test
public void loginUserTestQueryMap() {
UserApi.LoginUserQueryParams queryParams =
new UserApi.LoginUserQueryParams().username(null).password(null);
// String response = api.loginUser(queryParams);
// TODO: test validations
}
/**
* Logs out current logged in user session
*
*
*/
@Test
public void logoutUserTest() {
// api.logoutUser();
// TODO: test validations
}
/**
* Updated user
*
* This can only be done by the logged in user.
*/
@Test
public void updateUserTest() {
String username = null;
User body = null;
// api.updateUser(username, body);
// TODO: test validations
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,27 +25,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesAnyType
*/
public class AdditionalPropertiesAnyTypeTest {
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
private final AdditionalPropertiesAnyType model =
new AdditionalPropertiesAnyType();
/**
* Model tests for AdditionalPropertiesAnyType
*/
@Test
public void testAdditionalPropertiesAnyType() {
// TODO: test AdditionalPropertiesAnyType
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesAnyType
*/
@Test
public void testAdditionalPropertiesAnyType() {
// TODO: test AdditionalPropertiesAnyType
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,27 +26,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesArray
*/
public class AdditionalPropertiesArrayTest {
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
private final AdditionalPropertiesArray model =
new AdditionalPropertiesArray();
/**
* Model tests for AdditionalPropertiesArray
*/
@Test
public void testAdditionalPropertiesArray() {
// TODO: test AdditionalPropertiesArray
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesArray
*/
@Test
public void testAdditionalPropertiesArray() {
// TODO: test AdditionalPropertiesArray
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,27 +25,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesBoolean
*/
public class AdditionalPropertiesBooleanTest {
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
private final AdditionalPropertiesBoolean model =
new AdditionalPropertiesBoolean();
/**
* Model tests for AdditionalPropertiesBoolean
*/
@Test
public void testAdditionalPropertiesBoolean() {
// TODO: test AdditionalPropertiesBoolean
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesBoolean
*/
@Test
public void testAdditionalPropertiesBoolean() {
// TODO: test AdditionalPropertiesBoolean
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,35 +26,34 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesClass
*/
public class AdditionalPropertiesClassTest {
private final AdditionalPropertiesClass model = new AdditionalPropertiesClass();
private final AdditionalPropertiesClass model =
new AdditionalPropertiesClass();
/**
* Model tests for AdditionalPropertiesClass
*/
@Test
public void testAdditionalPropertiesClass() {
// TODO: test AdditionalPropertiesClass
}
/**
* Model tests for AdditionalPropertiesClass
*/
@Test
public void testAdditionalPropertiesClass() {
// TODO: test AdditionalPropertiesClass
}
/**
* Test the property 'mapProperty'
*/
@Test
public void mapPropertyTest() {
// TODO: test mapProperty
}
/**
* Test the property 'mapOfMapProperty'
*/
@Test
public void mapOfMapPropertyTest() {
// TODO: test mapOfMapProperty
}
/**
* Test the property 'mapProperty'
*/
@Test
public void mapPropertyTest() {
// TODO: test mapProperty
}
/**
* Test the property 'mapOfMapProperty'
*/
@Test
public void mapOfMapPropertyTest() {
// TODO: test mapOfMapProperty
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,27 +25,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesInteger
*/
public class AdditionalPropertiesIntegerTest {
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
private final AdditionalPropertiesInteger model =
new AdditionalPropertiesInteger();
/**
* Model tests for AdditionalPropertiesInteger
*/
@Test
public void testAdditionalPropertiesInteger() {
// TODO: test AdditionalPropertiesInteger
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesInteger
*/
@Test
public void testAdditionalPropertiesInteger() {
// TODO: test AdditionalPropertiesInteger
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,27 +26,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesNumber
*/
public class AdditionalPropertiesNumberTest {
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
private final AdditionalPropertiesNumber model =
new AdditionalPropertiesNumber();
/**
* Model tests for AdditionalPropertiesNumber
*/
@Test
public void testAdditionalPropertiesNumber() {
// TODO: test AdditionalPropertiesNumber
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesNumber
*/
@Test
public void testAdditionalPropertiesNumber() {
// TODO: test AdditionalPropertiesNumber
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,27 +25,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesObject
*/
public class AdditionalPropertiesObjectTest {
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
private final AdditionalPropertiesObject model =
new AdditionalPropertiesObject();
/**
* Model tests for AdditionalPropertiesObject
*/
@Test
public void testAdditionalPropertiesObject() {
// TODO: test AdditionalPropertiesObject
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesObject
*/
@Test
public void testAdditionalPropertiesObject() {
// TODO: test AdditionalPropertiesObject
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,27 +25,26 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for AdditionalPropertiesString
*/
public class AdditionalPropertiesStringTest {
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
private final AdditionalPropertiesString model =
new AdditionalPropertiesString();
/**
* Model tests for AdditionalPropertiesString
*/
@Test
public void testAdditionalPropertiesString() {
// TODO: test AdditionalPropertiesString
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Model tests for AdditionalPropertiesString
*/
@Test
public void testAdditionalPropertiesString() {
// TODO: test AdditionalPropertiesString
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,35 +25,33 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Animal
*/
public class AnimalTest {
private final Animal model = new Animal();
private final Animal model = new Animal();
/**
* Model tests for Animal
*/
@Test
public void testAnimal() {
// TODO: test Animal
}
/**
* Model tests for Animal
*/
@Test
public void testAnimal() {
// TODO: test Animal
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,27 +26,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for ArrayOfArrayOfNumberOnly
*/
public class ArrayOfArrayOfNumberOnlyTest {
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
/**
* Model tests for ArrayOfArrayOfNumberOnly
*/
@Test
public void testArrayOfArrayOfNumberOnly() {
// TODO: test ArrayOfArrayOfNumberOnly
}
/**
* Test the property 'arrayArrayNumber'
*/
@Test
public void arrayArrayNumberTest() {
// TODO: test arrayArrayNumber
}
/**
* Model tests for ArrayOfArrayOfNumberOnly
*/
@Test
public void testArrayOfArrayOfNumberOnly() {
// TODO: test ArrayOfArrayOfNumberOnly
}
/**
* Test the property 'arrayArrayNumber'
*/
@Test
public void arrayArrayNumberTest() {
// TODO: test arrayArrayNumber
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,27 +26,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for ArrayOfNumberOnly
*/
public class ArrayOfNumberOnlyTest {
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
private final ArrayOfNumberOnly model = new ArrayOfNumberOnly();
/**
* Model tests for ArrayOfNumberOnly
*/
@Test
public void testArrayOfNumberOnly() {
// TODO: test ArrayOfNumberOnly
}
/**
* Test the property 'arrayNumber'
*/
@Test
public void arrayNumberTest() {
// TODO: test arrayNumber
}
/**
* Model tests for ArrayOfNumberOnly
*/
@Test
public void testArrayOfNumberOnly() {
// TODO: test ArrayOfNumberOnly
}
/**
* Test the property 'arrayNumber'
*/
@Test
public void arrayNumberTest() {
// TODO: test arrayNumber
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,43 +26,41 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for ArrayTest
*/
public class ArrayTestTest {
private final ArrayTest model = new ArrayTest();
private final ArrayTest model = new ArrayTest();
/**
* Model tests for ArrayTest
*/
@Test
public void testArrayTest() {
// TODO: test ArrayTest
}
/**
* Model tests for ArrayTest
*/
@Test
public void testArrayTest() {
// TODO: test ArrayTest
}
/**
* Test the property 'arrayOfString'
*/
@Test
public void arrayOfStringTest() {
// TODO: test arrayOfString
}
/**
* Test the property 'arrayOfString'
*/
@Test
public void arrayOfStringTest() {
// TODO: test arrayOfString
}
/**
* Test the property 'arrayArrayOfInteger'
*/
@Test
public void arrayArrayOfIntegerTest() {
// TODO: test arrayArrayOfInteger
}
/**
* Test the property 'arrayArrayOfModel'
*/
@Test
public void arrayArrayOfModelTest() {
// TODO: test arrayArrayOfModel
}
/**
* Test the property 'arrayArrayOfInteger'
*/
@Test
public void arrayArrayOfIntegerTest() {
// TODO: test arrayArrayOfInteger
}
/**
* Test the property 'arrayArrayOfModel'
*/
@Test
public void arrayArrayOfModelTest() {
// TODO: test arrayArrayOfModel
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -23,27 +24,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for BigCatAllOf
*/
public class BigCatAllOfTest {
private final BigCatAllOf model = new BigCatAllOf();
private final BigCatAllOf model = new BigCatAllOf();
/**
* Model tests for BigCatAllOf
*/
@Test
public void testBigCatAllOf() {
// TODO: test BigCatAllOf
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
/**
* Model tests for BigCatAllOf
*/
@Test
public void testBigCatAllOf() {
// TODO: test BigCatAllOf
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -25,51 +26,49 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for BigCat
*/
public class BigCatTest {
private final BigCat model = new BigCat();
private final BigCat model = new BigCat();
/**
* Model tests for BigCat
*/
@Test
public void testBigCat() {
// TODO: test BigCat
}
/**
* Model tests for BigCat
*/
@Test
public void testBigCat() {
// TODO: test BigCat
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,67 +23,65 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Capitalization
*/
public class CapitalizationTest {
private final Capitalization model = new Capitalization();
private final Capitalization model = new Capitalization();
/**
* Model tests for Capitalization
*/
@Test
public void testCapitalization() {
// TODO: test Capitalization
}
/**
* Model tests for Capitalization
*/
@Test
public void testCapitalization() {
// TODO: test Capitalization
}
/**
* Test the property 'smallCamel'
*/
@Test
public void smallCamelTest() {
// TODO: test smallCamel
}
/**
* Test the property 'smallCamel'
*/
@Test
public void smallCamelTest() {
// TODO: test smallCamel
}
/**
* Test the property 'capitalCamel'
*/
@Test
public void capitalCamelTest() {
// TODO: test capitalCamel
}
/**
* Test the property 'capitalCamel'
*/
@Test
public void capitalCamelTest() {
// TODO: test capitalCamel
}
/**
* Test the property 'smallSnake'
*/
@Test
public void smallSnakeTest() {
// TODO: test smallSnake
}
/**
* Test the property 'smallSnake'
*/
@Test
public void smallSnakeTest() {
// TODO: test smallSnake
}
/**
* Test the property 'capitalSnake'
*/
@Test
public void capitalSnakeTest() {
// TODO: test capitalSnake
}
/**
* Test the property 'capitalSnake'
*/
@Test
public void capitalSnakeTest() {
// TODO: test capitalSnake
}
/**
* Test the property 'scAETHFlowPoints'
*/
@Test
public void scAETHFlowPointsTest() {
// TODO: test scAETHFlowPoints
}
/**
* Test the property 'ATT_NAME'
*/
@Test
public void ATT_NAMETest() {
// TODO: test ATT_NAME
}
/**
* Test the property 'scAETHFlowPoints'
*/
@Test
public void scAETHFlowPointsTest() {
// TODO: test scAETHFlowPoints
}
/**
* Test the property 'ATT_NAME'
*/
@Test
public void ATT_NAMETest() {
// TODO: test ATT_NAME
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,27 +23,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for CatAllOf
*/
public class CatAllOfTest {
private final CatAllOf model = new CatAllOf();
private final CatAllOf model = new CatAllOf();
/**
* Model tests for CatAllOf
*/
@Test
public void testCatAllOf() {
// TODO: test CatAllOf
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
/**
* Model tests for CatAllOf
*/
@Test
public void testCatAllOf() {
// TODO: test CatAllOf
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -23,43 +24,41 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Cat
*/
public class CatTest {
private final Cat model = new Cat();
private final Cat model = new Cat();
/**
* Model tests for Cat
*/
@Test
public void testCat() {
// TODO: test Cat
}
/**
* Model tests for Cat
*/
@Test
public void testCat() {
// TODO: test Cat
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'declawed'
*/
@Test
public void declawedTest() {
// TODO: test declawed
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,35 +23,33 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Category
*/
public class CategoryTest {
private final Category model = new Category();
private final Category model = new Category();
/**
* Model tests for Category
*/
@Test
public void testCategory() {
// TODO: test Category
}
/**
* Model tests for Category
*/
@Test
public void testCategory() {
// TODO: test Category
}
/**
* Test the property 'id'
*/
@Test
public void idTest() {
// TODO: test id
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
/**
* Test the property 'id'
*/
@Test
public void idTest() {
// TODO: test id
}
/**
* Test the property 'name'
*/
@Test
public void nameTest() {
// TODO: test name
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,27 +23,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for ClassModel
*/
public class ClassModelTest {
private final ClassModel model = new ClassModel();
private final ClassModel model = new ClassModel();
/**
* Model tests for ClassModel
*/
@Test
public void testClassModel() {
// TODO: test ClassModel
}
/**
* Test the property 'propertyClass'
*/
@Test
public void propertyClassTest() {
// TODO: test propertyClass
}
/**
* Model tests for ClassModel
*/
@Test
public void testClassModel() {
// TODO: test ClassModel
}
/**
* Test the property 'propertyClass'
*/
@Test
public void propertyClassTest() {
// TODO: test propertyClass
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,27 +23,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Client
*/
public class ClientTest {
private final Client model = new Client();
private final Client model = new Client();
/**
* Model tests for Client
*/
@Test
public void testClient() {
// TODO: test Client
}
/**
* Test the property 'client'
*/
@Test
public void clientTest() {
// TODO: test client
}
/**
* Model tests for Client
*/
@Test
public void testClient() {
// TODO: test Client
}
/**
* Test the property 'client'
*/
@Test
public void clientTest() {
// TODO: test client
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,27 +23,25 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for DogAllOf
*/
public class DogAllOfTest {
private final DogAllOf model = new DogAllOf();
private final DogAllOf model = new DogAllOf();
/**
* Model tests for DogAllOf
*/
@Test
public void testDogAllOf() {
// TODO: test DogAllOf
}
/**
* Test the property 'breed'
*/
@Test
public void breedTest() {
// TODO: test breed
}
/**
* Model tests for DogAllOf
*/
@Test
public void testDogAllOf() {
// TODO: test DogAllOf
}
/**
* Test the property 'breed'
*/
@Test
public void breedTest() {
// TODO: test breed
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -23,43 +24,41 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for Dog
*/
public class DogTest {
private final Dog model = new Dog();
private final Dog model = new Dog();
/**
* Model tests for Dog
*/
@Test
public void testDog() {
// TODO: test Dog
}
/**
* Model tests for Dog
*/
@Test
public void testDog() {
// TODO: test Dog
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'className'
*/
@Test
public void classNameTest() {
// TODO: test className
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'breed'
*/
@Test
public void breedTest() {
// TODO: test breed
}
/**
* Test the property 'color'
*/
@Test
public void colorTest() {
// TODO: test color
}
/**
* Test the property 'breed'
*/
@Test
public void breedTest() {
// TODO: test breed
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,35 +25,33 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for EnumArrays
*/
public class EnumArraysTest {
private final EnumArrays model = new EnumArrays();
private final EnumArrays model = new EnumArrays();
/**
* Model tests for EnumArrays
*/
@Test
public void testEnumArrays() {
// TODO: test EnumArrays
}
/**
* Model tests for EnumArrays
*/
@Test
public void testEnumArrays() {
// TODO: test EnumArrays
}
/**
* Test the property 'justSymbol'
*/
@Test
public void justSymbolTest() {
// TODO: test justSymbol
}
/**
* Test the property 'arrayEnum'
*/
@Test
public void arrayEnumTest() {
// TODO: test arrayEnum
}
/**
* Test the property 'justSymbol'
*/
@Test
public void justSymbolTest() {
// TODO: test justSymbol
}
/**
* Test the property 'arrayEnum'
*/
@Test
public void arrayEnumTest() {
// TODO: test arrayEnum
}
}

View File

@@ -1,33 +1,32 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for EnumClass
*/
public class EnumClassTest {
/**
* Model tests for EnumClass
*/
@Test
public void testEnumClass() {
// TODO: test EnumClass
}
/**
* Model tests for EnumClass
*/
@Test
public void testEnumClass() {
// TODO: test EnumClass
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -23,59 +24,57 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for EnumTest
*/
public class EnumTestTest {
private final EnumTest model = new EnumTest();
private final EnumTest model = new EnumTest();
/**
* Model tests for EnumTest
*/
@Test
public void testEnumTest() {
// TODO: test EnumTest
}
/**
* Model tests for EnumTest
*/
@Test
public void testEnumTest() {
// TODO: test EnumTest
}
/**
* Test the property 'enumString'
*/
@Test
public void enumStringTest() {
// TODO: test enumString
}
/**
* Test the property 'enumString'
*/
@Test
public void enumStringTest() {
// TODO: test enumString
}
/**
* Test the property 'enumStringRequired'
*/
@Test
public void enumStringRequiredTest() {
// TODO: test enumStringRequired
}
/**
* Test the property 'enumStringRequired'
*/
@Test
public void enumStringRequiredTest() {
// TODO: test enumStringRequired
}
/**
* Test the property 'enumInteger'
*/
@Test
public void enumIntegerTest() {
// TODO: test enumInteger
}
/**
* Test the property 'enumInteger'
*/
@Test
public void enumIntegerTest() {
// TODO: test enumInteger
}
/**
* Test the property 'enumNumber'
*/
@Test
public void enumNumberTest() {
// TODO: test enumNumber
}
/**
* Test the property 'outerEnum'
*/
@Test
public void outerEnumTest() {
// TODO: test outerEnum
}
/**
* Test the property 'enumNumber'
*/
@Test
public void enumNumberTest() {
// TODO: test enumNumber
}
/**
* Test the property 'outerEnum'
*/
@Test
public void outerEnumTest() {
// TODO: test outerEnum
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,35 +25,33 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for FileSchemaTestClass
*/
public class FileSchemaTestClassTest {
private final FileSchemaTestClass model = new FileSchemaTestClass();
private final FileSchemaTestClass model = new FileSchemaTestClass();
/**
* Model tests for FileSchemaTestClass
*/
@Test
public void testFileSchemaTestClass() {
// TODO: test FileSchemaTestClass
}
/**
* Model tests for FileSchemaTestClass
*/
@Test
public void testFileSchemaTestClass() {
// TODO: test FileSchemaTestClass
}
/**
* Test the property 'file'
*/
@Test
public void fileTest() {
// TODO: test file
}
/**
* Test the property 'files'
*/
@Test
public void filesTest() {
// TODO: test files
}
/**
* Test the property 'file'
*/
@Test
public void fileTest() {
// TODO: test file
}
/**
* Test the property 'files'
*/
@Test
public void filesTest() {
// TODO: test files
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -27,123 +28,121 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for FormatTest
*/
public class FormatTestTest {
private final FormatTest model = new FormatTest();
private final FormatTest model = new FormatTest();
/**
* Model tests for FormatTest
*/
@Test
public void testFormatTest() {
// TODO: test FormatTest
}
/**
* Model tests for FormatTest
*/
@Test
public void testFormatTest() {
// TODO: test FormatTest
}
/**
* Test the property 'integer'
*/
@Test
public void integerTest() {
// TODO: test integer
}
/**
* Test the property 'integer'
*/
@Test
public void integerTest() {
// TODO: test integer
}
/**
* Test the property 'int32'
*/
@Test
public void int32Test() {
// TODO: test int32
}
/**
* Test the property 'int32'
*/
@Test
public void int32Test() {
// TODO: test int32
}
/**
* Test the property 'int64'
*/
@Test
public void int64Test() {
// TODO: test int64
}
/**
* Test the property 'int64'
*/
@Test
public void int64Test() {
// TODO: test int64
}
/**
* Test the property 'number'
*/
@Test
public void numberTest() {
// TODO: test number
}
/**
* Test the property 'number'
*/
@Test
public void numberTest() {
// TODO: test number
}
/**
* Test the property '_float'
*/
@Test
public void _floatTest() {
// TODO: test _float
}
/**
* Test the property '_float'
*/
@Test
public void _floatTest() {
// TODO: test _float
}
/**
* Test the property '_double'
*/
@Test
public void _doubleTest() {
// TODO: test _double
}
/**
* Test the property '_double'
*/
@Test
public void _doubleTest() {
// TODO: test _double
}
/**
* Test the property 'string'
*/
@Test
public void stringTest() {
// TODO: test string
}
/**
* Test the property 'string'
*/
@Test
public void stringTest() {
// TODO: test string
}
/**
* Test the property '_byte'
*/
@Test
public void _byteTest() {
// TODO: test _byte
}
/**
* Test the property '_byte'
*/
@Test
public void _byteTest() {
// TODO: test _byte
}
/**
* Test the property 'binary'
*/
@Test
public void binaryTest() {
// TODO: test binary
}
/**
* Test the property 'binary'
*/
@Test
public void binaryTest() {
// TODO: test binary
}
/**
* Test the property 'date'
*/
@Test
public void dateTest() {
// TODO: test date
}
/**
* Test the property 'date'
*/
@Test
public void dateTest() {
// TODO: test date
}
/**
* Test the property 'dateTime'
*/
@Test
public void dateTimeTest() {
// TODO: test dateTime
}
/**
* Test the property 'dateTime'
*/
@Test
public void dateTimeTest() {
// TODO: test dateTime
}
/**
* Test the property 'uuid'
*/
@Test
public void uuidTest() {
// TODO: test uuid
}
/**
* Test the property 'password'
*/
@Test
public void passwordTest() {
// TODO: test password
}
/**
* Test the property 'uuid'
*/
@Test
public void uuidTest() {
// TODO: test uuid
}
/**
* Test the property 'password'
*/
@Test
public void passwordTest() {
// TODO: test password
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,35 +23,33 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for HasOnlyReadOnly
*/
public class HasOnlyReadOnlyTest {
private final HasOnlyReadOnly model = new HasOnlyReadOnly();
private final HasOnlyReadOnly model = new HasOnlyReadOnly();
/**
* Model tests for HasOnlyReadOnly
*/
@Test
public void testHasOnlyReadOnly() {
// TODO: test HasOnlyReadOnly
}
/**
* Model tests for HasOnlyReadOnly
*/
@Test
public void testHasOnlyReadOnly() {
// TODO: test HasOnlyReadOnly
}
/**
* Test the property 'bar'
*/
@Test
public void barTest() {
// TODO: test bar
}
/**
* Test the property 'foo'
*/
@Test
public void fooTest() {
// TODO: test foo
}
/**
* Test the property 'bar'
*/
@Test
public void barTest() {
// TODO: test bar
}
/**
* Test the property 'foo'
*/
@Test
public void fooTest() {
// TODO: test foo
}
}

View File

@@ -1,16 +1,17 @@
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints,
* models. Please do not use this for any other purpose. Special characters: \"
* \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
package org.openapitools.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -25,51 +26,49 @@ import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for MapTest
*/
public class MapTestTest {
private final MapTest model = new MapTest();
private final MapTest model = new MapTest();
/**
* Model tests for MapTest
*/
@Test
public void testMapTest() {
// TODO: test MapTest
}
/**
* Model tests for MapTest
*/
@Test
public void testMapTest() {
// TODO: test MapTest
}
/**
* Test the property 'mapMapOfString'
*/
@Test
public void mapMapOfStringTest() {
// TODO: test mapMapOfString
}
/**
* Test the property 'mapMapOfString'
*/
@Test
public void mapMapOfStringTest() {
// TODO: test mapMapOfString
}
/**
* Test the property 'mapOfEnumString'
*/
@Test
public void mapOfEnumStringTest() {
// TODO: test mapOfEnumString
}
/**
* Test the property 'mapOfEnumString'
*/
@Test
public void mapOfEnumStringTest() {
// TODO: test mapOfEnumString
}
/**
* Test the property 'directMap'
*/
@Test
public void directMapTest() {
// TODO: test directMap
}
/**
* Test the property 'indirectMap'
*/
@Test
public void indirectMapTest() {
// TODO: test indirectMap
}
/**
* Test the property 'directMap'
*/
@Test
public void directMapTest() {
// TODO: test directMap
}
/**
* Test the property 'indirectMap'
*/
@Test
public void indirectMapTest() {
// TODO: test indirectMap
}
}

Some files were not shown because too many files have changed in this diff Show More