Refactoring, Clean up and bug fixes
This commit is contained in:
@@ -11,32 +11,36 @@ export const meta = {
|
||||
requireCredential: false,
|
||||
|
||||
params: {
|
||||
query: $.str.note({
|
||||
query: {
|
||||
validator: $.str,
|
||||
desc: {
|
||||
'ja-JP': 'クエリ'
|
||||
}
|
||||
}),
|
||||
},
|
||||
|
||||
offset: $.num.optional.min(0).note({
|
||||
offset: {
|
||||
validator: $.num.optional.min(0),
|
||||
default: 0,
|
||||
desc: {
|
||||
'ja-JP': 'オフセット'
|
||||
}
|
||||
}),
|
||||
},
|
||||
|
||||
limit: $.num.optional.range(1, 100).note({
|
||||
limit: {
|
||||
validator: $.num.optional.range(1, 100),
|
||||
default: 10,
|
||||
desc: {
|
||||
'ja-JP': '取得する数'
|
||||
}
|
||||
}),
|
||||
},
|
||||
|
||||
localOnly: $.bool.optional.note({
|
||||
localOnly: {
|
||||
validator: $.bool.optional,
|
||||
default: false,
|
||||
desc: {
|
||||
'ja-JP': 'ローカルユーザーのみ検索対象にするか否か'
|
||||
}
|
||||
}),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user