-
-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(laravel): entrypoint serialization #6541
fix(laravel): entrypoint serialization #6541
Conversation
@@ -37,13 +37,13 @@ public function __construct( | |||
private readonly ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, this class should probably be undeprecated as it is now used again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we just copy that class to the Laravel directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you wish
@@ -37,13 +37,13 @@ public function __construct( | |||
private readonly ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, | |||
private readonly ProviderInterface $provider, | |||
private readonly ProcessorInterface $processor, | |||
private readonly array $documentationFormats = [] | |||
private readonly array $documentationFormats = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely a bug in Symfony variant. AFAIU, formats
should be injected here, not docs_formats
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed both implementation are not necessary the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laravel has no differenciation between both formats yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be cool to be able to render SwaggerUI when requesting /api
as we do for the Symfony variant.
7f29f81
to
bd251c4
Compare
bd251c4
to
d50abd9
Compare
The
jsonapi
format weren't working. This patch fixes the issue.