jaykay12 commented on code in PR #4178:
URL: https://github.com/apache/solr/pull/4178#discussion_r4416983191
##########
solr/api/src/java/org/apache/solr/client/api/model/AddPackageVersionRequestBody.java:
##########
@@ -14,34 +14,30 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+package org.apache.solr.client.api.model;
-package org.apache.solr.client.solrj.request.beans;
-
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
-import org.apache.solr.common.annotation.JsonProperty;
-import org.apache.solr.common.util.ReflectMapWriter;
-
-/** Just a container class for POJOs used in Package APIs */
-public class PackagePayload {
- public static class AddVersion implements ReflectMapWriter {
- @JsonProperty(value = "package", required = true)
- public String pkg;
- @JsonProperty(required = true)
- public String version;
+/** Request body for adding a version of a package. */
+public class AddPackageVersionRequestBody {
- @JsonProperty(required = true)
- public List<String> files;
+ @JsonProperty("version")
+ @Schema(description = "The version string for this package version.",
required = true)
Review Comment:
my local IntelliJ showed this warning.
<img width="410" height="293" alt="Image"
src="https://github.com/user-attachments/assets/cd6be334-efd8-4754-95ea-65b25002cd26"
/>
please see, if applicable here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]