Skip to content

Commit 684d56e

Browse files
committed
feat: Run PR checklist commands
1 parent 008adfe commit 684d56e

32 files changed

Lines changed: 372 additions & 50 deletions

File tree

samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/PetApi.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public interface PetApi {
8080
@ApiResponses(value = {
8181
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
8282
@ApiResponse(code = 400, message = "Invalid status value", response = Void.class, responseContainer = "List") })
83-
Response findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
83+
Response findPetsByStatus(@Deprecated @QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
8484

8585

8686
/**
@@ -89,7 +89,9 @@ public interface PetApi {
8989
* @param tags Tags to filter by
9090
* @return successful operation
9191
* @return Invalid tag value
92+
* @deprecated
9293
*/
94+
@Deprecated
9395
@GET
9496
@Path("/findByTags")
9597
@Produces({ "application/xml", "application/json" })
@@ -190,6 +192,6 @@ public interface PetApi {
190192
}, tags={ "pet" })
191193
@ApiResponses(value = {
192194
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
193-
Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream);
195+
Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata,@FormParam(value = "file") InputStream _fileInputStream);
194196

195197
}

samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Pet.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public static StatusEnum fromValue(String value) {
7878
}
7979
}
8080

81+
@Deprecated
8182
private StatusEnum status;
8283

8384
public Pet() {
@@ -221,19 +222,29 @@ public Pet removeTagsItem(Tag tagsItem) {
221222
}
222223
/**
223224
* pet status in the store
225+
* @deprecated
224226
**/
227+
@Deprecated
225228
public Pet status(StatusEnum status) {
226229
this.status = status;
227230
return this;
228231
}
229232

233+
/**
234+
* @deprecated
235+
*/
236+
@Deprecated
230237

231238
@ApiModelProperty(value = "pet status in the store")
232239
@JsonProperty("status")
233240
public StatusEnum getStatus() {
234241
return status;
235242
}
236243

244+
/**
245+
* @deprecated
246+
*/
247+
@Deprecated
237248
@JsonProperty("status")
238249
public void setStatus(StatusEnum status) {
239250
this.status = status;

samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public interface PetApi {
8282
@ApiResponses(value = {
8383
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
8484
@ApiResponse(code = 400, message = "Invalid status value", response = Void.class, responseContainer = "List") })
85-
List<Pet> findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
85+
List<Pet> findPetsByStatus(@Deprecated @QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
8686

8787

8888
/**
@@ -91,7 +91,9 @@ public interface PetApi {
9191
* @param tags Tags to filter by
9292
* @return successful operation
9393
* @return Invalid tag value
94+
* @deprecated
9495
*/
96+
@Deprecated
9597
@GET
9698
@Path("/findByTags")
9799
@Produces({ "application/xml", "application/json" })
@@ -192,6 +194,6 @@ public interface PetApi {
192194
}, tags={ "pet" })
193195
@ApiResponses(value = {
194196
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
195-
ModelApiResponse uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream);
197+
ModelApiResponse uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata,@FormParam(value = "file") InputStream _fileInputStream);
196198

197199
}

samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public static StatusEnum fromValue(String value) {
7878
}
7979
}
8080

81+
@Deprecated
8182
private StatusEnum status;
8283

8384
public Pet() {
@@ -221,19 +222,29 @@ public Pet removeTagsItem(Tag tagsItem) {
221222
}
222223
/**
223224
* pet status in the store
225+
* @deprecated
224226
**/
227+
@Deprecated
225228
public Pet status(StatusEnum status) {
226229
this.status = status;
227230
return this;
228231
}
229232

233+
/**
234+
* @deprecated
235+
*/
236+
@Deprecated
230237

231238
@ApiModelProperty(value = "pet status in the store")
232239
@JsonProperty("status")
233240
public StatusEnum getStatus() {
234241
return status;
235242
}
236243

244+
/**
245+
* @deprecated
246+
*/
247+
@Deprecated
237248
@JsonProperty("status")
238249
public void setStatus(StatusEnum status) {
239250
this.status = status;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public Response testClientModel(@Valid @NotNull Client body) {
129129
@ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class),
130130
@ApiResponse(code = 404, message = "User not found", response = Void.class)
131131
})
132-
public Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") Date dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
132+
public Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string,@FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") Date dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
133133
return Response.ok().entity("magic!").build();
134134
}
135135

@@ -200,7 +200,7 @@ public Response testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull
200200
@ApiResponses(value = {
201201
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
202202
})
203-
public Response uploadFileWithRequiredFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata) {
203+
public Response uploadFileWithRequiredFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata) {
204204
return Response.ok().entity("magic!").build();
205205
}
206206
}

samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/api/PetApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public Response findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Stat
7373
return Response.ok().entity("magic!").build();
7474
}
7575

76+
@Deprecated
7677
@GET
7778
@Path("/findByTags")
7879
@Produces({ "application/xml", "application/json" })
@@ -149,7 +150,7 @@ public Response updatePetWithForm(@PathParam("petId") @ApiParam("ID of pet that
149150
@ApiResponses(value = {
150151
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
151152
})
152-
public Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream) {
153+
public Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata,@FormParam(value = "file") InputStream _fileInputStream) {
153154
return Response.ok().entity("magic!").build();
154155
}
155156
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,18 @@ public Response deletePet(@PathParam("petId") @org.eclipse.microprofile.openapi.
106106
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json")
107107
})
108108
})
109-
public Response findPetsByStatus(@QueryParam("status") @NotNull @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="Status values that need to be considered for filter") List<String> status) {
109+
public Response findPetsByStatus(@Deprecated @QueryParam("status") @NotNull @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="Status values that need to be considered for filter") List<String> status) {
110110
return Response.ok().entity("magic!").build();
111111
}
112112

