user schemaにあるany型を厳格にした (#10319)
使用されている箇所から、これらのプロパティの型はstring型に限定出来そうということが分かった。 又、OpenAPIv3の仕様上はanyは使えないため修正した。 related: https://github.com/misskey-dev/misskey/issues/10308 * Update CHANGELOG
This commit is contained in:
parent
7887ccc993
commit
850addc619
2 changed files with 3 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue