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

[0.17以降?] [Java] GSONをJacksonにする #984

Open
3 tasks done
qryxip opened this issue Feb 8, 2025 · 0 comments
Open
3 tasks done

[0.17以降?] [Java] GSONをJacksonにする #984

qryxip opened this issue Feb 8, 2025 · 0 comments

Comments

@qryxip
Copy link
Member

qryxip commented Feb 8, 2025

内容

#558 の時点でシリアライザライブラリとしてGSONを採用することになっています。しかし記憶にある限り、GSONを使うかJacksonを使うかについては特に議論は発生していないと思います。

この一年半GSONと付き合い、またJacksonのことを調べていて思ったのですが、Jacksonの方が機能が充実しており、筋も良く、また多分開発も活発です。機能面だと例えばGSONにはrequired fieldという概念が欠けていますが、Jacksonには10年前からあります(どういうことかというとGSONはフィールドの不在についてエラーを発することができず、不在のフィールドはなんらかのゼロ値 (0, "", null)にしなければなりません。つまり{}というJSONすら問答無用で受理しないといけない)。

そのためどこかのタイミング、多分Pydanticを外すときに合わせてGSONをJacksonに置き換えたいです。

Pros 良くなる点

Cons 悪くなる点

実現方法

VOICEVOXのバージョン

0.17以降?

OSの種類/ディストリ/バージョン

  • Windows
  • macOS
  • Linux

その他

qryxip added a commit that referenced this issue Feb 8, 2025
脱Pydanticと脱GSONをやるのはv0.17であることを前提にし、ちょっと弱めの表
現にしてある。

Resolves: #963
Refs: #960, #984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant