Closed rabol closed 7 months ago
actually the
even with this:
#[UrlParam('document', 'string', 'Document to show', required: true, example: '9909c553-31bf-494b-bde8-41b6eda60400')]
the YAML and the doc is wrong
YAML looks like this:
'/api/documents/{id}/show':
the doc have this
api/documents/{id}/show
I belive the issue is in the
class UrlParamsNormalizer, method normalizeParameterNamesInRouteUri as it will turn what ever you have into {id}
which would okay if you don't have any @UrlParm or no #[UrlParm] specified for your method
I think you want https://scribe.knuckles.wtf/laravel/hooks#normalizeendpointurlusing
Scribe version
4.25
PHP version
8.2.12
Framework
Laravel
Framework version
10.30.1
Scribe config
What happened?
the yaml file has this enty
'/api/documents/{id}/show':
which is incorrectit comes from this:
Docs