Skip to content

Add support for new features in http dispatcher - #374

Merged
CarlSchwan merged 3 commits into
mainfrom
carl/backed-enums
Aug 21, 2026
Merged

Add support for new features in http dispatcher #374
CarlSchwan merged 3 commits into
mainfrom
carl/backed-enums

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Aug 18, 2026

Copy link
Copy Markdown
Member
  • Support backed enums
  • Support SortDirection enum
  • Skip IUser and any other injected services from the api surface

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan CarlSchwan changed the title Add support for enums Add support for new features in http dispatcher Aug 21, 2026
@CarlSchwan
CarlSchwan merged commit 2d39514 into main Aug 21, 2026
30 checks passed
@CarlSchwan
CarlSchwan deleted the carl/backed-enums branch August 21, 2026 14:56
Comment thread generate-spec.php
$schemas = [];
$tags = [];

$enumsByFqcn = [];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so happy with this implementation, because it is limited to the core app.

I had looked into resolving classes at some point and php-parser has a way to do this, that would allow using any enum from any namespace, by resolving it properly.

Comment thread src/OpenApiType.php
try {
self::resolveIdentifier('', [], $node->getLast());
return false;
} catch (LoggerException) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants