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

multiple path string params #603

Open
Burunito opened this issue May 14, 2024 · 0 comments
Open

multiple path string params #603

Burunito opened this issue May 14, 2024 · 0 comments

Comments

@Burunito
Copy link

  • L5-Swagger Version: 8.6.0
  • PHP Version : 8.2.3
  • OS: wsl2

I have some urls that use multiple path variables, mostly are string all were working but now are broken, all the swagger endpoints
that i have like this one the second parameter always have this value '{specialLink}' like is not replacing the value from the url, if i change the type of value of the second parameter it works, just when are strings just the first works

#[OAT\Delete(
path: '/manufacturers/{id}/special-links/{specialLink}',

new OAT\Parameter(
name: 'specialLink',
description: 'Special link',
in: 'path',
schema: new OAT\Schema(type: 'string'),
example: 'cccb0dc73359070a4269f780fe93ff53'
)

#[Delete('manufacturers/{id}/special-links/{specialLink}')]

public function destroy(Request $request, string $id, string $specialLink): JsonResponse

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

No branches or pull requests

1 participant