113+
@Deprecated
113114
@GET
114115
@Path("/findByTags")
115116
@Produces({ "application/xml", "application/json" })
116117
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
117118
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement(name = "petstore_auth", scopes = { "read:pets" })
118119
})
119-
@org.eclipse.microprofile.openapi.annotations.Operation(operationId = "findPetsByTags", summary = "Finds Pets by tags", description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.")
120+
@org.eclipse.microprofile.openapi.annotations.Operation(operationId = "findPetsByTags", deprecated = true, summary = "Finds Pets by tags", description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.")
120121
@org.eclipse.microprofile.openapi.annotations.tags.Tag(name="pet")
121122
@org.eclipse.microprofile.openapi.annotations.responses.APIResponses(value = {
122123
@org.eclipse.microprofile.openapi.annotations.responses.APIResponse(responseCode = "200", description = "successful operation", content = {
@@ -219,7 +220,7 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
219220
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = ModelApiResponse.class))
220221
})
221222
})
222-
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) {
223+
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) {
223224
return Response.ok().entity("magic!").build();
224225
}
225226
}

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static StatusEnum fromValue(String value) {
7676
}
7777
}
7878

79+
@Deprecated
7980
private StatusEnum status;
8081

8182
protected Pet(PetBuilder<?, ?> b) {
@@ -228,19 +229,29 @@ public Pet removeTagsItem(Tag tagsItem) {
228229
}
229230
/**
230231
* pet status in the store
232+
* @deprecated
231233
**/
234+
@Deprecated
232235
public Pet status(StatusEnum status) {
233236
this.status = status;
234237
return this;
235238
}
236239

240+
/**
241+
* @deprecated
242+
*/
243+
@Deprecated
237244

238-
@org.eclipse.microprofile.openapi.annotations.media.Schema(description = "pet status in the store")
245+
@org.eclipse.microprofile.openapi.annotations.media.Schema(description = "pet status in the store", deprecated = true)
239246
@JsonProperty("status")
240247
public StatusEnum getStatus() {
241248
return status;
242249
}
243250

251+
/**
252+
* @deprecated
253+
*/
254+
@Deprecated
244255
@JsonProperty("status")
245256
public void setStatus(StatusEnum status) {
246257
this.status = status;
@@ -341,6 +352,7 @@ public B tags(List<Tag> tags) {
341352
this.tags = tags;
342353
return self();
343354
}
355+
@Deprecated
344356
public B status(StatusEnum status) {
345357
this.status = status;
346358
return self();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public Response testClientModel(@Valid @NotNull Client client) {
297297

298298
})
299299
})
300-
public Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") LocalDateTime dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
300+
public Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string,@FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") LocalDateTime dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
301301
return Response.ok().entity("magic!").build();
302302
}
303303

@@ -436,7 +436,7 @@ public Response testStringMapReference(@Valid @NotNull Map<String, String> reque
436436
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = ModelApiResponse.class))
437437
})
438438
})
439-
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) {
439+
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) {
440440
return Response.ok().entity("magic!").build();
441441
}
442442
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,18 @@ public Response deletePet(@PathParam("petId") @org.eclipse.microprofile.openapi.
123123
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json")
124124
})
125125
})
126-
public Response findPetsByStatus(@QueryParam("status") @NotNull @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="Status values that need to be considered for filter") List<String> status) {
126+
public Response findPetsByStatus(@Deprecated @QueryParam("status") @NotNull @org.eclipse.microprofile.openapi.annotations.parameters.Parameter(description="Status values that need to be considered for filter") List<String> status) {
127127
return Response.ok().entity("magic!").build();
128128
}
129129

130+
@Deprecated
130131
@GET
131132
@Path("/findByTags")
132133
@Produces({ "application/xml", "application/json" })
133134
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements(value={
134135
@org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement(name = "petstore_auth", scopes = { "write:pets", "read:pets" })
135136
})
136-
@org.eclipse.microprofile.openapi.annotations.Operation(operationId = "findPetsByTags", summary = "Finds Pets by tags", description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.")
137+
@org.eclipse.microprofile.openapi.annotations.Operation(operationId = "findPetsByTags", deprecated = true, summary = "Finds Pets by tags", description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.")
137138
@org.eclipse.microprofile.openapi.annotations.tags.Tag(name="pet")
138139
@org.eclipse.microprofile.openapi.annotations.responses.APIResponses(value = {
139140
@org.eclipse.microprofile.openapi.annotations.responses.APIResponse(responseCode = "200", description = "successful operation", content = {
@@ -234,7 +235,7 @@ public Response updatePetWithForm(@PathParam("petId") @org.eclipse.microprofile.
234235
@org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="application/json", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = ModelApiResponse.class))
235236
})
236237
})
237-
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) {
238+
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) {
238239
return Response.ok().entity("magic!").build();
239240
}
240241
}

0 commit comments

Comments
 (0)