[ 
https://issues.apache.org/jira/browse/FINERACT-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217949#comment-17217949
 ] 

Michael Vorburger commented on FINERACT-1220:
---------------------------------------------

The issue is that Fineract's API returns e.g. {{"openingDate":[2009,1,1]}}, 
whereas OpenAPI Generator (https://openapi-generator.tech) has hard-coded the 
{{LocalDateTypeAdapter}} inner class of the generated 
{{org.apache.fineract.client.JSON}} class to expect a String instead of an 
Array. While that generated code allows to {{setLocalDateFormat()}}, the 
{{TypeAdapter}} itself cannot be replaced. I'm therefore copy/pasting the 
generated code to source and fixing the problem there so that this works.

FINERACT-1231 to clean up the code generation later.

https://demo.fineract.dev/fineract-provider/api-docs/apiLive.htm#dates_and_numbers
 sounds like when SENDING there's more work TBD?!

> Fineract Client Java SDK API must configure correct date format
> ---------------------------------------------------------------
>
>                 Key: FINERACT-1220
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1220
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: SDK
>            Reporter: Michael Vorburger
>            Assignee: Michael Vorburger
>            Priority: Major
>             Fix For: 1.5.0
>
>
> Our brand new "Fineract Client Java SDK API" emerging from 
> [https://github.com/apache/fineract/pull/1428/] for FINERACT-1216 must be 
> appropriately pre-configured (read, hard-coded to) Fineract's date format.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to