dedoc / scramble

Modern Laravel OpenAPI (Swagger) documentation generator. No PHPDoc annotations required.
https://scramble.dedoc.co/
MIT License
1.24k stars 119 forks source link

Rule::enum doesn't take into consideration additional params #455

Open saatsazov opened 4 months ago

saatsazov commented 4 months ago

Rule::enum ignores only or except methods, which allows you to limit which enum values are allowed.

https://laravel.com/docs/master/validation#rule-enum

I've updated to latest version 0.11.4.

Screenshot 2024-07-15 at 21 01 37

expected behavior

It should limit enum values which passed as argument to only function

PS. Thank you for an amazing library.

101Admin commented 2 weeks ago

I'm also running into the same problem Here are the screenshots image image

If someone knows it is possible to hide the Enum values not in my only() call.\ Let me know! Or if its not possible would be awesome if it was added as feature