Skip to content

[codex] Make declarative handlers schema-aware - #39

Merged
k-kinzal merged 1 commit into
mainfrom
codex/schema-aware-declarative-handlers
Jul 4, 2026
Merged

[codex] Make declarative handlers schema-aware#39
k-kinzal merged 1 commit into
mainfrom
codex/schema-aware-declarative-handlers

Conversation

@k-kinzal

@k-kinzal k-kinzal commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Defer server subclass declarative handler registration until the OpenAPI schema is resolved in buildInterceptor().
  • Register method-name operation handlers only when the operationId exists in the schema.
  • Register #[Route] handlers only when the schema contains the matching path/method.
  • Keep explicit fluent handlers separate by cloning the explicit handler map before adding schema-aware declarative handlers.

Validation

  • composer test
  • composer lint

@k-kinzal
k-kinzal marked this pull request as ready for review July 4, 2026 16:23
@k-kinzal
k-kinzal merged commit 56ae9ad into main Jul 4, 2026
57 checks passed
@k-kinzal
k-kinzal deleted the codex/schema-aware-declarative-handlers branch July 4, 2026 16:23
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