Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1366

invalid fields in PostClientsClientIdRequest in clientsApiResourceSwagger

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None

    Description

      Expected body payload while activating the client:

      {  
          "activationDate": "02 August 2021", 
          "dateFormat": "dd MMMM yyyy", 
          "locale": "en"
      }
      

      Payload model (PostClientsClientIdRequest):

      @Schema(description = "PostClientsClientIdRequest")
      public static final class PostClientsClientIdRequest {
      
          private PostClientsClientIdRequest() {}
      
          @Schema(example = "We cannot accept transfers of clients having loans with less than 1 repayment left")
          public String note;
      }
      

      the  PostClientsClientIdRequest must define the required field in order to generate the valid client.
      Also officeId field is missing in the returned response while activating a client.

      // defined in swagger resource class
      @Schema(description = "PostClientsClientIdResponse")
      public static final class PostClientsClientIdResponse {
      
          private PostClientsClientIdResponse() {}
      
          @Schema(example = "2")
          public Integer clientId;
          @Schema(example = "2")
          public Integer resourceId;
      }
      
      
      // actual json returned
      {
        "officeId": 2,
        "clientId": 6,
        "resourceId": 6
      }

      Attachments

        Issue Links

          Activity

            People

              danishjamal Danish Jamal
              danishjamal Danish Jamal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: