Skip to content

feat: add server-settings schema + webhook event catalog (0.7)#7

Merged
detain merged 1 commit into
masterfrom
feat/0-7-shared-schemas
May 27, 2026
Merged

feat: add server-settings schema + webhook event catalog (0.7)#7
detain merged 1 commit into
masterfrom
feat/0-7-shared-schemas

Conversation

@detain

@detain detain commented May 27, 2026

Copy link
Copy Markdown
Owner

Add two bundled schema artifacts to phlix-shared as the single source of
truth for editable server settings and webhook event types:

  • schemas/server-settings.schema.json (JSON Schema draft 2020-12): the 15
    editable server settings, mirroring phlix-server's
    AdminSettingsController::ALLOWED_KEYS (key, type, group, constraints).
  • schemas/webhook-events.json: the 7 supported webhook event types
    (playback., library.updated, download.complete, recording., alert)
    plus the reserved internal webhook.test. Distinct from the plugin
    PSR-14 events in EventNameMap.
  • src/Schema/SchemaPaths.php: pure zero-I/O path resolver so consumers
    locate the bundled files without hardcoding the vendor path.

Bumps Version::VERSION to 0.7.0 + CHANGELOG. Tests cover SchemaPaths
(100%) and validate both schema files (well-formedness, exact key/type/
event coverage). PHPStan L9 + Psalm errorLevel 1 + PHPCS PSR-12 green.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Add two bundled schema artifacts to phlix-shared as the single source of
truth for editable server settings and webhook event types:

- schemas/server-settings.schema.json (JSON Schema draft 2020-12): the 15
  editable server settings, mirroring phlix-server's
  AdminSettingsController::ALLOWED_KEYS (key, type, group, constraints).
- schemas/webhook-events.json: the 7 supported webhook event types
  (playback.*, library.updated, download.complete, recording.*, alert)
  plus the reserved internal webhook.test. Distinct from the plugin
  PSR-14 events in EventNameMap.
- src/Schema/SchemaPaths.php: pure zero-I/O path resolver so consumers
  locate the bundled files without hardcoding the vendor path.

Bumps Version::VERSION to 0.7.0 + CHANGELOG. Tests cover SchemaPaths
(100%) and validate both schema files (well-formedness, exact key/type/
event coverage). PHPStan L9 + Psalm errorLevel 1 + PHPCS PSR-12 green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 8 medium · 18 minor

Alerts:
⚠ 26 issues (≤ 0 issues of at least minor severity)

Results:
26 new issues

Category Results
BestPractice 7 medium
CodeStyle 18 minor
Complexity 1 medium

View in Codacy

🟢 Metrics 64 complexity · 0 duplication

Metric Results
Complexity 64
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@detain detain merged commit d2455a5 into master May 27, 2026
8 of 9 checks passed
@detain detain deleted the feat/0-7-shared-schemas branch May 27, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant