Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalDateTime can't serialized to json #285

Closed
xmt328 opened this issue Jun 30, 2021 · 1 comment · Fixed by #287
Closed

LocalDateTime can't serialized to json #285

xmt328 opened this issue Jun 30, 2021 · 1 comment · Fixed by #287

Comments

@xmt328
Copy link

xmt328 commented Jun 30, 2021

I try to use ItemUpdateApi#updateItem(itemId: UUID, data: BaseItemDto)

but an error occurred

{
   "type":"https://tools.ietf.org/html/rfc7231#section-6.5.1",
   "title":"One or more validation errors occurred.",
   "status":400,
   "traceId":"00-33dd05cfdb47ed4088bf0ae90b8b86da-8b9f9586acc83544-00",
   "errors":{
      "request":[
         "The request field is required."
      ],
      "$.DateCreated":[
         "The JSON value could not be converted to System.DateTime. Path: $ | LineNumber: 0 | BytePositionInLine: 52. Path: $.DateCreated | LineNumber: 0 | BytePositionInLine: 268."
      ]
   }
}
@nielsvanvelzen
Copy link
Member

nielsvanvelzen commented Jun 30, 2021

I made a pull request that should fix this issue (#287). When it's merged you can test it by using a snapshot version of the SDK (instructions in the README). You can also manually clone the pull request and run the publishToMavenLocal gradle task, then in your app add the mavenLocal() repository and change the SDK version to latest-SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants