Refactor default and example values in Java generators (#1045)

* fix default, example for java okhttp

* update java feign samples

* update samples, doc

* add new doc for dart-jaguar

* update model template

* update jaxrs spec model

* update resteasy sample

* update java samples
This commit is contained in:
William Cheng
2018-10-07 03:56:16 +08:00
committed by GitHub
parent a1d242595e
commit 999f472e4b
1233 changed files with 4917 additions and 4909 deletions

View File

@@ -899,16 +899,16 @@ public class FakeApi {
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional, default to null)
* @param int32 None (optional, default to null)
* @param int64 None (optional, default to null)
* @param _float None (optional, default to null)
* @param string None (optional, default to null)
* @param binary None (optional, default to null)
* @param date None (optional, default to null)
* @param dateTime None (optional, default to null)
* @param password None (optional, default to null)
* @param paramCallback None (optional, default to null)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
@@ -1046,16 +1046,16 @@ public class FakeApi {
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional, default to null)
* @param int32 None (optional, default to null)
* @param int64 None (optional, default to null)
* @param _float None (optional, default to null)
* @param string None (optional, default to null)
* @param binary None (optional, default to null)
* @param date None (optional, default to null)
* @param dateTime None (optional, default to null)
* @param password None (optional, default to null)
* @param paramCallback None (optional, default to null)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
@@ -1069,16 +1069,16 @@ public class FakeApi {
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional, default to null)
* @param int32 None (optional, default to null)
* @param int64 None (optional, default to null)
* @param _float None (optional, default to null)
* @param string None (optional, default to null)
* @param binary None (optional, default to null)
* @param date None (optional, default to null)
* @param dateTime None (optional, default to null)
* @param password None (optional, default to null)
* @param paramCallback None (optional, default to null)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1094,16 +1094,16 @@ public class FakeApi {
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
* @param _byte None (required)
* @param integer None (optional, default to null)
* @param int32 None (optional, default to null)
* @param int64 None (optional, default to null)
* @param _float None (optional, default to null)
* @param string None (optional, default to null)
* @param binary None (optional, default to null)
* @param date None (optional, default to null)
* @param dateTime None (optional, default to null)
* @param password None (optional, default to null)
* @param paramCallback None (optional, default to null)
* @param integer None (optional)
* @param int32 None (optional)
* @param int64 None (optional)
* @param _float None (optional)
* @param string None (optional)
* @param binary None (optional)
* @param date None (optional)
* @param dateTime None (optional)
* @param password None (optional)
* @param paramCallback None (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1141,7 +1141,7 @@ public class FakeApi {
* @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, default to $)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
@@ -1238,7 +1238,7 @@ public class FakeApi {
* @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, default to $)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1255,7 +1255,7 @@ public class FakeApi {
* @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, default to $)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -1274,7 +1274,7 @@ public class FakeApi {
* @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, default to $)
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @param callback The callback to be executed when the API call finishes
* @return The request call

View File

@@ -800,8 +800,8 @@ public class PetApi {
/**
* Build call for updatePetWithForm
* @param petId ID of pet that needs to be updated (required)
* @param name Updated name of the pet (optional, default to null)
* @param status Updated status of the pet (optional, default to null)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
@@ -874,8 +874,8 @@ public class PetApi {
* 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, default to null)
* @param status Updated status of the pet (optional, default to null)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
@@ -886,8 +886,8 @@ public class PetApi {
* 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, default to null)
* @param status Updated status of the pet (optional, default to null)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -900,8 +900,8 @@ public class PetApi {
* Updates a pet in the store with form data (asynchronously)
*
* @param petId ID of pet that needs to be updated (required)
* @param name Updated name of the pet (optional, default to null)
* @param status Updated status of the pet (optional, default to null)
* @param name Updated name of the pet (optional)
* @param status Updated status of the pet (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -934,8 +934,8 @@ public class PetApi {
/**
* Build call for uploadFile
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param file file to upload (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
@@ -1008,8 +1008,8 @@ public class PetApi {
* uploads an image
*
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param file file to upload (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @return ModelApiResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1022,8 +1022,8 @@ public class PetApi {
* uploads an image
*
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param file file to upload (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @return ApiResponse<ModelApiResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1037,8 +1037,8 @@ public class PetApi {
* uploads an image (asynchronously)
*
* @param petId ID of pet to update (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param file file to upload (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param file file to upload (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -1073,7 +1073,7 @@ public class PetApi {
* Build call for uploadFileWithRequiredFile
* @param petId ID of pet to update (required)
* @param requiredFile file to upload (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
@@ -1152,7 +1152,7 @@ public class PetApi {
*
* @param petId ID of pet to update (required)
* @param requiredFile file to upload (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @return ModelApiResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1166,7 +1166,7 @@ public class PetApi {
*
* @param petId ID of pet to update (required)
* @param requiredFile file to upload (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @return ApiResponse<ModelApiResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
@@ -1181,7 +1181,7 @@ public class PetApi {
*
* @param petId ID of pet to update (required)
* @param requiredFile file to upload (required)
* @param additionalMetadata Additional data to pass to server (optional, default to null)
* @param additionalMetadata Additional data to pass to server (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object

View File

@@ -32,7 +32,7 @@ import java.io.IOException;
public class Animal {
public static final String SERIALIZED_NAME_CLASS_NAME = "className";
@SerializedName(SERIALIZED_NAME_CLASS_NAME)
private String className = null;
private String className;
public static final String SERIALIZED_NAME_COLOR = "color";
@SerializedName(SERIALIZED_NAME_COLOR)

View File

@@ -31,27 +31,27 @@ import java.io.IOException;
public class Capitalization {
public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel";
@SerializedName(SERIALIZED_NAME_SMALL_CAMEL)
private String smallCamel = null;
private String smallCamel;
public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel";
@SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL)
private String capitalCamel = null;
private String capitalCamel;
public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake";
@SerializedName(SERIALIZED_NAME_SMALL_SNAKE)
private String smallSnake = null;
private String smallSnake;
public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake";
@SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE)
private String capitalSnake = null;
private String capitalSnake;
public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
@SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS)
private String scAETHFlowPoints = null;
private String scAETHFlowPoints;
public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME";
@SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E)
private String ATT_NAME = null;
private String ATT_NAME;
public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel;

View File

@@ -32,7 +32,7 @@ import org.openapitools.client.model.Animal;
public class Cat extends Animal {
public static final String SERIALIZED_NAME_DECLAWED = "declawed";
@SerializedName(SERIALIZED_NAME_DECLAWED)
private Boolean declawed = null;
private Boolean declawed;
public Cat declawed(Boolean declawed) {
this.declawed = declawed;

View File

@@ -31,11 +31,11 @@ import java.io.IOException;
public class Category {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id = null;
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name = null;
private String name;
public Category id(Long id) {
this.id = id;

View File

@@ -32,7 +32,7 @@ import java.io.IOException;
public class ClassModel {
public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class";
@SerializedName(SERIALIZED_NAME_PROPERTY_CLASS)
private String propertyClass = null;
private String propertyClass;
public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass;

View File

@@ -31,7 +31,7 @@ import java.io.IOException;
public class Client {
public static final String SERIALIZED_NAME_CLIENT = "client";
@SerializedName(SERIALIZED_NAME_CLIENT)
private String client = null;
private String client;
public Client client(String client) {
this.client = client;

View File

@@ -32,7 +32,7 @@ import org.openapitools.client.model.Animal;
public class Dog extends Animal {
public static final String SERIALIZED_NAME_BREED = "breed";
@SerializedName(SERIALIZED_NAME_BREED)
private String breed = null;
private String breed;
public Dog breed(String breed) {
this.breed = breed;

View File

@@ -80,7 +80,7 @@ public class EnumArrays {
public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol";
@SerializedName(SERIALIZED_NAME_JUST_SYMBOL)
private JustSymbolEnum justSymbol = null;
private JustSymbolEnum justSymbol;
/**
* Gets or Sets arrayEnum

View File

@@ -81,7 +81,7 @@ public class EnumTest {
public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string";
@SerializedName(SERIALIZED_NAME_ENUM_STRING)
private EnumStringEnum enumString = null;
private EnumStringEnum enumString;
/**
* Gets or Sets enumStringRequired
@@ -134,7 +134,7 @@ public class EnumTest {
public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required";
@SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED)
private EnumStringRequiredEnum enumStringRequired = null;
private EnumStringRequiredEnum enumStringRequired;
/**
* Gets or Sets enumInteger
@@ -185,7 +185,7 @@ public class EnumTest {
public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer";
@SerializedName(SERIALIZED_NAME_ENUM_INTEGER)
private EnumIntegerEnum enumInteger = null;
private EnumIntegerEnum enumInteger;
/**
* Gets or Sets enumNumber
@@ -236,7 +236,7 @@ public class EnumTest {
public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number";
@SerializedName(SERIALIZED_NAME_ENUM_NUMBER)
private EnumNumberEnum enumNumber = null;
private EnumNumberEnum enumNumber;
public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum";
@SerializedName(SERIALIZED_NAME_OUTER_ENUM)

View File

@@ -36,55 +36,55 @@ import org.threeten.bp.OffsetDateTime;
public class FormatTest {
public static final String SERIALIZED_NAME_INTEGER = "integer";
@SerializedName(SERIALIZED_NAME_INTEGER)
private Integer integer = null;
private Integer integer;
public static final String SERIALIZED_NAME_INT32 = "int32";
@SerializedName(SERIALIZED_NAME_INT32)
private Integer int32 = null;
private Integer int32;
public static final String SERIALIZED_NAME_INT64 = "int64";
@SerializedName(SERIALIZED_NAME_INT64)
private Long int64 = null;
private Long int64;
public static final String SERIALIZED_NAME_NUMBER = "number";
@SerializedName(SERIALIZED_NAME_NUMBER)
private BigDecimal number = null;
private BigDecimal number;
public static final String SERIALIZED_NAME_FLOAT = "float";
@SerializedName(SERIALIZED_NAME_FLOAT)
private Float _float = null;
private Float _float;
public static final String SERIALIZED_NAME_DOUBLE = "double";
@SerializedName(SERIALIZED_NAME_DOUBLE)
private Double _double = null;
private Double _double;
public static final String SERIALIZED_NAME_STRING = "string";
@SerializedName(SERIALIZED_NAME_STRING)
private String string = null;
private String string;
public static final String SERIALIZED_NAME_BYTE = "byte";
@SerializedName(SERIALIZED_NAME_BYTE)
private byte[] _byte = null;
private byte[] _byte;
public static final String SERIALIZED_NAME_BINARY = "binary";
@SerializedName(SERIALIZED_NAME_BINARY)
private File binary = null;
private File binary;
public static final String SERIALIZED_NAME_DATE = "date";
@SerializedName(SERIALIZED_NAME_DATE)
private LocalDate date = null;
private LocalDate date;
public static final String SERIALIZED_NAME_DATE_TIME = "dateTime";
@SerializedName(SERIALIZED_NAME_DATE_TIME)
private OffsetDateTime dateTime = null;
private OffsetDateTime dateTime;
public static final String SERIALIZED_NAME_UUID = "uuid";
@SerializedName(SERIALIZED_NAME_UUID)
private UUID uuid = null;
private UUID uuid;
public static final String SERIALIZED_NAME_PASSWORD = "password";
@SerializedName(SERIALIZED_NAME_PASSWORD)
private String password = null;
private String password;
public FormatTest integer(Integer integer) {
this.integer = integer;

View File

@@ -31,11 +31,11 @@ import java.io.IOException;
public class HasOnlyReadOnly {
public static final String SERIALIZED_NAME_BAR = "bar";
@SerializedName(SERIALIZED_NAME_BAR)
private String bar = null;
private String bar;
public static final String SERIALIZED_NAME_FOO = "foo";
@SerializedName(SERIALIZED_NAME_FOO)
private String foo = null;
private String foo;
/**
* Get bar

View File

@@ -37,11 +37,11 @@ import org.threeten.bp.OffsetDateTime;
public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String SERIALIZED_NAME_UUID = "uuid";
@SerializedName(SERIALIZED_NAME_UUID)
private UUID uuid = null;
private UUID uuid;
public static final String SERIALIZED_NAME_DATE_TIME = "dateTime";
@SerializedName(SERIALIZED_NAME_DATE_TIME)
private OffsetDateTime dateTime = null;
private OffsetDateTime dateTime;
public static final String SERIALIZED_NAME_MAP = "map";
@SerializedName(SERIALIZED_NAME_MAP)

View File

@@ -32,11 +32,11 @@ import java.io.IOException;
public class Model200Response {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private Integer name = null;
private Integer name;
public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class";
@SerializedName(SERIALIZED_NAME_PROPERTY_CLASS)
private String propertyClass = null;
private String propertyClass;
public Model200Response name(Integer name) {
this.name = name;

View File

@@ -31,15 +31,15 @@ import java.io.IOException;
public class ModelApiResponse {
public static final String SERIALIZED_NAME_CODE = "code";
@SerializedName(SERIALIZED_NAME_CODE)
private Integer code = null;
private Integer code;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type = null;
private String type;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message = null;
private String message;
public ModelApiResponse code(Integer code) {
this.code = code;

View File

@@ -32,7 +32,7 @@ import java.io.IOException;
public class ModelReturn {
public static final String SERIALIZED_NAME_RETURN = "return";
@SerializedName(SERIALIZED_NAME_RETURN)
private Integer _return = null;
private Integer _return;
public ModelReturn _return(Integer _return) {
this._return = _return;

View File

@@ -32,19 +32,19 @@ import java.io.IOException;
public class Name {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private Integer name = null;
private Integer name;
public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case";
@SerializedName(SERIALIZED_NAME_SNAKE_CASE)
private Integer snakeCase = null;
private Integer snakeCase;
public static final String SERIALIZED_NAME_PROPERTY = "property";
@SerializedName(SERIALIZED_NAME_PROPERTY)
private String property = null;
private String property;
public static final String SERIALIZED_NAME_123NUMBER = "123Number";
@SerializedName(SERIALIZED_NAME_123NUMBER)
private Integer _123number = null;
private Integer _123number;
public Name name(Integer name) {
this.name = name;

View File

@@ -32,7 +32,7 @@ import java.math.BigDecimal;
public class NumberOnly {
public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber";
@SerializedName(SERIALIZED_NAME_JUST_NUMBER)
private BigDecimal justNumber = null;
private BigDecimal justNumber;
public NumberOnly justNumber(BigDecimal justNumber) {
this.justNumber = justNumber;

View File

@@ -32,19 +32,19 @@ import org.threeten.bp.OffsetDateTime;
public class Order {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id = null;
private Long id;
public static final String SERIALIZED_NAME_PET_ID = "petId";
@SerializedName(SERIALIZED_NAME_PET_ID)
private Long petId = null;
private Long petId;
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
@SerializedName(SERIALIZED_NAME_QUANTITY)
private Integer quantity = null;
private Integer quantity;
public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate";
@SerializedName(SERIALIZED_NAME_SHIP_DATE)
private OffsetDateTime shipDate = null;
private OffsetDateTime shipDate;
/**
* Order Status
@@ -97,7 +97,7 @@ public class Order {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private StatusEnum status = null;
private StatusEnum status;
public static final String SERIALIZED_NAME_COMPLETE = "complete";
@SerializedName(SERIALIZED_NAME_COMPLETE)

View File

@@ -32,15 +32,15 @@ import java.math.BigDecimal;
public class OuterComposite {
public static final String SERIALIZED_NAME_MY_NUMBER = "my_number";
@SerializedName(SERIALIZED_NAME_MY_NUMBER)
private BigDecimal myNumber = null;
private BigDecimal myNumber;
public static final String SERIALIZED_NAME_MY_STRING = "my_string";
@SerializedName(SERIALIZED_NAME_MY_STRING)
private String myString = null;
private String myString;
public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean";
@SerializedName(SERIALIZED_NAME_MY_BOOLEAN)
private Boolean myBoolean = null;
private Boolean myBoolean;
public OuterComposite myNumber(BigDecimal myNumber) {
this.myNumber = myNumber;

View File

@@ -35,7 +35,7 @@ import org.openapitools.client.model.Tag;
public class Pet {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id = null;
private Long id;
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
@@ -43,7 +43,7 @@ public class Pet {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name = null;
private String name;
public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls";
@SerializedName(SERIALIZED_NAME_PHOTO_URLS)
@@ -104,7 +104,7 @@ public class Pet {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private StatusEnum status = null;
private StatusEnum status;
public Pet id(Long id) {
this.id = id;

View File

@@ -31,11 +31,11 @@ import java.io.IOException;
public class ReadOnlyFirst {
public static final String SERIALIZED_NAME_BAR = "bar";
@SerializedName(SERIALIZED_NAME_BAR)
private String bar = null;
private String bar;
public static final String SERIALIZED_NAME_BAZ = "baz";
@SerializedName(SERIALIZED_NAME_BAZ)
private String baz = null;
private String baz;
/**
* Get bar

View File

@@ -31,7 +31,7 @@ import java.io.IOException;
public class SpecialModelName {
public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
@SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME)
private Long $specialPropertyName = null;
private Long $specialPropertyName;
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;

View File

@@ -31,11 +31,11 @@ import java.io.IOException;
public class Tag {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id = null;
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name = null;
private String name;
public Tag id(Long id) {
this.id = id;

View File

@@ -31,35 +31,35 @@ import java.io.IOException;
public class User {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id = null;
private Long id;
public static final String SERIALIZED_NAME_USERNAME = "username";
@SerializedName(SERIALIZED_NAME_USERNAME)
private String username = null;
private String username;
public static final String SERIALIZED_NAME_FIRST_NAME = "firstName";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
private String firstName = null;
private String firstName;
public static final String SERIALIZED_NAME_LAST_NAME = "lastName";
@SerializedName(SERIALIZED_NAME_LAST_NAME)
private String lastName = null;
private String lastName;
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email = null;
private String email;
public static final String SERIALIZED_NAME_PASSWORD = "password";
@SerializedName(SERIALIZED_NAME_PASSWORD)
private String password = null;
private String password;
public static final String SERIALIZED_NAME_PHONE = "phone";
@SerializedName(SERIALIZED_NAME_PHONE)
private String phone = null;
private String phone;
public static final String SERIALIZED_NAME_USER_STATUS = "userStatus";
@SerializedName(SERIALIZED_NAME_USER_STATUS)
private Integer userStatus = null;
private Integer userStatus;
public User id(Long id) {
this.id = id;