Skip to content

Commit 3816370

Browse files
committed
feat: add ResponseStatus annotation for non-200 success codes in Quarkus library
1 parent b59b97d commit 3816370

10 files changed

Lines changed: 0 additions & 76 deletions

File tree

samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/PetApi.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313

14-
1514
import java.io.InputStream;
1615
import java.util.Map;
1716
import java.util.List;
@@ -73,7 +72,6 @@ public Response addPet(@Valid @NotNull Pet pet) {
7372
return Response.ok().entity("magic!").build();
7473
}
7574

76-
7775
@DELETE
7876
@Path("/{petId}")
7977
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
@@ -90,7 +88,6 @@ public Response deletePet(@PathParam("petId") @org.eclipse.microprofile.openapi.
9088
return Response.ok().entity("magic!").build();
9189
}
9290

93-
9491
@GET
9592
@Path("/findByStatus")
9693
@Produces({ "application/xml", "application/json" })
@@ -113,7 +110,6 @@ public Response findPetsByStatus(@QueryParam("status") @NotNull @org.eclipse.mi
113110
return Response.ok().entity("magic!").build();
114111
}
115112

116-
117113
@GET
118114
@Path("/findByTags")
119115
@Produces({ "application/xml", "application/json" })
@@ -136,7 +132,6 @@ public Response findPetsByTags(@QueryParam("tags") @NotNull @org.eclipse.microp
136132
return Response.ok().entity("magic!").build();
137133
}
138134

139-
140135
@GET
141136
@Path("/{petId}")
142137
@Produces({ "application/xml", "application/json" })
@@ -163,7 +158,6 @@ public Response getPetById(@PathParam("petId") @org.eclipse.microprofile.openapi
163158
return Response.ok().entity("magic!").build();
164159
}
165160

166-
167161
@PUT
168162
@Consumes({ "application/json", "application/xml" })
169163
@Produces({ "application/xml", "application/json" })
@@ -194,7 +188,6 @@ public Response updatePet(@Valid @NotNull Pet pet) {
194188
return Response.ok().entity("magic!").build();
195189
}
196190

197-
198191
@POST
199192
@Path("/{petId}")
200193
@Consumes({ "application/x-www-form-urlencoded" })
@@ -212,7 +205,6 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
212205
return Response.ok().entity("magic!").build();
213206
}
214207

215-
216208
@POST
217209
@Path("/{petId}/uploadImage")
218210
@Consumes({ "multipart/form-data" })
@@ -230,5 +222,4 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
230222
public Response uploadFile(@PathParam("petId") @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream) {
231223
return Response.ok().entity("magic!").build();
232224
}
233-
234225
}

samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/StoreApi.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212

13-
1413
import java.io.InputStream;
1514
import java.util.Map;
1615
import java.util.List;
@@ -67,7 +66,6 @@ public Response deleteOrder(@PathParam("orderId") @org.eclipse.microprofile.open
6766
return Response.ok().entity("magic!").build();
6867
}
6968

70-
7169
@GET
7270
@Path("/inventory")
7371
@Produces({ "application/json" })
@@ -85,7 +83,6 @@ public Response getInventory() {
8583
return Response.ok().entity("magic!").build();
8684
}
8785

88-
8986
@GET
9087
@Path("/order/{orderId}")
9188
@Produces({ "application/xml", "application/json" })
@@ -110,7 +107,6 @@ public Response getOrderById(@PathParam("orderId") @Min(1L) @Max(5L) @org.eclips
110107
return Response.ok().entity("magic!").build();
111108
}
112109

113-
114110
@POST
115111
@Path("/order")
116112
@Consumes({ "application/json" })
@@ -131,5 +127,4 @@ public Response getOrderById(@PathParam("orderId") @Min(1L) @Max(5L) @org.eclips
131127
public Response placeOrder(@Valid @NotNull Order order) {
132128
return Response.ok().entity("magic!").build();
133129
}
134-
135130
}

samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/UserApi.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212

13-
1413
import java.io.InputStream;
1514
import java.util.Map;
1615
import java.util.List;
@@ -66,7 +65,6 @@ public Response createUser(@Valid @NotNull User user) {
6665
return Response.ok().entity("magic!").build();
6766
}
6867

69-
7068
@POST
7169
@Path("/createWithArray")
7270
@Consumes({ "application/json" })
@@ -84,7 +82,6 @@ public Response createUsersWithArrayInput(@Valid @NotNull List<@Valid User> user
8482
return Response.ok().entity("magic!").build();
8583
}
8684

