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

@@ -674,16 +674,16 @@ public class FakeApi {
* @see #_doubleForm None (required)
* @see #patternWithoutDelimiterForm None (required)
* @see #_byteForm None (required)
* @see #integerForm None (optional, default to null)
* @see #int32Form None (optional, default to null)
* @see #int64Form None (optional, default to null)
* @see #_floatForm None (optional, default to null)
* @see #stringForm None (optional, default to null)
* @see #binaryMultiPart None (optional, default to null)
* @see #dateForm None (optional, default to null)
* @see #dateTimeForm None (optional, default to null)
* @see #passwordForm None (optional, default to null)
* @see #paramCallbackForm None (optional, default to null)
* @see #integerForm None (optional)
* @see #int32Form None (optional)
* @see #int64Form None (optional)
* @see #_floatForm None (optional)
* @see #stringForm None (optional)
* @see #binaryMultiPart None (optional)
* @see #dateForm None (optional)
* @see #dateTimeForm None (optional)
* @see #passwordForm None (optional)
* @see #paramCallbackForm None (optional)
*/
public static class TestEndpointParametersOper {
@@ -713,7 +713,7 @@ public class FakeApi {
public static final String INTEGER_FORM = "integer";
/**
* @param integer (Integer) None (optional, default to null)
* @param integer (Integer) None (optional)
* @return operation
*/
public TestEndpointParametersOper integerForm(Object... integer) {
@@ -724,7 +724,7 @@ public class FakeApi {
public static final String INT32_FORM = "int32";
/**
* @param int32 (Integer) None (optional, default to null)
* @param int32 (Integer) None (optional)
* @return operation
*/
public TestEndpointParametersOper int32Form(Object... int32) {
@@ -735,7 +735,7 @@ public class FakeApi {
public static final String INT64_FORM = "int64";
/**
* @param int64 (Long) None (optional, default to null)
* @param int64 (Long) None (optional)
* @return operation
*/
public TestEndpointParametersOper int64Form(Object... int64) {
@@ -757,7 +757,7 @@ public class FakeApi {
public static final String _FLOAT_FORM = "float";
/**
* @param _float (Float) None (optional, default to null)
* @param _float (Float) None (optional)
* @return operation
*/
public TestEndpointParametersOper _floatForm(Object... _float) {
@@ -779,7 +779,7 @@ public class FakeApi {
public static final String STRING_FORM = "string";
/**
* @param string (String) None (optional, default to null)
* @param string (String) None (optional)
* @return operation
*/
public TestEndpointParametersOper stringForm(Object... string) {
@@ -812,7 +812,7 @@ public class FakeApi {
public static final String DATE_FORM = "date";
/**
* @param date (LocalDate) None (optional, default to null)
* @param date (LocalDate) None (optional)
* @return operation
*/
public TestEndpointParametersOper dateForm(Object... date) {
@@ -823,7 +823,7 @@ public class FakeApi {
public static final String DATE_TIME_FORM = "dateTime";
/**
* @param dateTime (OffsetDateTime) None (optional, default to null)
* @param dateTime (OffsetDateTime) None (optional)
* @return operation
*/
public TestEndpointParametersOper dateTimeForm(Object... dateTime) {
@@ -834,7 +834,7 @@ public class FakeApi {
public static final String PASSWORD_FORM = "password";
/**
* @param password (String) None (optional, default to null)
* @param password (String) None (optional)
* @return operation
*/
public TestEndpointParametersOper passwordForm(Object... password) {
@@ -845,7 +845,7 @@ public class FakeApi {
public static final String PARAM_CALLBACK_FORM = "callback";
/**
* @param paramCallback (String) None (optional, default to null)
* @param paramCallback (String) None (optional)
* @return operation
*/
public TestEndpointParametersOper paramCallbackForm(Object... paramCallback) {
@@ -856,7 +856,7 @@ public class FakeApi {
/**
* It will assume that the control name is file and the <content-type> is <application/octet-stream>
* @see #reqSpec for customise
* @param binary (File) None (optional, default to null)
* @param binary (File) None (optional)
* @return operation
*/
public TestEndpointParametersOper binaryMultiPart(File binary) {
@@ -888,9 +888,9 @@ public class FakeApi {
* To test enum parameters
* To test enum parameters
*
* @see #enumHeaderStringArrayHeader Header parameter enum test (string array) (optional)
* @see #enumHeaderStringArrayHeader Header parameter enum test (string array) (optional, default to new ArrayList<String>())
* @see #enumHeaderStringHeader Header parameter enum test (string) (optional, default to -efg)
* @see #enumQueryStringArrayQuery Query parameter enum test (string array) (optional)
* @see #enumQueryStringArrayQuery Query parameter enum test (string array) (optional, default to new ArrayList<String>())
* @see #enumQueryStringQuery Query parameter enum test (string) (optional, default to -efg)
* @see #enumQueryIntegerQuery Query parameter enum test (double) (optional)
* @see #enumQueryDoubleQuery Query parameter enum test (double) (optional)
@@ -925,7 +925,7 @@ public class FakeApi {
public static final String ENUM_HEADER_STRING_ARRAY_HEADER = "enum_header_string_array";
/**
* @param enumHeaderStringArray (List<String>) Header parameter enum test (string array) (optional)
* @param enumHeaderStringArray (List<String>) Header parameter enum test (string array) (optional, default to new ArrayList<String>())
* @return operation
*/
public TestEnumParametersOper enumHeaderStringArrayHeader(String enumHeaderStringArray) {
@@ -947,7 +947,7 @@ public class FakeApi {
public static final String ENUM_QUERY_STRING_ARRAY_QUERY = "enum_query_string_array";
/**
* @param enumQueryStringArray (List<String>) Query parameter enum test (string array) (optional)
* @param enumQueryStringArray (List<String>) Query parameter enum test (string array) (optional, default to new ArrayList<String>())
* @return operation
*/
public TestEnumParametersOper enumQueryStringArrayQuery(Object... enumQueryStringArray) {

View File

@@ -575,8 +575,8 @@ public class PetApi {
*
*
* @see #petIdPath ID of pet that needs to be updated (required)
* @see #nameForm Updated name of the pet (optional, default to null)
* @see #statusForm Updated status of the pet (optional, default to null)
* @see #nameForm Updated name of the pet (optional)
* @see #statusForm Updated status of the pet (optional)
*/
public static class UpdatePetWithFormOper {
@@ -617,7 +617,7 @@ public class PetApi {
public static final String NAME_FORM = "name";
/**
* @param name (String) Updated name of the pet (optional, default to null)
* @param name (String) Updated name of the pet (optional)
* @return operation
*/
public UpdatePetWithFormOper nameForm(Object... name) {
@@ -628,7 +628,7 @@ public class PetApi {
public static final String STATUS_FORM = "status";
/**
* @param status (String) Updated status of the pet (optional, default to null)
* @param status (String) Updated status of the pet (optional)
* @return operation
*/
public UpdatePetWithFormOper statusForm(Object... status) {
@@ -661,8 +661,8 @@ public class PetApi {
*
*
* @see #petIdPath ID of pet to update (required)
* @see #additionalMetadataForm Additional data to pass to server (optional, default to null)
* @see #fileMultiPart file to upload (optional, default to null)
* @see #additionalMetadataForm Additional data to pass to server (optional)
* @see #fileMultiPart file to upload (optional)
* return ModelApiResponse
*/
public static class UploadFileOper {
@@ -714,7 +714,7 @@ public class PetApi {
public static final String ADDITIONAL_METADATA_FORM = "additionalMetadata";
/**
* @param additionalMetadata (String) Additional data to pass to server (optional, default to null)
* @param additionalMetadata (String) Additional data to pass to server (optional)
* @return operation
*/
public UploadFileOper additionalMetadataForm(Object... additionalMetadata) {
@@ -725,7 +725,7 @@ public class PetApi {
/**
* It will assume that the control name is file and the <content-type> is <application/octet-stream>
* @see #reqSpec for customise
* @param file (File) file to upload (optional, default to null)
* @param file (File) file to upload (optional)
* @return operation
*/
public UploadFileOper fileMultiPart(File file) {
@@ -759,7 +759,7 @@ public class PetApi {
*
* @see #petIdPath ID of pet to update (required)
* @see #requiredFileMultiPart file to upload (required)
* @see #additionalMetadataForm Additional data to pass to server (optional, default to null)
* @see #additionalMetadataForm Additional data to pass to server (optional)
* return ModelApiResponse
*/
public static class UploadFileWithRequiredFileOper {
@@ -811,7 +811,7 @@ public class PetApi {
public static final String ADDITIONAL_METADATA_FORM = "additionalMetadata";
/**
* @param additionalMetadata (String) Additional data to pass to server (optional, default to null)
* @param additionalMetadata (String) Additional data to pass to server (optional)
* @return operation
*/
public UploadFileWithRequiredFileOper additionalMetadataForm(Object... additionalMetadata) {

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;