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

Client Java SDK must configure GSON to serialize yyyy-mm-dd date format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SDK
    • None

    Description

      This is the sending equivalent of FINERACT-1220:

      As is right now, with the fix from FINERACT-1220, LocalDate parameters such as a New Office openingDate cannot actually be sent. This was because in the PR for FINERACT-1220 I hard-coded GSON to serialize it as JSON array [yyyy,mm,dd] - as they are returns by Fineract. However that's actually wrong - see https://demo.fineract.dev/fineract-provider/api-docs/apiLive.htm#dates_and_numbers.

      For the short term, I'm going to change the client to send LocalDate as "yyyy-mm-dd", with a test for Office openingDate proving that works.

      FINERACT-1233 is about a possible more longer term solution.

      Attachments

        Issue Links

          Activity

            People

              vorburger Michael Vorburger
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: