We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
json-schema/user.ts
alsoKnownAs
backendのmodels/json-schema/user.tsにおけるpackedUserDetailedNotMeOnlySchemaのalsoKnownAsプロパティの定義が不正確です。配列として定義されているalsoKnownAsプロパティはformatプロパティを取ることができないはずです。おそらくやりたかったことの正しい実装としては、alsoKnownAsのitemsプロパティとしてtype: 'string'なオブジェクトを作り、そのオブジェクトに対しformatプロパティを定義するというものだと推測します。
models/json-schema/user.ts
packedUserDetailedNotMeOnlySchema
format
items
type: 'string'
この不正確な書き方はアカウントマイグレーションを実装するPR #10507 で追加されました。
backendでの不正確な定義:
misskey/packages/backend/src/models/json-schema/user.ts
Lines 81 to 86 in 5124db5
Misskey.js側の型定義:
misskey/packages/misskey-js/src/entities.ts
Line 17 in 5124db5
JSON Schemaでのformatの使い方:https://json-schema.org/understanding-json-schema/reference/string.html#format
正しい定義がされている。
誤った定義がされている。
Misskey version: 5124db5 (13.11.3) Your OS: Your browser:
私のフォークの方で修正作業を進めています。
The text was updated successfully, but these errors were encountered:
マージされたのでクローズします。ありがとうございました!
Sorry, something went wrong.
No branches or pull requests
💡 Summary
backendの
models/json-schema/user.ts
におけるpackedUserDetailedNotMeOnlySchema
のalsoKnownAs
プロパティの定義が不正確です。配列として定義されているalsoKnownAs
プロパティはformat
プロパティを取ることができないはずです。おそらくやりたかったことの正しい実装としては、alsoKnownAs
のitems
プロパティとしてtype: 'string'
なオブジェクトを作り、そのオブジェクトに対しformat
プロパティを定義するというものだと推測します。この不正確な書き方はアカウントマイグレーションを実装するPR #10507 で追加されました。
backendでの不正確な定義:
misskey/packages/backend/src/models/json-schema/user.ts
Lines 81 to 86 in 5124db5
Misskey.js側の型定義:
misskey/packages/misskey-js/src/entities.ts
Line 17 in 5124db5
JSON Schemaでの
format
の使い方:https://json-schema.org/understanding-json-schema/reference/string.html#format🥰 Expected Behavior
正しい定義がされている。
🤬 Actual Behavior
誤った定義がされている。
📝 Steps to Reproduce
📌 Environment
Misskey version: 5124db5 (13.11.3)
Your OS:
Your browser:
私のフォークの方で修正作業を進めています。
The text was updated successfully, but these errors were encountered: