knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.58k stars 280 forks source link

Specific type #787

Closed bernardarhia closed 5 months ago

bernardarhia commented 5 months ago

Scribe version

2.0.2

Your question

So is there a way to explicitly specify the type for a body param? Example: @bodyParam string:male|female required User's Gender. It'll come in very handy if something like that was added.

Docs

shalvah commented 5 months ago

Enum:

https://scribe.knuckles.wtf/laravel/reference/annotations#bodyparambodyparam

However, I don't think that's supported in V2.