mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-23 17:29:06 +01:00
38 lines
678 B
Plaintext
38 lines
678 B
Plaintext
{
|
|
summary: 'ユーザー名が利用可能か確認します。',
|
|
description: 'ユーザー名が利用可能か確認します。',
|
|
tags: [
|
|
'users',
|
|
],
|
|
requireCredential: false,
|
|
req: {
|
|
type: 'object',
|
|
properties: {
|
|
username: {
|
|
type: 'string',
|
|
pattern: '^\\w{1,20}$',
|
|
description: 'ユーザー名',
|
|
},
|
|
},
|
|
required: [
|
|
'username',
|
|
],
|
|
},
|
|
res: {
|
|
type: 'object',
|
|
optional: false,
|
|
nullable: false,
|
|
properties: {
|
|
available: {
|
|
type: 'boolean',
|
|
optional: false,
|
|
nullable: false,
|
|
description: 'ユーザー名が利用可能であれば true です。',
|
|
},
|
|
},
|
|
required: [
|
|
'available',
|
|
],
|
|
},
|
|
errors: {},
|
|
} |