flowchartsman edited a comment on issue #9200:
URL: https://github.com/apache/pulsar/issues/9200#issuecomment-759563079


   I believe this is: 
https://github.com/kongchen/swagger-maven-plugin/issues/352
   
   If you look at the generated function routes, specifically for 
`updateFunction` 
[here](https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/FunctionsBase.java#L202-L306)
 annotations indicate there should be the following params
   
   - `data`
   - `url`
   - `functionConfig`
   - `updateOptions`
   
   However, all that's generated in [the 
swagger](https://github.com/apache/pulsar/blob/master/site2/website/static/swagger/2.7.0/swaggerfunctions.json#L212-L230)
   
   is:
   ```json
             "in" : "body",
             "name" : "body",
             "description" : "[[description removed]]",
             "required" : false,
             "schema" : {
               "$ref" : "#/definitions/FunctionConfig"
             },
             "x-examples" : {
               "application/json" : "{\n  \"inputs\": 
persistent://public/default/input-topic,\n  \"parallelism\": 4\n  \"output\": 
persistent://public/default/output-topic\n  \"log-topic\": 
persistent://public/default/log-topic\n  \"classname\": 
org.example.test.ExclamationFunction\n  \"jar\": 
java-function-1.0-SNAPSHOT.jar\n}"
             }
           }, {
             "in" : "body",
             "name" : "body",
             "description" : "The update options is for the Pulsar Function 
that needs to be updated.",
             "required" : false,
             "schema" : {
               "$ref" : "#/definitions/UpdateOptions"
             }
           } ],
   
   The bug lists several workarounds, though the plugin seems to be abandoned 
or at least stagnant, and a move to 
https://github.com/openapi-tools/swagger-maven-plugin might be worth 
investigating.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to