Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1511

when use method override, the generated swagger body is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.3.0
    • Java-Chassis
    • None

    Description

      For example:

       

      ```

      public class Test

      {   @ApiOperation(value="helloWithValue", nickname="helloWithValue")    public String hello(String name, String value);     @ApiOperation(value="hello", nickname="hello")    public String hello(String name); }

      ```

       

      The generated swagger will have randomly helloBdoy like:

      ```

      helloBody:

         properties:

            name: String

      ```

       

      or 

       

       

      ```

      helloBody:

         properties:

            name: String

            value: String

      ```

       

       

      Attachments

        Activity

          People

            liubao68 liubao
            liubao68 liubao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m