tenthe commented on code in PR #2566:
URL: https://github.com/apache/streampipes/pull/2566#discussion_r1526166971


##########
streampipes-platform-services/src/main/java/org/apache/streampipes/ps/PipelineElementTemplateResource.java:
##########
@@ -92,32 +95,35 @@ public ResponseEntity<?> getById(@Parameter(description = 
"The id of the pipelin
 
   @PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE)
   @Operation(summary = "Store a new pipeline element template",
-      tags = {"Pipeline Element Templates"},
-      responses = {
-          @ApiResponse(responseCode = "200", description = "Template 
successfully stored")
-      })
+             tags = {"Pipeline Element Templates"},
+             responses = {
+                 @ApiResponse(responseCode = "200", description = "Template 
successfully stored")
+             })
   public ResponseEntity<Void> create(
       @RequestBody(description = "The pipeline element template to be stored",
-          content = @Content(schema = @Schema(implementation = 
PipelineElementTemplate.class)))
-      @org.springframework.web.bind.annotation.RequestBody 
PipelineElementTemplate entity) {
+                   content = @Content(schema = @Schema(implementation = 
PipelineElementTemplate.class)))
+      @org.springframework.web.bind.annotation.RequestBody 
PipelineElementTemplate entity

Review Comment:
   I assume both are required. One is for spring's `RequestBody` and the other 
is for swagger.
   Perhaps there is a way to harmonize this, but I would suggest doing this in 
another PR as it is independent of the changes from this PR.



-- 
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]

Reply via email to