[Documentation] Missing documentation on the enum parsing feature

未關閉
#1,484 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
java
領域
documentation

研究方向

先從 issue 中連結的 Developer's Guide JSON 頁面開始,然後閱讀參考行附近的 FieldInfo.java,以了解 enum 的解析行為以及 @Value 和 @NullValue 註解。完成的標準是 JSON 文件包含一個清楚的段落,說明如何使用這些註解將 enum 類型設定為 @Key 欄位。

由索引模型根據 Issue 內容生成。

描述

priority: p3 type: feature request

I'm a google-http-client-jackson2 user, and I struggled a bit looking for a way to setup an enum type as a @Key.

This is the exception I was getting: IllegalArgumentException: given enum name New not part of enumeration

Eventually I was able to find that out myself by looking into the class FieldInfo, and I learned of the existence of the annotations @Value and @NullValue.

I'm opening this issue to please ask you to update the Developer's Guide (the JSON page in particular) with a new paragraph talking about those two annotations.

Thanks.

PS: I think this relates to #127

主要語言
Java
星號
1.4k
分支
476
平均合併
10 小時 47 分鐘
30 天內合併 PR
3

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

googleapis/google-http-java-client 的其他 Issue

查看 googleapis/google-http-java-client 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。