fix: include subtable id in serialized output #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
kintone REST APIのレコード更新操作において、サブテーブルの既存行のidを指定することで既存行を更新することが可能ですが、本クライアントにおける操作ではidが出力されないことにより常に削除&新規行登録となっていました。サブテーブルのidもシリアライズすることで既存行の更新が可能となります。
ref: https://cybozu.dev/ja/kintone/docs/rest-api/records/update-record/#notes-table
What
FieldType.SUBTABLEのシリアライズを修正FieldType.SUBTABLEのテストケースを追加How to test
修正前に追加したケースが失敗することを確認した
✅ 修正後にテストが全て成功することを確認済み
Checklist