larksuite / larksuite/oapi-sdk-java

麻烦更新下 多维表格的pojo

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
310
Forks
115
PR merge metrics
No merged PRs in 30d

Description

AppTableRecord
接口返回的json中created_time为long 类型,pojo中为integer,请求后返回体json反序列化失败
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 1670748023000 at line 1 column 153 path $.data.record.created_time

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open larksuite-oapi/src/main/java/com/lark/oapi/service/bitable/v1/model/AppTableRecord.java and inspect the created_time field and its JSON mapping. Compare its declared type with the returned value shown in the issue, then reproduce the AppTableRecord response deserialization. Done means the reported JSON no longer fails with a NumberFormatException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.