Skip to content
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

withParameter() set up in Service provider, still not showing up in swagger. #138

Open
selvaebi opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@selvaebi
Copy link

Laravel Rest Api Version

2.8.6

Laravel Version

11.20.0

PHP Version

^8.3

Database Driver & Version

No response

Description

              '/api/v1/media/items/{folderId}' => (new Path)
                        ->withParameters([(new Parameter)->withName('folderId')
                            ->withDescription('folder id')
                            ->withIn('path')
                            ->withSchema(
                                (new SchemaConcrete())
                                    ->withType('string')
                                    ->generate()
                            )
                            ->withRequired()
                            ->generate()])

Still the parameters are not visible in the swagger page.

Steps To Reproduce

              '/api/v1/media/items/{folderId}' => (new Path)
                        ->withParameters([(new Parameter)->withName('folderId')
                            ->withDescription('folder id')
                            ->withIn('path')
                            ->withSchema(
                                (new SchemaConcrete())
                                    ->withType('string')
                                    ->generate()
                            )
                            ->withRequired()
                            ->generate()])

Still the parameters are not visible in the swagger page. for any path in RestServiceProvider

@GautierDele GautierDele added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants