scribe
scribe copied to clipboard
Feature Request: Tagged union Request/Response types
Scribe version
5.1.0
Your question
Would it be possible to consider the addition of tagged union Request and Response types? As I've also discussed in https://github.com/laravel/framework/discussions/54880. this is currently a missing feature in laravel/framework validation rules, but I think it would be a good addition to Scribe in order to conform more to the OpenAPI Spec
[!NOTE] I'll try to implement this when/if https://github.com/laravel/framework/pull/55191 gets merged If it gets rejected I'll still investigate the possibility of implementing this functionality anyway, albeit without 1:1 validation backing from laravel
Docs
- [x] I've checked the docs, the troubleshooting guide, and existing issues, but I didn't find a solution