fix: response model

This commit is contained in:
Torsten Dittmann committed 2024-01-09 16:47:43 +01:00
1 parent 5a97c9104c
commit bc384cac8d
2 files changed
+7 -1

No files matched your search

@@ -120,6 +120,12 @@ class User extends Model
'default' => false,
'example' => true,
])
->addRule('totp', [
'type' => self::TYPE_BOOLEAN,
'description' => 'TOTP status.',
'default' => false,
'example' => true,
])
->addRule('prefs', [
'type' => Response::MODEL_PREFERENCES,
'description' => 'User preferences as a key-value object',