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

able to use wrapper class to serialize requests for primitive types

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-2.8.15
    • Java-Chassis
    • None

    Description

      for 

      int test(@RequestHeader("name") int name)
      

      Parameter name will serialize using int.class, and if name= (empty string), name will get 0. 

      Some users need name= (empty string) throw an error(which compatible to 1.3.x behavior). 

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment