scribe icon indicating copy to clipboard operation
scribe copied to clipboard

Feature Request: Tagged union Request/Response types

Open brianferri opened this issue 1 year ago • 3 comments

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

brianferri avatar Mar 04 '25 12:03 brianferri