user schemaにあるany型を厳格にした (#10319)

使用されている箇所から、これらのプロパティの型はstring型に限定出来そうということが分かった。
又、OpenAPIv3の仕様上はanyは使えないため修正した。

related: https://github.com/misskey-dev/misskey/issues/10308

* Update CHANGELOG
This commit is contained in:
Cj-bc 2023-03-13 23:13:51 +09:00 committed by GitHub
parent 7887ccc993
commit 850addc619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,7 @@ export const packedUserLiteSchema = {
nullable: true, optional: false,
},
avatarBlurhash: {
type: 'any',
type: 'string',
nullable: true, optional: false,
},
isAdmin: {
@ -93,7 +93,7 @@ export const packedUserDetailedNotMeOnlySchema = {
nullable: true, optional: false,
},
bannerBlurhash: {
type: 'any',
type: 'string',
nullable: true, optional: false,
},
isLocked: {