refactor: APIで非JSON入力の型変換はendpointに渡す前に行うように (#8229)

* Resolve #8228

* fix
This commit is contained in:
MeiMei
2022-01-31 01:40:27 +09:00
committed by GitHub
parent 943ff2dfdb
commit f2b40b51c2
3 changed files with 17 additions and 7 deletions

View File

@ -39,15 +39,13 @@ export const meta = {
},
isSensitive: {
validator: $.optional.either($.bool, $.str),
validator: $.optional.bool,
default: false,
transform: (v: any): boolean => v === true || v === 'true',
},
force: {
validator: $.optional.either($.bool, $.str),
validator: $.optional.bool,
default: false,
transform: (v: any): boolean => v === true || v === 'true',
},
},