summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/drive/files/show.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/drive/files/show.ts')
-rw-r--r--src/server/api/endpoints/drive/files/show.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts
index e6d85a5efb..994583bd01 100644
--- a/src/server/api/endpoints/drive/files/show.ts
+++ b/src/server/api/endpoints/drive/files/show.ts
@@ -19,7 +19,7 @@ export const meta = {
params: {
fileId: {
- validator: $.type(ID).optional,
+ validator: $.optional.type(ID),
transform: transform,
desc: {
'ja-JP': '対象のファイルID',
@@ -28,7 +28,7 @@ export const meta = {
},
url: {
- validator: $.str.optional,
+ validator: $.optional.str,
desc: {
'ja-JP': '対象のファイルのURL',
'en-US': 'Target file URL'