87-
8885
@POST
8986
@Path("/createWithList")
9087
@Consumes({ "application/json" })
@@ -102,7 +99,6 @@ public Response createUsersWithListInput(@Valid @NotNull List<@Valid User> user)
10299
return Response.ok().entity("magic!").build();
103100
}
104101

105-
106102
@DELETE
107103
@Path("/{username}")
108104
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
@@ -122,7 +118,6 @@ public Response deleteUser(@PathParam("username") @org.eclipse.microprofile.open
122118
return Response.ok().entity("magic!").build();
123119
}
124120

125-
126121
@GET
127122
@Path("/{username}")
128123
@Produces({ "application/xml", "application/json" })
@@ -147,7 +142,6 @@ public Response getUserByName(@PathParam("username") @org.eclipse.microprofile.o
147142
return Response.ok().entity("magic!").build();
148143
}
149144

150-
151145
@GET
152146
@Path("/login")
153147
@Produces({ "application/xml", "application/json" })
@@ -172,7 +166,6 @@ public Response loginUser(@QueryParam("username") @NotNull @Pattern(regexp="^[a-
172166
return Response.ok().entity("magic!").build();
173167
}
174168

175-
176169
@GET
177170
@Path("/logout")
178171
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
@@ -189,7 +182,6 @@ public Response logoutUser() {
189182
return Response.ok().entity("magic!").build();
190183
}
191184

192-
193185
@PUT
194186
@Path("/{username}")
195187
@Consumes({ "application/json" })
@@ -209,5 +201,4 @@ public Response logoutUser() {
209201
public Response updateUser(@PathParam("username") @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="name that need to be deleted") String username,@Valid @NotNull User user) {
210202
return Response.ok().entity("magic!").build();
211203
}
212-
213204
}

samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/AnotherFakeApi.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111

12-
1312
import java.io.InputStream;
1413
import java.util.Map;
1514
import java.util.List;
@@ -79,5 +78,4 @@ public class AnotherFakeApi {
7978
public Response call123testSpecialTags(@Valid @NotNull Client client) {
8079
return Response.ok().entity("magic!").build();
8180
}
82-
8381
}

samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeApi.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626

2727

28-
2928
import java.io.InputStream;
3029
import java.util.Map;
3130
import java.util.List;
@@ -96,7 +95,6 @@ public Response fakeBigDecimalMap() {
9695
return Response.ok().entity("magic!").build();
9796
}
9897

99-
10098
@GET
10199
@Path("/health")
102100
@Produces({ "application/json" })
@@ -112,7 +110,6 @@ public Response fakeHealthGet() {
112110
return Response.ok().entity("magic!").build();
113111
}
114112

115-
116113
@GET
117114
@Path("/http-signature-test")
118115
@Consumes({ "application/json", "application/xml" })
@@ -130,7 +127,6 @@ public Response fakeHttpSignatureTest(@Valid @NotNull Pet pet,@QueryParam("query
130127
return Response.ok().entity("magic!").build();
131128
}
132129

133-
134130
@POST
135131
@Path("/outer/boolean")
136132
@Consumes({ "application/json" })
@@ -147,7 +143,6 @@ public Response fakeOuterBooleanSerialize(@Valid Boolean body) {
147143
return Response.ok().entity("magic!").build();
148144
}
149145

150-
151146
@POST
152147
@Path("/outer/composite")
153148
@Consumes({ "application/json" })
@@ -164,7 +159,6 @@ public Response fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite
164159
return Response.ok().entity("magic!").build();
165160
}
166161

167-
168162
@POST
169163
@Path("/outer/number")
170164
@Consumes({ "application/json" })
@@ -181,7 +175,6 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) {
181175
return Response.ok().entity("magic!").build();
182176
}
183177

184-
185178
@POST
186179
@Path("/outer/string")
187180
@Consumes({ "application/json" })
@@ -198,7 +191,6 @@ public Response fakeOuterStringSerialize(@Valid String body) {
198191
return Response.ok().entity("magic!").build();
199192
}
200193

201-
202194
@POST
203195
@Path("/property/enum-int")
204196
@Consumes({ "application/json" })
@@ -215,7 +207,6 @@ public Response fakePropertyEnumIntegerSerialize(@Valid @NotNull OuterObjectWith
215207
return Response.ok().entity("magic!").build();
216208
}
217209

218-
219210
@POST
220211
@Path("/additionalProperties-reference")
221212
@Consumes({ "application/json" })
@@ -231,7 +222,6 @@ public Response testAdditionalPropertiesReference(@Valid @NotNull Map<String, Ob
231222
return Response.ok().entity("magic!").build();
232223
}
233224

