Repository navigation
fix: レスポンスの形が本体と食い違う 3 件を修正 - #125
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概要
本体のレスポンスとライブラリの型が食い違い、失敗する、または値を取れない 3 件を修正。
変更
UsersApi.relation: Misskey 2024.5.0 以降、userIdが 1 件でも配列で返るため、常に型エラーになっていた。配列の先頭を取り出すように修正。2024.5.0 より前の単体オブジェクトも受け付けるMisskeyAdminMeta.swPublicKey: 本体のキーはswPublickey(公開Metaと同じ)で、常にnullになっていた。@JsonKey(name: 'swPublickey')で読むように修正。Dart のプロパティ名は変えていないMisskeyAdminServerInfo.redis: 本体は Redis のINFOからredis_versionを読めないとキーごと省くため、パースに失敗していた。String?に変更(破壊的変更)確認
users/relation.ts・admin/meta.ts・admin/server-info.tsを本体 2026.5.1〜2026.11.0 のソースと照合dart analyze・dart test成功