Skip to content

Commit 4b53670

Browse files
gracekarinafrantuma
authored andcommitted
fixing Boolean property for spring #9203
1 parent 1bf0b1d commit 4b53670

File tree

30 files changed

+280
-280
lines changed

30 files changed

+280
-280
lines changed

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Category.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public Category id(Long id) {
3131
* @return id
3232
**/
3333
@ApiModelProperty(value = "")
34-
35-
public Long getId() {
34+
35+
public Long getId() {
3636
return id;
3737
}
3838

@@ -50,8 +50,8 @@ public Category name(String name) {
5050
* @return name
5151
**/
5252
@ApiModelProperty(value = "")
53-
54-
public String getName() {
53+
54+
public String getName() {
5555
return name;
5656
}
5757

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/ModelApiResponse.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public ModelApiResponse code(Integer code) {
3434
* @return code
3535
**/
3636
@ApiModelProperty(value = "")
37-
38-
public Integer getCode() {
37+
38+
public Integer getCode() {
3939
return code;
4040
}
4141

@@ -53,8 +53,8 @@ public ModelApiResponse type(String type) {
5353
* @return type
5454
**/
5555
@ApiModelProperty(value = "")
56-
57-
public String getType() {
56+
57+
public String getType() {
5858
return type;
5959
}
6060

@@ -72,8 +72,8 @@ public ModelApiResponse message(String message) {
7272
* @return message
7373
**/
7474
@ApiModelProperty(value = "")
75-
76-
public String getMessage() {
75+
76+
public String getMessage() {
7777
return message;
7878
}
7979

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Order.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public Order id(Long id) {
7777
* @return id
7878
**/
7979
@ApiModelProperty(value = "")
80-
81-
public Long getId() {
80+
81+
public Long getId() {
8282
return id;
8383
}
8484

@@ -96,8 +96,8 @@ public Order petId(Long petId) {
9696
* @return petId
9797
**/
9898
@ApiModelProperty(value = "")
99-
100-
public Long getPetId() {
99+
100+
public Long getPetId() {
101101
return petId;
102102
}
103103

@@ -115,8 +115,8 @@ public Order quantity(Integer quantity) {
115115
* @return quantity
116116
**/
117117
@ApiModelProperty(value = "")
118-
119-
public Integer getQuantity() {
118+
119+
public Integer getQuantity() {
120120
return quantity;
121121
}
122122

@@ -134,9 +134,9 @@ public Order shipDate(OffsetDateTime shipDate) {
134134
* @return shipDate
135135
**/
136136
@ApiModelProperty(value = "")
137-
138-
@Valid
139-
public OffsetDateTime getShipDate() {
137+
138+
@Valid
139+
public OffsetDateTime getShipDate() {
140140
return shipDate;
141141
}
142142

@@ -154,8 +154,8 @@ public Order status(StatusEnum status) {
154154
* @return status
155155
**/
156156
@ApiModelProperty(value = "Order Status")
157-
158-
public StatusEnum getStatus() {
157+
158+
public StatusEnum getStatus() {
159159
return status;
160160
}
161161

@@ -173,8 +173,8 @@ public Order complete(Boolean complete) {
173173
* @return complete
174174
**/
175175
@ApiModelProperty(value = "")
176-
177-
public Boolean Complete() {
176+
177+
public Boolean isComplete() {
178178
return complete;
179179
}
180180

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Pet.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public Pet id(Long id) {
8282
* @return id
8383
**/
8484
@ApiModelProperty(value = "")
85-
86-
public Long getId() {
85+
86+
public Long getId() {
8787
return id;
8888
}
8989

@@ -101,9 +101,9 @@ public Pet category(Category category) {
101101
* @return category
102102
**/
103103
@ApiModelProperty(value = "")
104-
105-
@Valid
106-
public Category getCategory() {
104+
105+
@Valid
106+
public Category getCategory() {
107107
return category;
108108
}
109109

@@ -121,9 +121,9 @@ public Pet name(String name) {
121121
* @return name
122122
**/
123123
@ApiModelProperty(example = "doggie", required = true, value = "")
124-
@NotNull
124+
@NotNull
125125

126-
public String getName() {
126+
public String getName() {
127127
return name;
128128
}
129129

@@ -146,9 +146,9 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) {
146146
* @return photoUrls
147147
**/
148148
@ApiModelProperty(required = true, value = "")
149-
@NotNull
149+
@NotNull
150150

151-
public List<String> getPhotoUrls() {
151+
public List<String> getPhotoUrls() {
152152
return photoUrls;
153153
}
154154

@@ -174,8 +174,8 @@ public Pet addTagsItem(Tag tagsItem) {
174174
* @return tags
175175
**/
176176
@ApiModelProperty(value = "")
177-
@Valid
178-
public List<Tag> getTags() {
177+
@Valid
178+
public List<Tag> getTags() {
179179
return tags;
180180
}
181181

@@ -193,8 +193,8 @@ public Pet status(StatusEnum status) {
193193
* @return status
194194
**/
195195
@ApiModelProperty(value = "pet status in the store")
196-
197-
public StatusEnum getStatus() {
196+
197+
public StatusEnum getStatus() {
198198
return status;
199199
}
200200

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Tag.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public Tag id(Long id) {
3131
* @return id
3232
**/
3333
@ApiModelProperty(value = "")
34-
35-
public Long getId() {
34+
35+
public Long getId() {
3636
return id;
3737
}
3838

@@ -50,8 +50,8 @@ public Tag name(String name) {
5050
* @return name
5151
**/
5252
@ApiModelProperty(value = "")
53-
54-
public String getName() {
53+
54+
public String getName() {
5555
return name;
5656
}
5757

samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/User.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public User id(Long id) {
4949
* @return id
5050
**/
5151
@ApiModelProperty(value = "")
52-
53-
public Long getId() {
52+
53+
public Long getId() {
5454
return id;
5555
}
5656

@@ -68,8 +68,8 @@ public User username(String username) {
6868
* @return username
6969
**/
7070
@ApiModelProperty(value = "")
71-
72-
public String getUsername() {
71+
72+
public String getUsername() {
7373
return username;
7474
}
7575

@@ -87,8 +87,8 @@ public User firstName(String firstName) {
8787
* @return firstName
8888
**/
8989
@ApiModelProperty(value = "")
90-
91-
public String getFirstName() {
90+
91+
public String getFirstName() {
9292
return firstName;
9393
}
9494

@@ -106,8 +106,8 @@ public User lastName(String lastName) {
106106
* @return lastName
107107
**/
108108
@ApiModelProperty(value = "")
109-
110-
public String getLastName() {
109+
110+
public String getLastName() {
111111
return lastName;
112112
}
113113

@@ -125,8 +125,8 @@ public User email(String email) {
125125
* @return email
126126
**/
127127
@ApiModelProperty(value = "")
128-
129-
public String getEmail() {
128+
129+
public String getEmail() {
130130
return email;
131131
}
132132

@@ -144,8 +144,8 @@ public User password(String password) {
144144
* @return password
145145
**/
146146
@ApiModelProperty(value = "")
147-
148-
public String getPassword() {
147+
148+
public String getPassword() {
149149
return password;
150150
}
151151

@@ -163,8 +163,8 @@ public User phone(String phone) {
163163
* @return phone
164164
**/
165165
@ApiModelProperty(value = "")
166-
167-
public String getPhone() {
166+
167+
public String getPhone() {
168168
return phone;
169169
}
170170

@@ -182,8 +182,8 @@ public User userStatus(Integer userStatus) {
182182
* @return userStatus
183183
**/
184184
@ApiModelProperty(value = "User Status")
185-
186-
public Integer getUserStatus() {
185+
186+
public Integer getUserStatus() {
187187
return userStatus;
188188
}
189189

samples/server/petstore/springboot-beanvalidation/src/main/java/io/swagger/model/Category.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public Category id(Long id) {
3131
* @return id
3232
**/
3333
@ApiModelProperty(value = "")
34-
35-
public Long getId() {
34+
35+
public Long getId() {
3636
return id;
3737
}
3838

@@ -50,8 +50,8 @@ public Category name(String name) {
5050
* @return name
5151
**/
5252
@ApiModelProperty(value = "")
53-
54-
public String getName() {
53+
54+
public String getName() {
5555
return name;
5656
}
5757

samples/server/petstore/springboot-beanvalidation/src/main/java/io/swagger/model/ModelApiResponse.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public ModelApiResponse code(Integer code) {
3434
* @return code
3535
**/
3636
@ApiModelProperty(value = "")
37-
38-
public Integer getCode() {
37+
38+
public Integer getCode() {
3939
return code;
4040
}
4141

@@ -53,8 +53,8 @@ public ModelApiResponse type(String type) {
5353
* @return type
5454
**/
5555
@ApiModelProperty(value = "")
56-
57-
public String getType() {
56+
57+
public String getType() {
5858
return type;
5959
}
6060

@@ -72,8 +72,8 @@ public ModelApiResponse message(String message) {
7272
* @return message
7373
**/
7474
@ApiModelProperty(value = "")
75-
76-
public String getMessage() {
75+
76+
public String getMessage() {
7777
return message;
7878
}
7979

0 commit comments

Comments
 (0)