234-
235225
@PUT
236226
@Path("/body-with-binary")
237227
@Consumes({ "image/png" })
@@ -247,7 +237,6 @@ public Response testBodyWithBinary(@Valid File body) {
247237
return Response.ok().entity("magic!").build();
248238
}
249239

250-
251240
@PUT
252241
@Path("/body-with-file-schema")
253242
@Consumes({ "application/json" })
@@ -263,7 +252,6 @@ public Response testBodyWithFileSchema(@Valid @NotNull FileSchemaTestClass fileS
263252
return Response.ok().entity("magic!").build();
264253
}
265254

266-
267255
@PUT
268256
@Path("/body-with-query-params")
269257
@Consumes({ "application/json" })
@@ -279,7 +267,6 @@ public Response testBodyWithQueryParams(@QueryParam("query") @NotNull String q
279267
return Response.ok().entity("magic!").build();
280268
}
281269

282-
283270
@PATCH
284271
@Consumes({ "application/json" })
285272
@Produces({ "application/json" })
@@ -295,7 +282,6 @@ public Response testClientModel(@Valid @NotNull Client client) {
295282
return Response.ok().entity("magic!").build();
296283
}
297284

298-
299285
@POST
300286
@Consumes({ "application/x-www-form-urlencoded" })
301287
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
@@ -315,7 +301,6 @@ public Response testEndpointParameters(@FormParam(value = "number") BigDecimal
315301
return Response.ok().entity("magic!").build();
316302
}
317303

318-
319304
@GET
320305
@Consumes({ "application/x-www-form-urlencoded" })
321306

@@ -333,7 +318,6 @@ public Response testEnumParameters(@HeaderParam("enum_header_string_array") @o
333318
return Response.ok().entity("magic!").build();
334319
}
335320

336-
337321
@DELETE
338322
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
339323
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement(name = "bearer_test")
@@ -349,7 +333,6 @@ public Response testGroupParameters(@QueryParam("required_string_group") @NotNul
349333
return Response.ok().entity("magic!").build();
350334
}
351335

352-
353336
@POST
354337
@Path("/inline-additionalProperties")
355338
@Consumes({ "application/json" })
@@ -365,7 +348,6 @@ public Response testInlineAdditionalProperties(@Valid @NotNull Map<String, Strin
365348
return Response.ok().entity("magic!").build();
366349
}
367350

368-
369351
@POST
370352
@Path("/inline-freeform-additionalProperties")
371353
@Consumes({ "application/json" })
@@ -381,7 +363,6 @@ public Response testInlineFreeformAdditionalProperties(@Valid @NotNull TestInlin
381363
return Response.ok().entity("magic!").build();
382364
}
383365

384-
385366
@GET
386367
@Path("/jsonFormData")
387368
@Consumes({ "application/x-www-form-urlencoded" })
@@ -397,7 +378,6 @@ public Response testJsonFormData(@FormParam(value = "param") String param,@Form
397378
return Response.ok().entity("magic!").build();
398379
}
399380

400-
401381
@POST
402382
@Path("/nullable")
403383
@Consumes({ "application/json" })
@@ -413,7 +393,6 @@ public Response testNullable(@Valid @NotNull ChildWithNullable childWithNullable
413393
return Response.ok().entity("magic!").build();
414394
}
415395

416-
417396
@PUT
418397
@Path("/test-query-parameters")
419398

@@ -428,7 +407,6 @@ public Response testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull
428407
return Response.ok().entity("magic!").build();
429408
}
430409

431-
432410
@POST
433411
@Path("/stringMap-reference")
434412
@Consumes({ "application/json" })
@@ -444,7 +422,6 @@ public Response testStringMapReference(@Valid @NotNull Map<String, String> reque
444422
return Response.ok().entity("magic!").build();
445423
}
446424

447-
448425
@POST
449426
@Path("/{petId}/uploadImageWithRequiredFile")
450427
@Consumes({ "multipart/form-data" })
@@ -462,5 +439,4 @@ public Response testStringMapReference(@Valid @NotNull Map<String, String> reque
462439
public Response uploadFileWithRequiredFile(@PathParam("petId") @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="ID of pet to update") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata) {
463440
return Response.ok().entity("magic!").build();
464441
}
465-
466442
}

samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111

12-
1312
import java.io.InputStream;
1413
import java.util.Map;
1514
import java.util.List;
@@ -81,5 +80,4 @@ public class FakeClassnameTestApi {
8180
public Response testClassname(@Valid @NotNull Client client) {
8281
return Response.ok().entity("magic!").build();
8382
}
84-
8583
}

0 commit comments

Comments
 (0)