Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions schemas/server-settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
"description": "TMDb API key used to fetch movie and TV metadata.",
"group": "metadata"
},
"auth.signup_mode": {
"type": "string",
"description": "Controls self-service signup: 'open' creates active accounts immediately, 'approval' creates pending accounts that an administrator must approve before they can log in, 'disabled' rejects all new signups. The first registered user is always created active and admin regardless of this setting.",
"group": "auth",
"enum": ["open", "approval", "disabled"],
"default": "approval"
},
"marker_detection.similarity_threshold": {
"type": "number",
"description": "Audio/video fingerprint similarity threshold (0.0-1.0) above which a segment is treated as a repeated intro/credits marker.",
Expand Down
3 changes: 2 additions & 1 deletion tests/Schema/ServerSettingsSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static function propertyProvider(): array
'hwaccel.prefer_hardware' => ['hwaccel.prefer_hardware', 'boolean'],
'hwaccel.probe_timeout' => ['hwaccel.probe_timeout', 'integer'],
'tmdb.api_key' => ['tmdb.api_key', 'string'],
'auth.signup_mode' => ['auth.signup_mode', 'string'],
'marker_detection.similarity_threshold' => ['marker_detection.similarity_threshold', 'number'],
'marker_detection.intro_max_duration' => ['marker_detection.intro_max_duration', 'integer'],
'subtitles.enabled' => ['subtitles.enabled', 'boolean'],
Expand Down Expand Up @@ -119,7 +120,7 @@ public function test_schema_has_exactly_the_expected_property_keys(): void
sort($expected);

$this->assertSame($expected, $actual, 'server-settings schema must declare exactly the expected settings keys.');
$this->assertCount(18, $actual);
$this->assertCount(19, $actual);
}

/**
Expand Down
Loading